* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #1A3C34, #4CAF50);
    margin: 0;
    padding: 0;
    color: #FFF;
    animation: fadeInBody 1s ease-in;
}

header {
    background: linear-gradient(90deg, #1A3C34, #2E7D32);
    color: #FFD700;
    text-align: center;
    padding: 2rem;
    border-bottom: 4px solid #FFD700;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav {
    background: #1A3C34;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 15px 30px;
    color: #FFD700;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

nav ul li a:hover, nav ul li a.active {
    background: #2E7D32;
    transform: scale(1.05);
}

main {
    max-width: 1000px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #1A3C34;
}

label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #1A3C34;
}

select#country-select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #2E7D32;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #1A3C34;
    color: #FFF;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

select#country-select option {
    background: #1A3C34;
    color: #FFF;
    padding: 10px;
}

select#country-select:hover {
    background: #2E7D32;
}

select#country-select:focus {
    border-color: #FFD700;
    outline: none;
}

select#year-select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #2E7D32;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #F5F5F5;
    transition: border-color 0.3s;
}

select#year-select:focus {
    border-color: #FFD700;
    outline: none;
}

#local-time {
    font-style: italic;
    margin: 15px 0;
    color: #2E7D32;
    font-size: 1.1rem;
}

#holidays-list {
    list-style: none;
    padding: 0;
}

#holidays-list li {
    background: #E8F5E9;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    border-left: 4px solid #2E7D32;
    font-size: 1.1rem;
}

#holidays-list li:hover {
    background: #C8E6C9;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#loading {
    text-align: center;
    margin: 20px;
    color: #2E7D32;
    font-weight: 600;
    display: none;
}

#error {
    color: #D32F2F;
    margin: 15px 0;
    font-weight: 600;
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    animation: fadeIn 0.5s;
}

.modal-content {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    color: #FFF;
    position: relative;
    animation: bounceIn 0.5s;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-icon {
    font-size: 1.5rem;
}

.modal-body p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.modal-body p span {
    font-weight: 400;
}

.close {
    color: #FFD700;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #FFF;
}

footer {
    background: #1A3C34;
    color: #FFD700;
    text-align: center;
    padding: 2rem;
    margin-top: 20px;
    border-top: 4px solid #2E7D32;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.ad-placeholder {
    background: #FFF3E0;
    color: #1A3C34;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 600;
}

.footer-nav a {
    margin: 0 10px;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }
    .logo h1 {
        font-size: 1.8rem;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    nav ul li a {
        padding: 12px;
    }
    main {
        margin: 10px;
        padding: 20px;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}