/* ==========================================================================
   Modern Design System - pan.moluawa.top
   Replaces Bootstrap 3 + Material Design with a clean, modern CSS framework
   ==========================================================================

   1. Design Tokens (CSS Custom Properties)
   2. Reset & Base
   3. Typography
   4. Layout (Container, Grid, Flex)
   5. Navigation (Navbar, Sidebar)
   6. Cards / Panels
   7. Buttons
   8. Forms
   9. Tables
   10. Alerts
     11. Badges & Labels
   12. Pagination
   13. Progress Bars
   14. Tabs
   15. Dropdowns
   16. Modals
   17. List Groups
   18. Utilities
   19. Responsive
   20. Dark Mode
   21. Bootstrap 3 Compatibility Layer

   ========================================================================== */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-lighter: #c7d2fe;
    --accent: #ec4899;
    --accent-dark: #db2777;
    --accent-light: #f9a8d4;

    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Neutrals */
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    --bg-elevated: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-primary-soft: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(236,72,153,0.08) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 24px rgba(99,102,241,0.2);
    --shadow-glow-accent: 0 0 24px rgba(236,72,153,0.2);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 15px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --leading: 1.6;
    --leading-tight: 1.25;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Sidebar */
    --sidebar-width: 240px;
    --sidebar-collapsed: 64px;
    --navbar-height: 64px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f172a;
        --bg-card: #1e293b;
        --bg-hover: #334155;
        --bg-elevated: #1e293b;
        --border: #334155;
        --border-light: #1e293b;
        --text: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
        --shadow: 0 4px 6px -1px rgba(0,0,0,0.4);
        --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.4);
        --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.5);
    }
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-elevated: #1e293b;
    --border: #334155;
    --border-light: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.5);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--text);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-md); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-white { color: #fff; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-lg);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--space-sm));
}

.col { flex: 1 0 0%; }

/* Grid columns - 12 column system */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    flex: 0 0 auto;
    padding: 0 var(--space-sm);
}
.col-1 { width: 8.333%; }
.col-2 { width: 16.667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-5 { width: 41.667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333%; }
.col-8 { width: 66.667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333%; }
.col-11 { width: 91.667%; }
.col-12 { width: 100%; }

/* Responsive grid */
@media (min-width: 576px) {
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
        flex: 0 0 auto; padding: 0 var(--space-sm);
    }
    .col-sm-1 { width: 8.333%; } .col-sm-2 { width: 16.667%; }
    .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.333%; }
    .col-sm-5 { width: 41.667%; } .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.333%; } .col-sm-8 { width: 66.667%; }
    .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.333%; }
    .col-sm-11 { width: 91.667%; } .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        flex: 0 0 auto; padding: 0 var(--space-sm);
    }
    .col-md-1 { width: 8.333%; } .col-md-2 { width: 16.667%; }
    .col-md-3 { width: 25%; } .col-md-4 { width: 33.333%; }
    .col-md-5 { width: 41.667%; } .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333%; } .col-md-8 { width: 66.667%; }
    .col-md-9 { width: 75%; } .col-md-10 { width: 83.333%; }
    .col-md-11 { width: 91.667%; } .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
        flex: 0 0 auto; padding: 0 var(--space-sm);
    }
    .col-lg-1 { width: 8.333%; } .col-lg-2 { width: 16.667%; }
    .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.333%; }
    .col-lg-5 { width: 41.667%; } .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333%; } .col-lg-8 { width: 66.667%; }
    .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.333%; }
    .col-lg-11 { width: 91.667%; } .col-lg-12 { width: 100%; }
}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    flex: 0 0 auto; padding: 0 var(--space-sm);
}
.col-xs-1 { width: 8.333%; } .col-xs-2 { width: 16.667%; }
.col-xs-3 { width: 25%; } .col-xs-4 { width: 33.333%; }
.col-xs-5 { width: 41.667%; } .col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.333%; } .col-xs-8 { width: 66.667%; }
.col-xs-9 { width: 75%; } .col-xs-10 { width: 83.333%; }
.col-xs-11 { width: 91.667%; } .col-xs-12 { width: 100%; }

/* Flexbox utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none !important; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-self-center { align-self: center; }

/* Center block */
.center-block {
    margin-left: auto;
    margin-right: auto;
}

