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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.input-section h2 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.year-day-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.input-wrapper label .optional {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
}

.input-wrapper input,
.input-wrapper select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

/* Disable scroll on number inputs by default */
.input-wrapper input[type="number"] {
    cursor: ns-resize;
}

.input-wrapper input[type="number"]::-webkit-inner-spin-button,
.input-wrapper input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Month Section */
.month-section {
    margin-bottom: 30px;
}

.month-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9rem;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.month-btn {
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.month-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.month-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.month-btn:active {
    transform: translateY(0);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.result-section {
    margin-top: 30px;
}

.hidden {
    display: none;
}

.zodiac-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.zodiac-icon {
    font-size: 5rem;
    animation: bounceIn 0.6s ease-out;
}

.zodiac-title h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 5px;
}

.zodiac-title p {
    font-size: 1.5rem;
    color: #888;
}

.zodiac-years {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.zodiac-description {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    text-align: justify;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .year-day-group {
        grid-template-columns: 1fr;
    }
    
    .month-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .zodiac-header {
        flex-direction: column;
        text-align: center;
    }
    
    .zodiac-icon {
        font-size: 4rem;
    }
}
