/* Video AI Q&A Platform - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --secondary-color: #6B7280;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --black: #000000;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--gray-900);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

.section-lg {
    padding: 6rem 0;
}

/* ===== Grid System ===== */
/* .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
} */

.col {
    flex: 1;
    padding: 0 0.75rem;
}

/* Feature cards row */
.row[style*="gap"] {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }

@media (max-width: 992px) {
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 768px) {
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 576px) {
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background-color: var(--gray-300);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--white);
    color: var(--gray-900);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-layout .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.admin-layout .form-control:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-layout .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.admin-layout .form-label {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.admin-layout .form-check-label {
    color: rgba(255,255,255,0.9);
}

.admin-layout small {
    color: rgba(255,255,255,0.6);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    color: var(--gray-700);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== Cards ===== */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

@media (hover: none) {
    .card:hover {
        transform: none;
    }
}

/* ===== Pricing Cards ===== */
.pricing-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.pricing-card-wrapper {
    display: flex;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.billing-toggle {
    display: inline-flex;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 6px;
    position: relative;
}

.billing-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.billing-btn:hover {
    opacity: 0.9;
}

.billing-btn.active {
    background: #2563EB !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-get-started:hover {
    background: #1E40AF !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-card-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .row[style*="gap"] {
        flex-direction: column;
    }
    
    .billing-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* ===== Navigation ===== */
.navbar {
    background-color: #1E293B;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover {
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

.mobile-nav.show {
    display: block;
}

.mobile-nav .navbar-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background-color: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--white);
}

.badge-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.badge-gray {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

/* ===== Tables ===== */
.table {
    width: 100%;
    border-collapse: collapse;
   
}



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

.table th {
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #D1FAE5;
    border-color: var(--success-color);
    color: #065F46;
}

.alert-error {
    background-color: #FEE2E2;
    border-color: var(--danger-color);
    color: #991B1B;
}

.alert-warning {
    background-color: #FEF3C7;
    border-color: var(--warning-color);
    color: #92400E;
}

.alert-info {
    background-color: #DBEAFE;
    border-color: var(--primary-color);
    color: #1E40AF;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-gray { color: var(--gray-600); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-lg {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-nav:not(.mobile-nav .navbar-nav) {
        display: none;
    }
    
    /* Grid adjustments - force full width on mobile */
    .col-6,
    .col-4,
    .col-3,
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    .row {
        margin: 0 -0.5rem;
    }
    
    .col {
        padding: 0 0.5rem;
    }
    
    /* Card adjustments */
    .card {
        padding: 1.5rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Form adjustments */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Hero section */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-6 {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards mobile */
    .pricing-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    .pricing-amount {
        font-size: 1.5rem !important;
    }
    
    .pricing-amount span:first-child {
        font-size: 2rem !important;
    }
    
    /* Feature cards mobile */
    .feature-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Table responsive */
    .table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table thead,
    .table tbody,
    .table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* Card improvements for mobile */
    .card ul {
        font-size: 0.875rem;
    }
    
    /* Row with gap on mobile */
    .row[style*="gap"] {
        flex-direction: column;
    }
    
    /* Footer mobile */
    footer .row {
        flex-direction: column;
    }
    
    footer .col-2,
    footer .col-4 {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    /* Pricing cards mobile */
    .pricing-amount span {
        font-size: 1.75rem !important;
    }
    
    /* Ensure all columns stack on mobile */
    [class*="col-"]:not(.col-12) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Pricing toggle mobile */
    #billing-monthly,
    #billing-yearly {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* ===== Loading Spinner ===== */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

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

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

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

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gray-900);
}

/* ===== Admin Panel Styles ===== */
.admin-layout {
    min-height: 100vh;
}

.admin-layout .card {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: white;
}

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

.admin-layout .table th {
    text-align: left;
    padding: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.05);
}

.admin-layout .table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.admin-layout .table tr:hover {
    background: rgba(255,255,255,0.05);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
    .admin-layout .main-content {
        margin-left: 0 !important;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .admin-layout .table {
        font-size: 0.75rem;
    }
    
    .admin-layout .table th,
    .admin-layout .table td {
        padding: 0.5rem;
    }
}

/* ===== DataTables Styles for Admin Panel ===== */
.dataTables_wrapper {
    color: rgba(255,255,255,0.9);
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(59, 130, 246, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dataTables_wrapper .dataTables_filter label {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 6px;
    margin: 0 0.5rem;
}

.dataTables_wrapper .dataTables_length select:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(59, 130, 246, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dataTables_wrapper .dataTables_length label {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_info {
    color: rgba(255,255,255,0.9) !important;
    padding-top: 1rem;
    font-size: 0.875rem;
    clear: both;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
    float: right;
    text-align: right;
    display: block !important;
}

.dataTables_wrapper .dataTables_paginate > span {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: rgba(255,255,255,0.95) !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    padding: 0.625rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s !important;
    cursor: pointer;
    display: inline-block !important;
    float: none !important;
    vertical-align: middle !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(59, 130, 246, 0.4) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    color: white !important;
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button a {
    color: inherit !important;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* Force horizontal layout for pagination */
.dataTables_wrapper .dataTables_paginate {
    white-space: nowrap !important;
    line-height: normal !important;
    display: block !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block !important;
    float: none !important;
    vertical-align: middle !important;
    position: relative !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
}

/* Override any flex or block display that might cause vertical stacking */
.dataTables_wrapper .dataTables_paginate ul,
.dataTables_wrapper .dataTables_paginate li,
.dataTables_wrapper .dataTables_paginate span {
    display: inline !important;
    float: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.dataTables_wrapper .dataTables_paginate li {
    display: inline-block !important;
    margin: 0 2px !important;
    vertical-align: middle !important;
}

/* Ensure pagination wrapper doesn't use flex column */
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_paginate > * {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
    background-color: transparent !important;
    margin-top: 0 !important;
}

table.dataTable thead th {
    background: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.98) !important;
    border-bottom: 2px solid rgba(255,255,255,0.2) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
    vertical-align: middle;
    white-space: nowrap;
}

table.dataTable thead th:first-child {
    border-top-left-radius: 8px;
}

table.dataTable thead th:last-child {
    border-top-right-radius: 8px;
}

table.dataTable tbody {
    background-color: transparent !important;
}

table.dataTable tbody tr {
    background-color: transparent !important;
    transition: all 0.2s ease;
}

table.dataTable tbody tr:hover {
    background: rgba(255,255,255,0.08) !important;
    transform: translateY(-1px);
}

table.dataTable tbody td {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 1rem;
    color: rgba(255,255,255,0.95) !important;
    vertical-align: middle;
    background-color: transparent !important;
}

table.dataTable tbody tr:last-child td {
    border-bottom: none;
}

table.dataTable tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

table.dataTable tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Override Bootstrap table-striped */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: transparent !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: transparent !important;
}

/* DataTables Buttons */
.dt-buttons {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dt-buttons .btn {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #3B82F6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.dt-buttons .btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

/* Video Table Specific Styles */
.video-table-container {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    overflow-x: auto;
}

.video-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.video-table-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
}

.video-table-header p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.8125rem;
}

.video-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-thumbnail-placeholder {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.15);
    font-size: 1.5rem;
}

.video-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.video-featured-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    color: #8B5CF6;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: inline-block;
    margin-top: 0.25rem;
}

.video-platform-badge {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.95);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
}

.video-status-badge {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    display: inline-block;
}

.video-status-completed {
    background: rgba(16, 185, 129, 0.25);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.4);
}

.video-status-processing {
    background: rgba(59, 130, 246, 0.25);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.4);
}

.video-status-failed {
    background: rgba(239, 68, 68, 0.25);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.video-status-pending {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.2);
}

.video-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.video-action-btn {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid;
    cursor: pointer;
}

.video-action-btn-view {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: white;
}

.video-action-btn-view:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

.video-action-btn-edit {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60A5FA;
}

.video-action-btn-edit:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.video-action-btn-delete {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    color: #F87171;
}

.video-action-btn-delete:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-import-videos {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-import-videos:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Responsive DataTables */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin-top: 1rem;
        white-space: normal !important;
    }
    
    .dataTables_wrapper .dataTables_paginate > span {
        justify-content: center !important;
    }
    
    .dataTables_wrapper .dataTables_info {
        text-align: center;
        float: none;
        margin-top: 1rem;
    }
    
    .video-table-container {
        padding: 1rem;
    }
    
    table.dataTable thead th,
    table.dataTable tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .video-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .video-action-btn {
        width: 100%;
        text-align: center;
    }
}

