/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:#fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main container */
.container {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

/* Header section */
.header {
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content section */
.content {
    padding: 40px;
    text-align: center;
}

/* PDF info display */
.pdf-info {
}

.pdf-info [class*="fa-"] {
    font-size: 2rem;
    margin-bottom: 20px;
}

.pdf-filename {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Placeholder styling */
.placeholder {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.placeholder:hover {

}

.placeholder-text {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 10px;
}

.placeholder-subtitle {
    font-size: 1rem;
    color: #6c757d;
}

/* Error message styling */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

/* PDF Viewer Container - Full screen overlay */
.pdf-viewer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-viewer-wrapper {
    width: 95%;
    height: 90%;
    background: white;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10001;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #c82333;
}

/* Loading animation */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.2rem;
    color: #6c757d;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .content {
        padding: 20px;
    }
    
    .placeholder {
        padding: 40px 20px;
    }
    
    .pdf-viewer-wrapper {
        width: 98%;
        height: 95%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
    
    .placeholder-text {
        font-size: 1.1rem;
    }
}

/* DearFlip custom styling */
.dflip-df-container {
    width: 100% !important;
    height: 100% !important;
}

/* Hide default DearFlip close button if it conflicts */
.dflip-df-ui .dflip-df-ui-btn.dflip-df-ui-close {
    display: none !important;
}