* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.icon {
    font-size: 3rem;
    vertical-align: middle;
    margin-right: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.language-switcher {
    text-align: center;
    margin-bottom: 30px;
}

.lang-btn {
    background: #ecf0f1;
    border: none;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #bdc3c7;
}

.lang-btn.active {
    background: #3498db;
    color: white;
}

.input-section {
    text-align: center;
    margin-bottom: 40px;
}

.input-section label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #34495e;
}

.birthdate-input {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-right: 15px;
    transition: border-color 0.3s ease;
}

.birthdate-input:focus {
    outline: none;
    border-color: #3498db;
}

.calculate-btn {
    padding: 12px 30px;
    font-size: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.results-section {
    animation: fadeIn 0.5s ease;
}

.hidden {
    display: none;
}

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

.date-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.date-info h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.current-date {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 5px;
}

.age-info {
    color: #7f8c8d;
}

.chart-container {
    height: 400px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rhythm-value {
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.rhythm-value:hover {
    transform: translateY(-5px);
}

.rhythm-value.physical {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
}

.rhythm-value.emotional {
    background: linear-gradient(135deg, #e5f0ff 0%, #cce0ff 100%);
}

.rhythm-value.intellectual {
    background: linear-gradient(135deg, #e5ffe5 0%, #ccffcc 100%);
}

.rhythm-value h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-display {
    margin-bottom: 10px;
}

.percentage {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.status {
    font-size: 1.1rem;
    color: #34495e;
    font-weight: 500;
}

.description {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.period-selector {
    text-align: center;
    margin-bottom: 30px;
}

.period-selector label {
    margin-right: 10px;
    color: #34495e;
}

#period-select {
    padding: 8px 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.info-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-section p {
    color: #34495e;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .icon {
        font-size: 2.5rem;
    }
    
    .birthdate-input {
        display: block;
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .calculate-btn {
        display: block;
        width: 100%;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .values-container {
        grid-template-columns: 1fr;
    }
}