* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #90a64111 0%, #5d702811 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Override default styles */
#page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    flex-shrink: 1;
    min-width: 0;
}

.logo span {
    white-space: nowrap;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
}

/* Menu Component */
.menu-component {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.menu-item {
    position: relative;
}

.menu-item a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.menu-item a:hover {
    color: #90a641;
    background: rgba(144, 166, 65, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4a5568;
    padding: 8px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.mobile-menu-title {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #4a5568;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: #90a641;
}

.mobile-menu-nav {
    padding: 15px 0;
}

.mobile-menu-item {
    margin-bottom: 0;
}

.mobile-menu-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.mobile-menu-item a:hover {
    background: rgba(144, 166, 65, 0.08);
    color: #90a641;
}

.mobile-menu-item i {
    width: 20px;
    font-size: 16px;
    opacity: 0.7;
}

/* Video Capture Header */
.video-capture-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.video-capture-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
    animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-capture-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease;
}

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

.video-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.video-btn {
    padding: 32px 36px !important;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(10px);
    min-width: 220px;
    justify-content: center;
}

/* Record Button - Clean Gradient Style */
.btn-record {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-record::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-record:hover::before {
    left: 100%;
}

.btn-record:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7688f0 0%, #8659af 100%);
}

/* Upload Button - Glassmorphism Style */
.btn-upload {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-upload::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-upload:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.btn-upload:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

/* AI Generate Button - Modern Gradient Style */
.btn-ai {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-ai::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-ai:hover::before {
    left: 100%;
}

.btn-ai:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
    background: linear-gradient(135deg, #f5a3ff 0%, #ff6b7f 100%);
}

.btn-ai:hover .video-icon {
    transform: scale(1.15) rotate(-3deg);
}

/* Button Icons with Animation */
.video-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-record:hover .video-icon {
    transform: scale(1.15) rotate(3deg);
}

.btn-upload:hover .video-icon {
    transform: scale(1.15) translateY(-1px);
}

/* Button Text */
.video-btn span:not(.video-icon) {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: letter-spacing 0.3s ease;
    position: relative;
    z-index: 1;
}

.video-btn:hover span:not(.video-icon) {
    letter-spacing: 0.4px;
}

/* Disabled State */
.video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.video-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.video-btn:disabled::before {
    display: none;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-x: 0;
    --bs-card-cap-padding-y: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0 0 15px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.card-link {
    color: #90a641;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover {
    color: #5d7028;
}

/* Stats */
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #718096;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #2d3748;
}

.stat-value.green {
    color: #48bb78;
}

.stat-value.blue {
    color: #4299e1;
}

.stat-value a {
    color: inherit;
    text-decoration: none;
}

.stat-value a:hover {
    color: #90a641;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #90a641;
    box-shadow: 0 0 0 3px rgba(144, 166, 65, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #90a641, #7a8f3a);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(144, 166, 65, 0.3);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.upload-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.upload-btn-primary {
    background: #28a745;
    color: white;
}

.upload-btn-primary:hover {
    background: #218838;
}

.upload-btn-secondary {
    background: #6c757d;
    color: white;
}

.upload-btn-secondary:hover {
    background: #5a6268;
}

/* Upload Progress */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Recording Elements - Moved to Recording Modal Specific section below */

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Better responsive breakpoints for video grid wrapping */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    position: relative;
    cursor: move;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.video-card.drag-over {
    border: 2px dashed #90a641;
    background: rgba(144, 166, 65, 0.05);
}

.drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 6px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #666;
    transition: all 0.2s;
}

.drag-handle:hover {
    background: white;
    color: #90a641;
    transform: scale(1.1);
}

.drag-handle:active {
    cursor: grabbing;
}

.video-thumbnail {
    width: 100%;
    height: 320px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.status-pending {
    background: #ffc107;
    color: #000;
}

.status-uploading {
    background: #ff9800;
    color: white;
}

.status-processing,
.status-generating {
    background: #2196f3;
    color: white;
}

.status-ready {
    background: #4caf50;
    color: white;
}

.status-error {
    background: #f44336;
    color: white;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.video-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.video-actions {
    display: flex;
    gap: 8px;
    padding: 5px 0;
}

.video-actions button:hover {
    opacity: 0.9;
}

/* Video Action Buttons */
.video-actions button {
    padding: 6px 14px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-preview {
    background: #4A90E2;
    color: white;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.btn-preview:hover {
    background: #357ABD;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-preview:active {
    transform: translateY(0);
}

.btn-edit {
    background: #FFA726;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 167, 38, 0.2);
}

.btn-edit:hover {
    background: #FB8C00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 167, 38, 0.3);
}

.btn-edit:active {
    transform: translateY(0);
}

.btn-delete {
    background: #EF5350;
    color: white;
    box-shadow: 0 2px 4px rgba(239, 83, 80, 0.2);
}

.btn-delete:hover {
    background: #E53935;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 83, 80, 0.3);
}

.btn-delete:active {
    transform: translateY(0);
}

/* Add icons to buttons (optional - using unicode symbols) */
.btn-preview::before {
    content: "▶";
    font-size: 10px;
}

.btn-edit::before {
    content: "✎";
    font-size: 11px;
}

.btn-delete::before {
    content: "✕";
    font-size: 12px;
}

/* Quick Video Hero Section - Premium Design */
.video-capture-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

/* Animated background pattern */
.video-capture-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.video-capture-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #28a745;
    color: white;
}

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

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-btn-primary {
    background: #28a745;
    color: white;
}

.upload-btn-primary:hover {
    background: #218838;
}

.upload-btn-secondary {
    background: #6c757d;
    color: white;
}

.upload-btn-secondary:hover {
    background: #5a6268;
}

.upload-progress {
    margin-top: 20px;
    display: none;
}

.upload-progress.active {
    display: block;
}

.progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-weight: 600;
    transition: width 0.3s ease;
}

/* No Videos Placeholder */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-videos svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-videos h3 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.no-videos p {
    color: #999;
}

/* Video Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal .close:hover {
    color: #333;
}

/* Recording Modal Specific */
#recordModal .modal-content {
    max-width: 500px;
    padding: 20px;
    max-height: 90vh;
    overflow: visible;
}
#recordModal h2 {
    margin-bottom: 15px;
    font-size: 20px;
}
#recordModal .form-group {
    margin-bottom: 10px;
}
#recordModal .form-group label {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
#recordModal .form-group input,
#recordModal .form-group textarea {
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
#recordModal .form-group textarea {
    height: 50px;
    resize: vertical;
    min-height: 40px;
}

.recording-preview-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 10px auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

#recordingPreview {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: #000;
    display: block;
    object-fit: cover;
}

.recording-timer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.recording-secondary-controls {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 0 20px;
    z-index: 5;
}

.recording-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
    z-index: 5;
}

