/* ============================================
   PDFV PAGE - CUSTOM STYLES
   SVXLink Dashboard by SP2ONG
   ============================================ */

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

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

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

/* Container */
.pdfv-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

/* Header */
.pdfv-header {
    background: linear-gradient(135deg, #1d2658 0%, #3f4c84 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

.pdfv-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #00aee8;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdfv-title .material-icons {
    font-size: 36px;
    color: #ff4444;
}

/* Info/Tip Boxes */
.info-box,
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    animation: slideUp 0.65s ease-out;
}

.info-box {
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196f3;
}

.tip-box {
    background: rgba(8, 220, 110, 0.15);
    border-left: 4px solid #08dc6e;
}

.info-box .material-icons {
    font-size: 28px;
    color: #2196f3;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-box .material-icons {
    font-size: 28px;
    color: #08dc6e;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p,
.tip-box p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.tip-box strong {
    color: #08dc6e;
    font-weight: 600;
}

/* Viewer Controls */
.viewer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    animation: slideUp 0.7s ease-out;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-open {
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #08dc6e 0%, #06b85a 100%);
    color: #1d2658;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn .material-icons {
    font-size: 20px;
}

/* PDF Viewer */
.pdf-viewer {
    background: linear-gradient(135deg, #1d2658 0%, #2a3668 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(8, 220, 110, 0.2);
    animation: slideUp 0.75s ease-out;
}

.viewer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.viewer-header .material-icons {
    font-size: 22px;
}

.viewer-title {
    flex: 1;
}

.viewer-filename {
    font-size: 13px;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
}

.viewer-content {
    padding: 0;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

/* PDF Iframe */
.pdf-iframe {
    width: 100%;
    height: 1000px;
    border: none;
    border-radius: 0 0 10px 10px;
    display: block;
}

/* Access Denied */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.access-denied img {
    max-width: 400px;
    opacity: 0.8;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.access-denied-text {
    color: #f3ead3;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media screen and (max-width: 768px) {
    .pdfv-container {
        padding: 15px;
        margin: 20px auto;
    }

    .pdfv-header {
        padding: 25px 20px;
    }

    .pdfv-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .pdfv-title .material-icons {
        font-size: 32px;
    }

    .viewer-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .pdf-iframe {
        height: 800px;
    }

    .viewer-header {
        font-size: 14px;
        padding: 10px 15px;
    }

    .viewer-filename {
        display: none;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .pdfv-container {
        padding: 10px;
        margin: 15px auto;
    }

    .pdfv-header {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .pdfv-title {
        font-size: 20px;
    }

    .pdfv-title .material-icons {
        font-size: 28px;
    }

    .info-box,
    .tip-box {
        padding: 15px;
        gap: 12px;
    }

    .info-box .material-icons,
    .tip-box .material-icons {
        font-size: 24px;
    }

    .info-box p,
    .tip-box p {
        font-size: 13px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .btn .material-icons {
        font-size: 18px;
    }

    .viewer-header {
        font-size: 13px;
        padding: 10px 15px;
    }

    .viewer-header .material-icons {
        font-size: 20px;
    }

    .pdf-iframe {
        height: 600px;
    }

    .access-denied img {
        max-width: 250px;
    }

    .access-denied-text {
        font-size: 16px;
    }
}