:root {
    --primary-color: #289a3f;
    --hover-color: #15bb62;
    --background-color: #010e1b;
    --page-background: #09203a;
    --shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--background-color);
    line-height: 1;
}

.header {
    text-align: center;
    padding: 20px 0;
    background: #09203a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-download:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.btn-view {
    background-color: white;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.btn-view:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
}

.btn-back {
    background-color: white;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.btn-back:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pdf-page {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

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

.pdf-page img {
    width: 100%;
    height: auto;
    display: block;
}

/* PDF Viewer Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    height: 90vh;
    background: white;
    border-radius: 10px;
    position: relative;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: #09203a;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .pdf-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

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

    .modal-content {
        width: 95%;
        height: 85vh;
    }
}