#recordModal .recording-controls button,
#recordModal .recording-secondary-controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#recordModal .upload-btn-small {
    padding: 10px 20px;
    font-size: 13px;
}

#recordModal .recording-controls .upload-btn-primary,
#recordModal .recording-secondary-controls .upload-btn-primary {
    background: #28a745;
    color: white;
}

#recordModal .recording-controls .upload-btn-primary:hover,
#recordModal .recording-secondary-controls .upload-btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

#recordModal .recording-controls .upload-btn-secondary,
#recordModal .recording-secondary-controls .upload-btn-secondary {
    background: #6c757d;
    color: white;
}

#recordModal .recording-controls .upload-btn-secondary:hover,
#recordModal .recording-secondary-controls .upload-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

/* Countdown Overlay */
#countdownOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 4px;
    z-index: 10;
}

#countdownNumber {
    font-size: 120px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.countdown-cancel-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.countdown-cancel-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.countdown-cancel-btn:active {
    transform: translateY(0);
}

/* Video Player Modal */
#videoPlayer {
    width: 100%;
    max-height: 500px;
    background: #000;
}

/* Form Styles in Modals */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Duplicate video-status removed - using styles from line 793 */

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: bold;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}



.upload-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.no-videos {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-videos h3 {
    margin-bottom: 10px;
}

/* Payment Table */
.payment-table {
    width: 100%;
    overflow-x: auto;
}

.payment-table table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th {
    text-align: left;
    padding: 10px 5px;
    font-size: 12px;
    color: #a0aec0;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid #f0f4f8;
}

.payment-table td {
    padding: 12px 5px;
    font-size: 14px;
    color: #2d3748;
    border-bottom: 1px solid #f7fafc;
}

.payment-table a {
    color: #90a641;
    text-decoration: none;
    font-weight: 500;
}

.payment-table a:hover {
    color: #5d7028;
}

/* QR Code */
.qr-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qr-code {
    flex-shrink: 0;
}

.qr-info {
    flex: 1;
}

.qr-text {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.copy-btn {
    background: linear-gradient(135deg, #90a641, #5d7028);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(144, 166, 65, 0.3);
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.alert .close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    position: static;
    padding: 0;
}

.alert .close:hover {
    opacity: 1;
}

/* Quill Editor Styles */
#qeditor {
    background: white;
    height: 300px;
    border-radius: 8px;
}

#receipt_editor {
    background: white;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ql-toolbar {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-color: #e2e8f0;
}

.ql-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-color: #e2e8f0;
}

/* Response Message */
#eresponse {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

#eresponse.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#eresponse.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Hide old styles */
#acct_header {
    display: none !important;
}