.col-md-offset-4 { margin-left: 33.333%; }
.col-sm-offset-3 { margin-left: 25%; }
.col-md-offset-2 { margin-left: 16.667%; }
.col-sm-offset-2 { margin-left: 16.667%; }
.col-sm-offset-1 { margin-left: 8.333%; }
.col-md-offset-1 { margin-left: 8.333%; }
.col-md-offset-3 { margin-left: 25%; }

/* ==========================================================================
   5. Navigation
   ========================================================================== */

/* Modern Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
    padding: 0 var(--space-lg);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-brand:hover {
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.navbar-nav > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.navbar-nav > li > a:hover {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}
.navbar-nav > li.active > a {
    background: var(--gradient-primary);
    color: #fff;
}
.navbar-nav.navbar-right {
    margin-left: auto;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.navbar-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    margin: 4px 0;
    transition: var(--transition);
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

/* Sidebar (Admin) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: var(--transition-slow);
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.sidebar-header h2 {
    font-size: var(--text-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-md) 0;
    list-style: none;
}

.sidebar-nav > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}
.sidebar-nav > li > a:hover {
    background: var(--bg-hover);
    color: var(--primary);
    border-left-color: var(--primary-light);
}
.sidebar-nav > li.active > a {
    background: var(--gradient-primary-soft);
    color: var(--primary-dark);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-nav .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
    border: none;
    background: var(--bg-hover);
    margin: 0;
    padding: 0;
}
.sidebar-nav .dropdown-menu > li > a {
    display: block;
    padding: 10px var(--space-xl);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}
.sidebar-nav .dropdown-menu > li > a:hover {
    color: var(--primary);
}

/* Main content with sidebar */
.main-content {
    margin-left: var(--sidebar-width);
    padding: var(--space-lg);
    min-height: 100vh;
}

/* ==========================================================================
   6. Cards / Panels
   ========================================================================== */
.card, .panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: var(--space-md);
}

.card:hover, .panel:hover {
    box-shadow: var(--shadow);
}

.card-header, .panel-heading {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: var(--bg-hover);
}
.card-header h3, .panel-heading h3,
.panel-title {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body, .panel-body {
    padding: var(--space-lg);
}

.card-footer, .panel-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--bg-hover);
}

