body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #EDDEBC;
    background: radial-gradient(circle, rgba(237, 222, 188, 1) 0%, rgba(226, 198, 152, 1) 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header img {
    max-width: 320px;
    height: auto;
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 0;
    color: #000;
}
.generator-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.controls label {
    font-weight: 600;
    font-size: 1.1em;
    color: #555;
}

#paragraphCount {
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    font-size: 1em;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

#paragraphCount:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#generateBtn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(102, 126, 234, 0.4);
}

#generateBtn:active {
    transform: translateY(0);
}

#generateBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Output Container */
.output-container {
    margin: 30px 0;
    min-height: 300px;
    position: relative;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-style: italic;
    font-size: 1.1em;
}

/* Output Styles */
.output {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    min-height: 250px;
    font-size: 1.1em;
    line-height: 1.8;
    position: relative;
}

.output p {
    margin-bottom: 20px;
    text-align: justify;
    color: #2c3e50;
}

.output p:last-child {
    margin-bottom: 0;
}

.placeholder {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2em;
}

.error {
    color: #dc3545;
    text-align: center;
    padding: 40px 20px;
    font-weight: 500;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.actions button {
    padding: 12px 25px;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: white;
    color: #667eea;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.actions button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

#copyBtn {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

#copyBtn:hover {
    background: #218838;
    border-color: #218838;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.8);
    font-size: 1em;
    font-weight: 300;
}

footer p {
    color: #000;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.output, .loading {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}