.stripe_component {
    width: 100% !important;
}

#page_title {
    display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .modern-header {
        padding: 10px 0;
    }

    .header-content {
        padding: 10px 15px;
    }

    .logo span {
        font-size: 18px;
    }

    .menu-component {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-icon img {
        width: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .video-actions {
        grid-template-columns: 1fr;
    }

    .qr-container {
        flex-direction: column;
        text-align: center;
    }

    .video-capture-hero {
        padding: 20px;
    }

    .card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}



/* Additional legacy styles for compatibility */

.art-image {
    width: 100px;
    float: left;
}

.ai_response {
    padding: 10px 0;
    border-bottom: 1px solid #999;
}

#ai_form label {
    margin: 20px 0 10px 0;
}

.ai_post_response_ta {
    width: 100%;
    height: 400px;
    border: 1px solid #999;
    margin: 10px 0;
    padding: 12px;
}

#edit-frame {
    display: none;
    border: 1px solid #000;
    width: 50%;
    float: left;
    margin-right: 50px;
}


#d_header {
    border-bottom: 1px solid #000;
    width: 100%;
    padding: 10px;
}

#d_row1 {
    border-bottom: 1px solid rgb(215, 215, 215);
    width: 100%;
    padding: 10px;
}

#d_row2 {
    border-bottom: 1px solid rgb(215, 215, 215);
    width: 100%;
    padding: 10px;
}

#d_row1:hover,
#d_row2:hover {
    background: #f8f8f8;
}

#d_donor {
    width: 38%;
    float: left;
}

#d_amt {
    width: 7%;
    float: left;
}

#d_date {
    width: 10%;
    float: left;
}

#d_receipt {
    width: 16%;
    float: left;
}

#d_notes {
    width: 27%;
    float: left;
}

#d_row {
    background: #fff;
    width: 100%;
    padding: 10px;
    color: #4b4b4b;
}

#d_row .submit {
    width: 150px;
    background: #c40000;
    color: #ffffff;
}

.table_layout {
    display: table;
    width: 100%;
    border-collapse: collapse;
}
.donation_row {
    display: table-row;
}
.donation_row > div {
    display: table-cell;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}
.donation_row:first-child {
    background-color: #f5f5f5;
    font-weight: bold;
}
.donation_row:nth-child(even) {
    background-color: #f9f9f9;
}
.donation_row:hover {
    background-color: #f0f0f0;
}
.donation-answers {
    padding: 5px 0;
}
.donation-answers > div {
    margin: 3px 0;
}
/* Column widths */
.donation_row > div:nth-child(1) { width: 20%; } /* Name */
.donation_row > div:nth-child(2) { width: 15%; } /* Amount */
.donation_row > div:nth-child(3) { width: 15%; } /* Date */
.donation_row > div:nth-child(4) { width: 15%; } /* Receipt */
.donation_row > div:nth-child(5) { width: 15%; } /* Prize */
.donation_row > div:nth-child(6) { width: 20%; } /* Questions */