/* Panel variants */
.panel-primary { border-color: var(--primary-light); }
.panel-primary .panel-heading {
    background: var(--gradient-primary);
    color: #fff;
    border-bottom: none;
}
.panel-primary .panel-title { color: #fff; }

.panel-success { border-color: var(--success); }
.panel-success .panel-heading {
    background: var(--gradient-success);
    color: #fff;
    border-bottom: none;
}
.panel-success .panel-title { color: #fff; }

.panel-info { border-color: var(--info); }
.panel-info .panel-heading {
    background: var(--gradient-info);
    color: #fff;
    border-bottom: none;
}
.panel-info .panel-title { color: #fff; }

.panel-warning { border-color: var(--warning); }
.panel-warning .panel-heading {
    background: var(--gradient-warning);
    color: #fff;
    border-bottom: none;
}
.panel-warning .panel-title { color: #fff; }

.panel-danger { border-color: var(--danger); }
.panel-danger .panel-heading {
    background: var(--gradient-danger);
    color: #fff;
    border-bottom: none;
}
.panel-danger .panel-title { color: #fff; }

.panel-default .panel-heading {
    background: var(--bg-hover);
}

/* Well (deprecated, map to card) */
.well {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

/* Stat card */
.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 24px;
    flex-shrink: 0;
}
.stat-card .stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}
.stat-card .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    background: transparent;
    color: var(--text);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

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

.btn:focus {
    outline: 2px solid var(--primary-lighter);
    outline-offset: 2px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--text-base);
    border-radius: var(--radius);
}
.btn-sm {
    padding: 6px 14px;
    font-size: var(--text-xs);
    border-radius: var(--radius-xs);
}
.btn-xs {
    padding: 4px 10px;
    font-size: var(--text-xs);
    border-radius: var(--radius-xs);
}

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

/* Button variants */
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.btn-success {
    background: var(--gradient-success);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}
.btn-success:hover {
    color: #fff;
    box-shadow: 0 4px 16px rgba(16,185,129,0.35);
}

.btn-info {
    background: var(--gradient-info);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.btn-info:hover {
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}

.btn-warning {
    background: var(--gradient-warning);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.btn-warning:hover {
    color: #fff;
    box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}

.btn-danger {
    background: var(--gradient-danger);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}
.btn-danger:hover {
    color: #fff;
    box-shadow: 0 4px 16px rgba(239,68,68,0.35);
}

.btn-default {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-default:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* FAB (floating action button) */
.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    padding: 0;
    font-size: 24px;
}

.btn-raised {
    box-shadow: var(--shadow);
}

/* ==========================================================================
   8. Forms
   ========================================================================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    outline: none;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control[readonly] {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.control-label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.form-horizontal .control-label {
    padding-top: 10px;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
}
.input-group-btn {
    display: flex;
}
.input-group-btn .btn {
    border-radius: 0;
    white-space: nowrap;
}
.input-group .form-control:first-child,
.input-group-btn:first-child .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group-btn:last-child .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

/* Checkbox & Radio */
.checkbox, .radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
    cursor: pointer;
}
.checkbox input[type="checkbox"],
.radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox label, .radio label {
    margin: 0;
    cursor: pointer;
    font-size: var(--text-sm);
}

.help-block {
    display: block;
    margin-top: 4px;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ==========================================================================
   9. Tables
   ========================================================================== */
.table {
    width: 100%;
    margin-bottom: var(--space-md);
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--text-sm);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-hover);
    border-bottom: 2px solid var(--border);
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table-bordered {
    border: 1px solid var(--border);
}
.table-bordered th, .table-bordered td {
    border: 1px solid var(--border);
}

.table-hover tbody tr:hover {
    background: var(--bg-hover);
}

.table-striped tbody tr:nth-child(odd) {
    background: var(--bg-hover);
}

/* ==========================================================================
   10. Alerts
   ========================================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    border: 1px solid transparent;
    font-size: var(--text-sm);
}
.alert .close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    line-height: 1;
    padding: 0;
}
.alert .close:hover { opacity: 1; }

.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: #065f46;
}
.alert-info {
    background: var(--info-light);
    border-color: var(--info);
    color: #1e40af;
}
.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #92400e;
}
.alert-danger {
    background: var(--danger-light);
    border-color: var(--danger);
    color: #991b1b;
}
.alert-dismissible {
    padding-right: var(--space-lg);
}

/* ==========================================================================
   11. Badges & Labels
   ========================================================================== */
.badge, .label {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
}
.label-default { background: var(--text-muted); color: #fff; }
.label-primary { background: var(--primary); color: #fff; }
.label-success { background: var(--success); color: #fff; }
.label-info { background: var(--info); color: #fff; }
.label-warning { background: var(--warning); color: #fff; }
.label-danger { background: var(--danger); color: #fff; }

.badge-default { background: var(--border); color: var(--text-secondary); }

/* ==========================================================================
   12. Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin: var(--space-lg) 0;
    list-style: none;
}
.pagination > li > a,
.pagination > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition-fast);
    text-decoration: none;
}
.pagination > li > a:hover {
    background: var(--bg-hover);
    border-color: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}
.pagination > li.active > a,
.pagination > li.active > span {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}
.pagination > li.disabled > a,
.pagination > li.disabled > span {
    color: var(--text-muted);
    background: var(--bg-hover);
    cursor: not-allowed;
}

/* ==========================================================================
   13. Progress Bars
   ========================================================================== */
.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-light);
    overflow: hidden;
    margin-bottom: var(--space-md);
}
.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}
.progress-striped .progress-bar {
    background-image: linear-gradient(45deg,
        rgba(255,255,255,0.15) 25%, transparent 25%,
        transparent 50%, rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%, transparent 75%);
    background-size: 20px 20px;
}
.progress.active .progress-bar {
    animation: progress-stripe 2s linear infinite;
}
@keyframes progress-stripe {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* ==========================================================================
   14. Tabs
   ========================================================================== */
.nav-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-md);
    background: transparent;
    list-style: none;
    overflow-x: auto;
}
.nav-tabs > li {
    margin-bottom: -2px;
}
.nav-tabs > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}
.nav-tabs > li > a:hover {
    color: var(--primary);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--primary-light);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    color: var(--primary);
    border: 0;
    border-bottom: 2px solid var(--primary);
    background: transparent;
    font-weight: 600;
}
.nav-tabs > li.disabled > a {
    color: var(--text-muted);
    cursor: not-allowed;
}

.tab-content {
    padding: var(--space-md) 0;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
.tab-pane.fade {
    opacity: 0;
    transition: opacity 0.3s;
}
.tab-pane.fade.in {
    opacity: 1;
}

/* ==========================================================================
   15. Dropdowns
   ========================================================================== */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    padding: var(--space-xs) 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    list-style: none;
}
.dropdown.open .dropdown-menu {
    display: block;
    animation: dropdown-in 0.2s ease;
}
@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu > li > a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}
.dropdown-menu > li > a:hover {
    background: var(--bg-hover);
    color: var(--primary);
    text-decoration: none;
}
.dropdown-menu .divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-xs) 0;
}

/* ==========================================================================
   16. Modals
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: var(--z-modal);
    overflow: hidden;
}
.modal.in { display: block; }
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-modal-backdrop);
    backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative;
    max-width: 500px;
    margin: 60px auto;
    z-index: var(--z-modal);
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.modal-header .close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
}
.modal-body {
    padding: var(--space-lg);
}
.modal-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--bg-hover);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* ==========================================================================
   17. List Groups
   ========================================================================== */
.list-group {
    margin-bottom: var(--space-md);
}
.list-group-item {
    display: block;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-size: var(--text-sm);
    transition: var(--transition-fast);
    background: var(--bg-card);
}
.list-group-item:first-child {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}
.list-group-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}
.list-group-item:hover {
    background: var(--bg-hover);
    color: var(--text);
    text-decoration: none;
}

