.modal-content {
    background: #0f1523;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    margin-bottom: 3rem;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--glass-highlight);
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-body {
    padding: 2rem 2.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: white;
    background: var(--glass-highlight);
}

.tab-btn.active {
    color: white;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Gallery inside Modal */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-caption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

/* Tables inside modal */
.table-container {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.styled-table th, .styled-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.styled-table th {
    background: rgba(0,0,0,0.3);
    color: var(--accent-primary);
    font-weight: 600;
    white-space: nowrap;
}

.styled-table tr:hover {
    background: var(--glass-highlight);
}

.slide-title {
    margin: 2rem 0 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-secondary);
}

/* Text Container */
.text-container pre {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    white-space: pre-wrap;
    font-family: 'Inter', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 90;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--glass-border);
    padding: 3rem;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0,0,0,0.1);
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
}

.upload-zone i {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
}

.upload-zone p span {
    color: var(--accent-primary);
    font-weight: 600;
}

.upload-progress {
    margin-top: 1.5rem;
}

.progress-bar-bg {
    background: var(--glass-highlight);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s;
}

#uploadStatus {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* Download Link */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
    margin-top: 0.5rem;
}

.download-link:hover {
    color: var(--accent-secondary);
}

/* --- Mobile Responsive Improvements --- */