#history {
    background: #dcdcdc;
    /* Old browsers */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2RjZGNkYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,
            #dcdcdc 45%,
            #ffffff 100%);
    /* FF3.6+ */
    background: -webkit-gradient(linear,
            left top,
            left bottom,
            color-stop(0%, #dcdcdc),
            color-stop(100%, #ffffff));
    /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,
            #dcdcdc 45%,
            #ffffff 100%);
    /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,
            #dcdcdc 45%,
            #ffffff 100%);
    /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #dcdcdc 45%, #ffffff 100%);
    /* IE10+ */
    background: linear-gradient(to bottom, #dcdcdc 45%, #ffffff 100%);
    /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc', endColorstr='#ffffff', GradientType=0);
    /* IE6-8 */
}

#history #page {
    padding-top: 25px;
}

#h_row {
    background: none;
    width: 100%;
    padding: 20px 0 20px 5px;
    color: #000;
    text-shadow: 1px 1px 1px #fff;
    line-height: 22px;
    border-bottom: 1px solid #fff;
}

#h_row_number {
    width: 30px;
    height: 30px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    background: #595959;
    float: left;
    margin-right: 15px;
}

#h_row_number p {
    text-align: center;
    margin-top: 5px;
    color: #fff;
    font-size: 16px;
    line-height: normal;
    text-shadow: none;
}

#h_row_details {
    float: left;
}



#sett_header {
    width: 100%;
}

#sett_header div {
    width: 45%;
    float: left;
    background: #fff;
    padding: 10px;
}


#footer {
    text-align: center;
    font-size: 80%;
    margin: 40px 0;
    color: #000;
}

#footer a {
    color:rgb(35, 35, 35);
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

.w100 div {
    width: 100% !important;
}

/* Reference Image Gallery Styles */
.reference-image-gallery {
    margin: 15px 0;
}

.reference-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.reference-image-item {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.reference-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e0;
}

.reference-image-item.selected {
    border-color: #90a641;
    box-shadow: 0 0 0 3px rgba(144, 166, 65, 0.2);
}

.reference-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.reference-image-info {
    padding: 8px;
    background: white;
}

.reference-image-name {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.reference-image-meta {
    font-size: 11px;
    color: #718096;
}

.reference-image-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 12px;
}

.reference-image-item:hover .reference-image-delete {
    opacity: 1;
}

.reference-image-delete:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.05);
}

.reference-image-selected-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #90a641;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Floating Reference Image Section in Modal */
.reference-image-section-float {
    float: right;
    width: 45%;
    margin-left: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reference-image-section-float .reference-image-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.reference-image-section-float .reference-image-item img {
    height: 120px;
}

/* Lighter placeholder text for AI prompts */
.ai-prompt-textarea::placeholder {
    color: #cbd5e0;
    opacity: 1;
}

@media (max-width: 768px) {
    .reference-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .reference-image-item img {
        height: 120px;
    }

    .reference-image-section-float {
        float: none;
        width: 100%;
        margin-left: 0;
    }
}

@media only screen and (max-width: 900px) {

    #d_donor {
        width: 38%;
        float: left;
    }

    #d_amt {
        width: 25%;
        float: left;
        font-size: 12px;
    }

    #d_date {
        width: 25%;
        float: left;
        font-size: 12px;
    }

    #d_receipt {
        width: 25%;
        float: left;
    }

    #d_notes {
        width: inherit;
        float: left;
    }

    #sett_header div {
        width: 90%;
        float: left;
        background: #fff;
        padding: 10px;
    }

    textarea {
        width: 100% !important;
    }

    #sett_header img {
        width: 100%;
    }
}
/* Campaign Switcher Dropdown */
.campaign-switcher-dropdown {
    position: relative;
    margin-left: 20px;
}

.campaign-switcher-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.3s ease;
}

.campaign-switcher-btn:hover {
    background: white;
    border-color: #4CAF50;
    color: #4CAF50;
}

.campaign-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    display: none;
    z-index: 1001;
}

.campaign-dropdown.show {
    display: block;
}

.campaign-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2d3748;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f4f8;
}

.campaign-dropdown-item:last-child {
    border-bottom: none;
}

.campaign-dropdown-item:hover {
    background: #f7fafc;
    color: #4CAF50;
}

.campaign-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Header Right - aligns campaign switcher and hamburger menu */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-right .campaign-switcher-dropdown {
    margin-left: 0;
    flex-shrink: 0;
}