/* ==========================================================================
   18. Utilities
   ========================================================================== */
/* Spacing */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); } .mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); } .mt-5 { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); } .mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); } .mb-5 { margin-bottom: var(--space-xl); }
.ml-0 { margin-left: 0; } .ml-2 { margin-left: var(--space-sm); }
.ml-3 { margin-left: var(--space-md); } .ml-4 { margin-left: var(--space-lg); }
.mr-2 { margin-right: var(--space-sm); } .mr-3 { margin-right: var(--space-md); }
.p-0 { padding: 0; } .p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); } .p-4 { padding: var(--space-lg); }
.pt-0 { padding-top: 0; } .pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; } .pr-0 { padding-right: 0; }

/* Display */
.pull-left { float: left; }
.pull-right { float: right; }
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Visibility */
.hide { display: none !important; }
.hidden-xs { display: block; }
.show { display: block !important; }
.invisible { visibility: hidden; }

/* Text */
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.break-word { word-wrap: break-word; }

/* Background */
.bg-primary { background: var(--primary) !important; color: #fff; }
.bg-success { background: var(--success) !important; color: #fff; }
.bg-info { background: var(--info) !important; color: #fff; }
.bg-warning { background: var(--warning) !important; color: #fff; }
.bg-danger { background: var(--danger) !important; color: #fff; }
.bg-white { background: #fff; }
.bg-transparent { background: transparent; }

/* Borders */
.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Width/Height */
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-100 { height: 100%; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Misc */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Ripple effect */
.ripple-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
}
.btn { position: relative; overflow: hidden; }

/* ==========================================================================
   19. Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: var(--space-sm) var(--space-md);
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: var(--space-sm);
    }
    .navbar-collapse.in,
    .navbar-collapse.collapse.in {
        display: flex;
    }
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .navbar-nav > li {
        width: 100%;
    }
    .navbar-nav > li > a {
        padding: 12px 16px;
    }
    .navbar-nav.navbar-right {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }

    .hidden-xs { display: none !important; }
    .visible-xs { display: block !important; }

    .container { padding: 0 var(--space-md); }
    .modal-dialog {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 992px) {
    .hidden-sm { display: none !important; }
}

@media (min-width: 769px) {
    .visible-xs { display: none !important; }
}

/* ==========================================================================
   20. Dark Mode Toggle
   ========================================================================== */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    font-size: 18px;
}
.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* ==========================================================================
   21. Special Components
   ========================================================================== */

/* File item (for index.php) */
.file-list-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--space-sm));
    padding: 0 var(--space-sm);
}

.file-list {
    display: grid;
    gap: var(--space-sm);
    min-width: 600px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.file-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-right: var(--space-md);
    font-size: 22px;
    flex-shrink: 0;
}

.icon-folder { background: linear-gradient(135deg, #fde68a, #fb923c); }
.icon-file { background: linear-gradient(135deg, #818cf8, #6366f1); color: white; }
.icon-image { background: linear-gradient(135deg, #f9a8d4, #ec4899); color: white; }
.icon-video { background: linear-gradient(135deg, #fb923c, #fbbf24); color: white; }
.icon-audio { background: linear-gradient(135deg, #67e8f9, #3b82f6); color: white; }
.icon-archive { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }

.file-info { flex: 1; min-width: 0; }
.file-name {
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 4px;
}
.file-size {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    padding: 4px 12px;
    background: var(--primary-lighter);
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-left: var(--space-sm);
    flex-shrink: 0;
}

/* Search box */
.search-box {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text);
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.search-box button {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
}

/* Auth page background */
.auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: var(--space-lg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
}

.auth-title {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
}

/* QR code */
.qr-code {
    display: flex;
    justify-content: center;
    padding: var(--space-md);
}
.qr-code img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Loading */
.colorful_loading_frame {
    position: fixed;
    top: 0; left: 0;
    z-index: 99999;
    width: 100%; height: 100%;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}
.colorful_loading_frame.show { display: flex; }
.colorful_loading {
    display: flex;
    gap: 4px;
}
.colorful_loading > i {
    display: inline-block;
    width: 6px;
    height: 40px;
    background: var(--primary);
    border-radius: 3px;
    animation: stretchdelay 1.2s infinite ease-in-out;
}
.colorful_loading .rect2 { animation-delay: -1.1s; }
.colorful_loading .rect3 { animation-delay: -1.0s; }
.colorful_loading .rect4 { animation-delay: -0.9s; }
.colorful_loading .rect5 { animation-delay: -0.8s; }
@keyframes stretchdelay {
    0%, 100%, 40% { transform: scaleY(0.4); }
    20% { transform: scaleY(1); }
}

/* Huge number (admin dashboard) */
.huge { font-size: 36px; font-weight: 700; }

/* Video player */
.videoplayer { width: 100%; height: 530px; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1199px) { .videoplayer { height: 480px; } }
@media (max-width: 991px) { .videoplayer { height: 420px; } }
@media (max-width: 767px) { .videoplayer { height: 320px; } }

.video_view { width: 100%; max-height: 450px; min-height: 300px; }
.image_view { max-width: 100%; max-height: 450px; min-height: 200px; border-radius: var(--radius); overflow: hidden; }
.image { max-width: 100%; max-height: 450px; border-radius: var(--radius); }

.view { padding-top: 40px; padding-bottom: 40px; }
.elseview { height: 150px; }
.tubiao { font-size: 80px; color: var(--text-muted); width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.elsetext { color: var(--text-muted); font-size: var(--text-lg); text-align: center; }

/* Login form */
#loginform .loginbtn {
    margin: 10px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#loginform .loginbtn i { padding-top: 0; }

/* File info table */
.fileinfo-table { max-width: 80%; margin: 0 auto; }
@media (max-width: 767px) { .fileinfo-table { max-width: 100%; } }

/* Filename overflow */
.filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist > tbody > tr > td { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Search box (inline) */
.searchbox { margin-top: -8px; }
.searchbox button { margin-top: 8px; }
@media (min-width: 768px) { .searchbox { float: right; } }

/* APlayer overrides */
.aplayer .aplayer-pic { height: 100px; width: 100px; }
.aplayer .aplayer-info .aplayer-music .aplayer-title { font-size: 18px; }
.aplayer .aplayer-info { margin-left: 100px; padding: 25px 7px 0 10px; height: 66px; box-sizing: border-box; }

/* Form inline */
.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
.form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; }

/* Navbar default (compat) */
.navbar-default {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.navbar-fixed-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-fixed);
}

/* Col offset compatibility */
.col-sm-offset-3 { margin-left: 25%; }
.col-md-offset-4 { margin-left: 33.333%; }
.col-lg-10 { width: 83.333%; }
