/* Document Viewers Styles for Meta Humans LTD */

.document-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.document-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border-bottom: 1px solid #333;
    min-height: 60px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-toolbar button {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.document-toolbar button:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-1px);
}

.document-toolbar button:active {
    transform: translateY(0);
}

.zoom-level {
    color: #ffffff;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

/* Document Content */
.document-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #0a0a0a;
}

#document-container {
    transform-origin: top left;
    transition: transform 0.3s ease;
}

/* Loading State */
.document-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.document-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.document-loading p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* Error State */
.document-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

.document-error i {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.document-error p {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 400px;
}

.btn-retry {
    background: linear-gradient(45deg, #00d4ff, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Modal Integration */
.document-modal .document-viewer {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .document-toolbar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .toolbar-left, .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .document-content {
        padding: 10px;
    }
    
    .document-modal .document-viewer {
        width: 95vw;
        height: 95vh;
    }
}

@media (max-width: 480px) {
    .document-toolbar button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .document-loading p {
        font-size: 14px;
    }
    
    .document-error p {
        font-size: 16px;
    }
}

/* Scrollbar Styling */
.document-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.document-content::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.document-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #8b5cf6);
    border-radius: 4px;
}

.document-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00b8e6, #7c3aed);
}

/* Print Styles */
@media print {
    .document-toolbar {
        display: none;
    }
    
    .document-viewer {
        background: white;
    }
    
    .document-content {
        background: white;
        padding: 0;
    }
}

/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 