.header-right .mobile-menu-btn {
    flex-shrink: 0;
}

.header-right .campaign-switcher-btn span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .header-right .campaign-switcher-btn span {
        display: none;
    }

    .header-right .campaign-switcher-btn {
        padding: 8px 12px;
    }

    .header-right .campaign-switcher-btn i.fa-chevron-down {
        display: none;
    }
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-hover: #334155;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Header */
body.dark-mode .modern-header {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .logo {
    color: var(--text-primary);
}

body.dark-mode .menu-item a {
    color: var(--text-secondary);
}

body.dark-mode .menu-item a:hover {
    color: #90a641;
    background: rgba(144, 166, 65, 0.15);
}

/* Campaign Switcher */
body.dark-mode .campaign-switcher-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

body.dark-mode .campaign-dropdown {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.dark-mode .campaign-dropdown-item {
    color: var(--text-primary);
}

body.dark-mode .campaign-dropdown-item:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .campaign-dropdown-divider {
    background: var(--border-color);
}

/* Cards */
body.dark-mode .card {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .card-header {
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .card-title {
    color: var(--text-primary);
}

/* Forms */
body.dark-mode .form-group label {
    color: var(--text-secondary);
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group input[type="number"],
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #90a641;
    background: var(--bg-secondary);
}

/* Buttons */
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #90a641 0%, #5d7028 100%);
}

body.dark-mode .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

body.dark-mode .btn-secondary:hover {
    background: var(--card-hover);
}

/* Tables / Lists */
body.dark-mode #d_header {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode #d_row1,
body.dark-mode #d_row2 {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode #d_row1:hover,
body.dark-mode #d_row2:hover {
    background: var(--bg-tertiary);
}

/* Video Cards */
body.dark-mode .video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.dark-mode .video-card:hover {
    border-color: #90a641;
}

body.dark-mode .video-title {
    color: var(--text-primary);
}

body.dark-mode .video-description {
    color: var(--text-muted);
}

/* Modals */
body.dark-mode .modal-content {
    background: var(--card-bg);
    color: var(--text-primary);
}

body.dark-mode .modal-content h2 {
    color: var(--text-primary);
}

body.dark-mode .close {
    color: var(--text-secondary);
}

/* Question Cards */
body.dark-mode .question-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.dark-mode .question-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .question-input input {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .add-form-card {
    background: var(--card-bg);
}

/* Alerts */
body.dark-mode .alert {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .success-message {
    background: rgba(144, 166, 65, 0.2);
    border-color: #90a641;
    color: var(--text-primary);
}

/* Dashboard Stats */
body.dark-mode .stat-card {
    background: var(--card-bg);
}

body.dark-mode .stat-value {
    color: var(--text-primary);
}

body.dark-mode .stat-label {
    color: var(--text-muted);
}

/* Mobile Menu */
body.dark-mode .mobile-menu-content {
    background: var(--card-bg);
}

body.dark-mode .mobile-menu-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .mobile-menu-title {
    color: var(--text-primary);
}

body.dark-mode .mobile-menu-item a {
    color: var(--text-primary);
}

body.dark-mode .mobile-menu-item a:hover {
    background: var(--bg-tertiary);
}

/* Quill Editor */
body.dark-mode .ql-toolbar {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.dark-mode .ql-container {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.dark-mode .ql-editor {
    color: var(--text-primary);
}

body.dark-mode .ql-stroke {
    stroke: var(--text-secondary);
}

body.dark-mode .ql-fill {
    fill: var(--text-secondary);
}

/* Additional Dark Mode Improvements */

/* All text elements */
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: var(--text-primary);
}

/* Labels and small text */
body.dark-mode small,
body.dark-mode .text-muted {
    color: var(--text-muted) !important;
}

/* All input types */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="number"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="url"],
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .form-control {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: #90a641 !important;
    background: var(--bg-secondary) !important;
    outline: none;
}

/* Select dropdowns */
body.dark-mode select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Page title and headers */
body.dark-mode #page_title {
    color: var(--text-primary);
}

/* Links */
body.dark-mode a {
    color: #90a641;
}

body.dark-mode a:hover {
    color: #a8c04f;
}

/* Promote page specific */
body.dark-mode .promote-form-group label {
    color: var(--text-secondary);
}

body.dark-mode .promote-form-group label b {
    color: #90a641;
}

body.dark-mode .intro-text {
    color: var(--text-secondary);
}

body.dark-mode .promote-header-actions a {
    color: var(--text-secondary);
}

body.dark-mode .promote-header-actions a:hover {
    color: #90a641;
}

body.dark-mode .promote-header-actions i {
    color: #90a641;
}

body.dark-mode .ai-response-header h3 {
    color: var(--text-primary);
}

body.dark-mode .ai-response-header a {
    color: #90a641;
}

body.dark-mode .ai-response-textarea {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .previous-response-item {
    background: var(--bg-tertiary);
    border-left-color: #90a641;
}

body.dark-mode .previous-response-item:hover {
    background: var(--card-hover);
}

body.dark-mode .previous-response-detail {
    color: var(--text-secondary);
}

body.dark-mode .previous-response-detail strong {
    color: var(--text-primary);
}

body.dark-mode .previous-response-preview {
    border-top-color: var(--border-color);
    color: var(--text-muted);
}

body.dark-mode .previous-response-edit {
    color: #90a641;
}

body.dark-mode .previous-response-edit:hover {
    color: #a8c04f;
}

/* Generate button */
body.dark-mode .generate-btn {
    background: linear-gradient(135deg, #90a641 0%, #5d7028 100%);
    color: white;
}

body.dark-mode .generate-btn:hover {
    background: linear-gradient(135deg, #a8c04f 0%, #6d8530 100%);
}

/* Fix link colors - override any default styles */
body.dark-mode a,
body.dark-mode a:link,
body.dark-mode a:visited {
    color: #90a641 !important;
}

body.dark-mode a:hover,
body.dark-mode a:active {
    color: #a8c04f !important;
}

/* Ensure all textareas have dark backgrounds */
body.dark-mode textarea,
body.dark-mode textarea.form-control,
body.dark-mode #ai_post_response_ta {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Quill Editor (Display Copy) */
body.dark-mode #qeditor,
body.dark-mode .ql-container,
body.dark-mode .ql-editor {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .ql-toolbar {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .ql-toolbar button,
body.dark-mode .ql-toolbar .ql-picker-label {
    color: var(--text-primary) !important;
}

body.dark-mode .ql-toolbar button:hover,
body.dark-mode .ql-toolbar .ql-picker-label:hover {
    color: #90a641 !important;
}

body.dark-mode .ql-stroke {
    stroke: var(--text-primary) !important;
}

body.dark-mode .ql-fill {
    fill: var(--text-primary) !important;
}

body.dark-mode .ql-picker-options {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

/* File inputs */
body.dark-mode input[type="file"] {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 8px 12px;
    border-radius: 6px;
}

body.dark-mode input[type="file"]::file-selector-button {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

body.dark-mode input[type="file"]::file-selector-button:hover {
    background: var(--card-hover) !important;
    border-color: #90a641 !important;
}

/* Home page specific - Video capture hero */
body.dark-mode .video-capture-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-mode .video-capture-title,
body.dark-mode .video-capture-subtitle {
    color: var(--text-primary) !important;
}

/* Upload button - make it darker */
body.dark-mode .btn-upload {
    background: rgba(51, 65, 85, 0.9) !important;
    color: var(--text-primary) !important;
    border: 2px solid rgba(144, 166, 65, 0.3) !important;
}

body.dark-mode .btn-upload:hover {
    background: rgba(71, 85, 105, 0.95) !important;
    border-color: rgba(144, 166, 65, 0.5) !important;
    box-shadow: 0 8px 25px rgba(144, 166, 65, 0.2) !important;
}

/* HR elements (stat-row borders) */
body.dark-mode .stat-row {
    border-bottom: 1px solid var(--border-color) !important;
}

body.dark-mode hr {
    border-color: var(--border-color) !important;
    background-color: var(--border-color) !important;
}

/* Stripe Connect component */
body.dark-mode stripe-connect-payments,
body.dark-mode stripe-connect-account-onboarding,
body.dark-mode stripe-connect-account-management {
    color-scheme: dark;
}

/* Override Stripe's iframe styles if possible */
body.dark-mode [id^="stripe-"] {
    color-scheme: dark !important;
}
