/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Popup Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

/* Window Controls */
.window-controls {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: 35px;
}

.window-buttons {
    display: flex;
    gap: 0;
    align-items: center;
    margin-left: auto;
}

.window-btn {
    width: 45px;
    height: 30px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #374151;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
}

.window-btn:hover {
    background: #e5e7eb;
}

.window-btn.minimize {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-right: none;
}

.window-btn.minimize:hover {
    background: #e5e7eb;
}

.window-btn.maximize {
    border-radius: 0;
    border-right: none;
}

.window-btn.maximize:hover {
    background: #e5e7eb;
}

.window-btn.close {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.window-btn.close:hover {
    background: #ef4444;
    color: white;
}

.window-btn:active {
    background: #d1d5db;
}

.window-btn.close:active {
    background: #dc2626;
}

.window-title {
    position: absolute;
    left: 12px;
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.window-title i {
    color: #007bff;
    font-size: 12px;
}
#__01 {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    animation: popupEntrance 0.6s ease-out forwards;
}

/* Popup entrance animation */
@keyframes popupEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    50% {
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Glass effect for popup edges */
#__01::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

#__01 td {
    vertical-align: top;
    position: relative;
    z-index: 2;
}

/* Header image with popup styling */
#__01 tr:nth-child(2) td {
    overflow: hidden;
}

/* Footer image with popup styling */
#__01 tr:last-child td {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.95) 0%, 
        rgba(233, 236, 239, 0.95) 100%);
    border-bottom: 3px solid #007bff;
    position: relative;
}

.title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 123, 255, 0.3) 50%, 
        transparent 100%);
}

.title-text {
    color: #2c3e50;
    font-weight: bold;
    font-size: 2.4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.title-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.subtitle-text {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 300;
}

/* Year Buttons Section */
.year-buttons-section {
    padding: 30px 25px;
    text-align: center;
    background: linear-gradient(45deg, 
        rgba(248, 249, 250, 0.8) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(248, 249, 250, 0.8) 100%);
    position: relative;
}

.year-buttons-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        transparent 100%);
}

/* Year Buttons */
.year-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 15px;
    color: white;
    padding: 18px 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-height: 90px;
    width: 130px;
    margin: 10px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.year-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 70%);
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.year-btn:hover::before {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(-45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(-45deg); opacity: 0; }
}

.year-btn i {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.year-btn span {
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.year-btn.active:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 123, 255, 0.4),
        0 5px 15px rgba(0, 123, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.year-btn.disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    box-shadow: 
        0 4px 15px rgba(108, 117, 125, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0.7;
}

.year-btn.disabled:hover {
    transform: none;
    box-shadow: 
        0 4px 15px rgba(108, 117, 125, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.year-btn:focus {
    outline: none;
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.3),
        0 0 0 3px rgba(0, 123, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    #__01 {
        max-width: 95%;
        border-radius: 15px;
    }
    
    .window-controls {
        padding: 6px 10px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        height: 32px;
    }
    
    .window-title {
        font-size: 11px;
    }
    
    .window-title i {
        font-size: 10px;
    }
    
    .window-btn {
        width: 35px;
        height: 25px;
        font-size: 10px;
    }
    
    .title-section {
        padding: 30px 20px;
    }
    
    .title-text {
        font-size: 2rem;
    }
    
    .subtitle-text {
        font-size: 1.1rem;
    }
    
    .year-btn {
        width: 110px;
        min-height: 80px;
        padding: 15px 10px;
        font-size: 0.95rem;
        margin: 8px;
        border-radius: 12px;
    }
    
    .year-btn i {
        font-size: 1.3rem;
    }
    
    .year-btn span {
        font-size: 1rem;
    }
    
    .year-buttons-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    #__01 {
        border-radius: 12px;
    }
    
    .window-controls {
        padding: 5px 8px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        height: 28px;
    }
    
    .window-title {
        font-size: 10px;
    }
    
    .window-btn {
        width: 30px;
        height: 22px;
        font-size: 9px;
    }
    
    .title-section {
        padding: 25px 15px;
    }
    
    .title-text {
        font-size: 1.7rem;
    }
    
    .subtitle-text {
        font-size: 1rem;
    }
    
    .year-btn {
        width: 95px;
        min-height: 70px;
        padding: 12px 8px;
        margin: 6px;
        border-radius: 10px;
    }
    
    .year-btn i {
        font-size: 1.2rem;
    }
    
    .year-btn span {
        font-size: 0.9rem;
    }
    
    .year-buttons-section {
        padding: 20px 15px;
    }
}

/* Loading Animation */
.year-btn.loading {
    position: relative;
}

.year-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.3) 0%, transparent 50%);
    animation: floatingParticles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingParticles {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        opacity: 0.6;
        transform: translateY(-20px) rotate(180deg); 
    }
}