/* Exhibit Media Manager 1.5 - Enhanced Styles */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #0056b3;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

/* Floating Stamp Menu */
.floating-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-menu-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,123,255,0.4);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.floating-menu-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(0,123,255,0.6);
}

.floating-menu-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    min-width: 200px;
}

.floating-menu.active .floating-menu-content {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.stamp-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.stamp-option:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(5px);
    color: #007bff;
}

.stamp-option i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* File List Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    font-weight: 600;
    color: #495057;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    transform: scale(1.01);
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 20px 20px;
}

/* Preview Container */
.preview-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 15px;
}

.preview-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
}

.preview-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    transform: translateY(-2px);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    padding: 12px 16px;
}

.breadcrumb-item.active {
    color: #007bff;
    font-weight: 600;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0,123,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0);
    }
}

.floating-menu-toggle.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .floating-menu {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-menu-toggle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .floating-menu-content {
        bottom: 60px;
        right: -50px;
        min-width: 150px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* File Type Icons */
.file-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.file-icon.pdf { color: #dc3545; }
.file-icon.doc { color: #0d6efd; }
.file-icon.docx { color: #0d6efd; }
.file-icon.xls { color: #198754; }
.file-icon.xlsx { color: #198754; }
.file-icon.ppt { color: #fd7e14; }
.file-icon.pptx { color: #fd7e14; }
.file-icon.jpg { color: #6f42c1; }
.file-icon.jpeg { color: #6f42c1; }
.file-icon.png { color: #6f42c1; }
.file-icon.gif { color: #6f42c1; }

/* Progress Bar */
.progress {
    border-radius: 10px;
    height: 8px;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Logo Placeholder */
.logo-placeholder {
    text-align: center;
    margin: 20px 0;
}

.logo-placeholder img {
    max-height: 80px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Enhanced Stamp Canvas Styles */
.stamp-canvas {
    transition: all 0.2s ease;
}

.stamp-canvas.resize-mode {
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.5) !important;
    border: 2px solid #0066cc !important;
}

.stamp-canvas:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Resize mode visual feedback */
.resize-mode {
    cursor: nw-resize !important;
}

/* Fix modal backdrop z-index to appear above popup (popup is z-index 10000) */
/* Only for previousExhibitModal in client_portal - not global */
#previousExhibitModal.modal.fade {
    z-index: 10500 !important;
}
#previousExhibitModal ~ .modal-backdrop {
    z-index: 10499 !important;
}
