/* Document Detail Page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    /*margin-bottom: 30px;*/
    padding: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #3498db;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Document Detail */
.document-detail {
    min-height: 100vh;
    padding: 40px 0;
    color: white;
}

/* Document Header */
.document-header {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.document-meta i {
    color: #00d4ff;
    font-size: 16px;
}

.document-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    color: white;
}

/* PDF Viewer Section */
.pdf-viewer-container {
    /*display: flex;*/
    /*justify-content: center;*/
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-controls {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-controls button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.pdf-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdf-controls span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
}

#pageInfo {
    background: rgba(0, 212, 255, 0.2);
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

#zoomLevel {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 60px;
    text-align: center;
}

.pdf-viewer {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
    padding: 20px;
}

#pdfCanvas {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 16px;
    min-height: 400px;
}

.pdf-loading i {
    font-size: 48px;
    color: #00d4ff;
}

.retry-btn {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* Document Content */
.document-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.document-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /*display: flex;*/
    /*justify-content: center;*/
}

.document-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-section h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 2px;
}

/* Document Description */
.document-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.document-description p {
    margin-bottom: 15px;
}

.document-description ul {
    margin: 20px 0;
    padding-left: 0;
}

.document-description li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    list-style: none;
}

.document-description li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 12px;
}

/* Table of Contents */
.table-of-contents {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 25px;
}

.table-of-contents ol {
    margin: 0;
    padding-left: 20px;
    counter-reset: item;
}

.table-of-contents ol > li {
    display: block;
    margin-bottom: 15px;
    position: relative;
    list-style: none;
    padding-left: 30px;
}

.table-of-contents ol > li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    color: #00d4ff;
    font-weight: 700;
    font-size: 16px;
}

.table-of-contents ul {
    margin: 10px 0;
    padding-left: 20px;
}

.table-of-contents ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    list-style: none;
}

.table-of-contents ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.4);
    color: white;
}

.download-btn i {
    font-size: 18px;
}

/* Fullscreen styles */
.pdf-viewer:fullscreen {
    padding: 0;
}

.pdf-viewer:fullscreen #pdfCanvas {
    max-width: 100vw;
    max-height: 100vh;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3498db;
}

.notification i {
    font-size: 18px;
    flex-shrink: 0;
}

.notification span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

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

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .document-detail {
        padding: 30px 0;
    }
    
    .document-title {
        font-size: 2rem;
    }
    
    .pdf-controls {
        gap: 15px;
    }
    
    .pdf-controls button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .document-header {
        padding: 20px;
    }
    
    .document-meta {
        justify-content: center;
        gap: 10px;
    }
    
    .document-meta span {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .document-title {
        font-size: 1.8rem;
    }
    
    .pdf-controls {
        padding: 10px 15px;
        gap: 10px;
        /*flex-direction: column;*/
    }
    
    .pdf-controls button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .pdf-viewer {
        padding: 10px;
        min-height: 400px;
    }
    
    #pdfCanvas {
        max-height: 60vh;
    }
    
    .document-section {
        padding: 20px;
    }
    
    .document-section h2 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 5px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .document-detail {
        padding: 20px 0;
    }
    
    .document-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .document-title {
        font-size: 1.5rem;
    }
    
    .document-meta {
        /*flex-direction: column;*/
        align-items: center;
    }
    
    .pdf-controls {
        padding: 8px 10px;
    }
    
    .pdf-controls button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    #pageInfo,
    #zoomLevel {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .document-section {
        padding: 15px;
    }
    
    .document-section h2 {
        font-size: 1.3rem;
    }
    
    .table-of-contents {
        padding: 15px;
    }
    
    .download-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
} 