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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f2f2 0%, #edd1d1 100%);
    min-height: 100vh;
    padding: 0;
    color: #2d2020;
}

.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Header Styling */
.site-header {
    background: linear-gradient(to right, #8b0000, #c23616);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
    position: relative;
    margin-bottom: 30px;
}

.header-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.logo i {
    font-size: 36px;
    color: #ffcccb;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Page Introduction */
.page-intro {
    text-align: center;
    padding: 30px 0;
    max-width: 800px;
    margin: 0 auto 20px;
}

.page-intro h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #8b0000;
}

.page-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #4f3a3a;
}

/* Filter Section Styling */
.filter-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #8b0000;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-dropdown {
    padding: 8px 12px;
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 6px;
    background-color: white;
    color: #4f3a3a;
    font-size: 14px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-dropdown:hover, .filter-dropdown:focus {
    border-color: #c23616;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
    outline: none;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(to right, #c23616, #8b0000);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(139, 0, 0, 0.2);
}

.filter-btn:hover {
    background: linear-gradient(to right, #8b0000, #6b0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
}

.reset-btn {
    background: linear-gradient(to right, #8b0000, #6b0000);
}

.reset-btn:hover {
    background: linear-gradient(to right, #6b0000, #4b0000);
}

/* Month Section Styling */
.month-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.month-section:hover {
    transform: translateY(-5px);
}

/* Hide filtered sections */
.month-section.hidden {
    display: none;
}

/* Month Title Styling */
.month-title {
    text-align: center;
    margin: 20px 0 30px;
    color: #8b0000;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.month-title i {
    color: #c23616;
}

.month-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #c23616, #8b0000);
    border-radius: 2px;
}

/* PDF Grid Styling */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.pdf-wrapper {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.05);
}

.pdf-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.15);
}

h3 {
    margin-bottom: 15px;
    color: #8b0000;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #c23616, #8b0000);
    border-radius: 2px;
}

.pdf-container {
    width: 100%;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

canvas {
    width: 100%;
    height: auto;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

button, .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(to right, #c23616, #8b0000);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(139, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

button:hover, .btn:hover {
    background: linear-gradient(to right, #8b0000, #6b0000);
    box-shadow: 0 7px 14px rgba(139, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

button:disabled {
    background: #d3b8b8;
    cursor: not-allowed;
    box-shadow: none;
}

button:disabled:hover {
    background: #d3b8b8;
    transform: none;
}

.btn.open-btn {
    background: linear-gradient(to right, #8b0000, #6b0000);
}

.btn.open-btn:hover {
    background: linear-gradient(to right, #6b0000, #4b0000);
}

.page-info {
    font-size: 13px;
    color: #4f3a3a;
    white-space: nowrap;
    font-weight: 500;
    background-color: #f8f2f2;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

#loading-message-jan-1, #loading-message-jan-2, #loading-message-jan-3, #loading-message-jan-4,
#loading-message-feb-1, #loading-message-feb-2, #loading-message-feb-3, #loading-message-feb-4,
#loading-message-mar-1, #loading-message-mar-2, #loading-message-mar-3, #loading-message-mar-4,
#loading-message-apr-1, #loading-message-apr-2, #loading-message-apr-3, #loading-message-apr-4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #4f3a3a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loading-message-jan-1::before, #loading-message-jan-2::before, #loading-message-jan-3::before, #loading-message-jan-4::before,
#loading-message-feb-1::before, #loading-message-feb-2::before, #loading-message-feb-3::before, #loading-message-feb-4::before,
#loading-message-mar-1::before, #loading-message-mar-2::before, #loading-message-mar-3::before, #loading-message-mar-4::before,
#loading-message-apr-1::before, #loading-message-apr-2::before, #loading-message-apr-3::before, #loading-message-apr-4::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #c23616;
    border-radius: 50%;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

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

.error {
    margin: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #fde8e8;
    border-left: 4px solid #8b0000;
}

/* Footer Styling */
.site-footer {
    margin-top: 60px;
    padding: 20px 0;
    text-align: center;
    color: #4f3a3a;
    font-size: 14px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .pdf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .logo {
        gap: 10px;
    }

    .logo i {
        font-size: 28px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .header-subtitle {
        font-size: 14px;
    }

    .page-intro {
        padding: 20px 0;
    }

    .page-intro h2 {
        font-size: 20px;
    }

    .page-intro p {
        font-size: 14px;
    }

    .filter-container {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-dropdown {
        flex-grow: 1;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .pdf-grid {
        grid-template-columns: 1fr;
    }

    .pdf-container {
        height: 300px;
    }

    .buttons {
        flex-direction: column;
    }

    .page-info {
        order: -1;
        margin-bottom: 10px;
    }
    
    .month-title {
        font-size: 26px;
    }
}

/* Custom scrollbar for PDF container */
.pdf-container::-webkit-scrollbar {
    width: 8px;
}

.pdf-container::-webkit-scrollbar-track {
    background: #f8f2f2;
    border-radius: 4px;
}

.pdf-container::-webkit-scrollbar-thumb {
    background: #c23616;
    border-radius: 4px;
}

.pdf-container::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
} 