/**
 * ============================================================
 * Nadics LectureHub — Main Design System Stylesheet
 * ============================================================
 *
 * Comprehensive CSS design system implementing:
 * - CSS Custom Properties (design tokens)
 * - Typography system with Google Fonts
 * - Layout utilities and responsive grid
 * - Component styles (cards, badges, buttons)
 * - Micro-animations and transitions
 * - Premium SaaS aesthetic
 *
 * Color Palette:
 *   Primary:   #0F172A (Deep Navy)
 *   Secondary: #2563EB (Royal Blue)
 *   Accent:    #06B6D4 (Cyan)
 *   Success:   #10B981 (Emerald)
 *   Warning:   #F59E0B (Amber)
 *   Danger:    #EF4444 (Red)
 *
 * @author  Nadics Solutions
 * @version 1.0.0
 * ============================================================
 */

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
    /* ---- Colors ---- */
    --primary:       #0F172A;
    --primary-light: #1E293B;
    --primary-dark:  #020617;

    --secondary:       #2563EB;
    --secondary-light: #3B82F6;
    --secondary-dark:  #1D4ED8;

    --accent:       #06B6D4;
    --accent-light: #22D3EE;
    --accent-dark:  #0891B2;

    --success:       #10B981;
    --success-light: #34D399;
    --success-dark:  #059669;

    --warning:       #F59E0B;
    --warning-light: #FBBF24;
    --warning-dark:  #D97706;

    --danger:       #EF4444;
    --danger-light: #F87171;
    --danger-dark:  #DC2626;

    --info:       #8B5CF6;
    --info-light: #A78BFA;
    --info-dark:  #7C3AED;

    /* ---- Neutral Scale ---- */
    --gray-50:  #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --gray-950: #020617;

    /* ---- Semantic Colors (Light Mode) ---- */
    --bg-body:        #F1F5F9;
    --bg-surface:     #FFFFFF;
    --bg-surface-alt: #F8FAFC;
    --bg-sidebar:     #0F172A;
    --bg-navbar:      #FFFFFF;
    --bg-card:        #FFFFFF;
    --bg-input:       #FFFFFF;
    --bg-hover:       #F1F5F9;

    --text-primary:   #0F172A;
    --text-secondary: #475569;
    --text-muted:     #94A3B8;
    --text-inverse:   #FFFFFF;
    --text-link:      #2563EB;

    --border-color:   #E2E8F0;
    --border-light:   #F1F5F9;
    --border-focus:   #2563EB;

    /* ---- Typography ---- */
    --font-primary:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;

    --leading-tight:  1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* ---- Spacing ---- */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* ---- Border Radius ---- */
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.5rem;
    --radius-full: 9999px;

    /* ---- Shadows ---- */
    --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);

    /* ---- Transitions ---- */
    --transition-fast:    150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal:  250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:    350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring:  500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* ---- Layout ---- */
    --sidebar-width:       260px;
    --sidebar-collapsed:   72px;
    --navbar-height:       64px;
    --content-max-width:   1400px;

    /* ---- Z-Index ---- */
    --z-sidebar:   1000;
    --z-navbar:    1010;
    --z-dropdown:  1020;
    --z-modal:     1050;
    --z-toast:     1080;
    --z-tooltip:   1090;
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll at the root level */
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

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); font-weight: 600; }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

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

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

::selection {
    background-color: var(--secondary);
    color: white;
}

/* ============================================================
   SCROLLBAR STYLES
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent    { color: var(--accent) !important; }
.text-success   { color: var(--success) !important; }
.text-warning   { color: var(--warning) !important; }
.text-danger    { color: var(--danger) !important; }
.text-muted     { color: var(--text-muted) !important; }

.bg-primary   { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent    { background-color: var(--accent) !important; }
.bg-success   { background-color: var(--success) !important; }
.bg-warning   { background-color: var(--warning) !important; }
.bg-danger    { background-color: var(--danger) !important; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ============================================================
   GRADIENTS
   ============================================================ */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
}

.gradient-warm {
    background: linear-gradient(135deg, var(--warning) 0%, var(--danger) 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 40%, #2563EB 100%);
}

/* ============================================================
   CARD COMPONENT
   ============================================================ */
.slms-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

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

.slms-card .card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
}

.slms-card .card-body {
    padding: var(--space-6);
}

.slms-card .card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
}

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.stat-card.stat-primary::before   { background: linear-gradient(90deg, var(--secondary), var(--accent)); }
.stat-card.stat-success::before   { background: linear-gradient(90deg, var(--success), var(--accent)); }
.stat-card.stat-warning::before   { background: linear-gradient(90deg, var(--warning), var(--danger)); }
.stat-card.stat-danger::before    { background: linear-gradient(90deg, var(--danger), var(--warning)); }
.stat-card.stat-info::before      { background: linear-gradient(90deg, var(--info), var(--secondary)); }

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

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: white;
    flex-shrink: 0;
}

.stat-card .stat-icon.icon-primary { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.stat-card .stat-icon.icon-success { background: linear-gradient(135deg, var(--success), var(--accent)); }
.stat-card .stat-icon.icon-warning { background: linear-gradient(135deg, var(--warning), var(--danger)); }
.stat-card .stat-icon.icon-danger  { background: linear-gradient(135deg, var(--danger), var(--warning)); }
.stat-card .stat-icon.icon-info    { background: linear-gradient(135deg, var(--info), var(--secondary)); }

.stat-card .stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-card .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-slms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 24px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-slms::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-slms:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-accent:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-success-slms {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger-slms {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

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

.btn-outline-slms:hover:not(:disabled) {
    background: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-slms:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.btn-lg { padding: 14px 32px; font-size: var(--text-base); }
.btn-sm { padding: 6px 16px; font-size: var(--text-xs); }

/* ============================================================
   BADGE COMPONENT
   ============================================================ */
.badge-slms {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.5;
}

.badge-primary   { background: rgba(37, 99, 235, 0.1); color: var(--secondary); }
.badge-success   { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning   { background: rgba(245, 158, 11, 0.1); color: var(--warning-dark); }
.badge-danger    { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-info      { background: rgba(139, 92, 246, 0.1); color: var(--info); }
.badge-accent    { background: rgba(6, 182, 212, 0.1); color: var(--accent-dark); }

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-control-slms {
    width: 100%;
    padding: 10px 16px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    outline: none;
}

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

.form-control-slms.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: block;
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: var(--space-1);
    font-weight: 500;
}

.form-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.input-group-slms {
    position: relative;
}

.input-group-slms .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.input-group-slms .form-control-slms {
    padding-left: 42px;
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.table-slms {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-slms thead th {
    background: var(--bg-surface-alt);
    padding: 12px 16px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.table-slms tbody td {
    padding: 14px 16px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

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

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

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

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; }

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
}

/* ============================================================
   TOAST / ALERT NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 16px);
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    width: 100%;
}

.toast-slms {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.4s var(--transition-spring);
    font-size: var(--text-sm);
    font-weight: 500;
    border-left: 4px solid;
}

.toast-success {
    background: #ECFDF5;
    color: var(--success-dark);
    border-color: var(--success);
}

.toast-error {
    background: #FEF2F2;
    color: var(--danger-dark);
    border-color: var(--danger);
}

.toast-warning {
    background: #FFFBEB;
    color: var(--warning-dark);
    border-color: var(--warning);
}

.toast-info {
    background: #EFF6FF;
    color: var(--secondary-dark);
    border-color: var(--secondary);
}

.toast-slms .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    font-size: var(--text-lg);
    line-height: 1;
    transition: opacity var(--transition-fast);
}

.toast-slms .toast-close:hover {
    opacity: 1;
}

/* ============================================================
   ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

.animate-fadeIn    { animation: fadeIn 0.5s ease-out both; }
.animate-fadeInUp  { animation: fadeInUp 0.5s ease-out both; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease-out both; }
.animate-scaleIn   { animation: scaleIn 0.3s ease-out both; }
.animate-pulse     { animation: pulse 2s infinite; }
.animate-spin      { animation: spin 1s linear infinite; }

/* Premium Custom Keyframes */
@keyframes floatGlow1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.15); }
}

@keyframes floatGlow2 {
    0%, 100% { transform: translate(0, 0) scale(1.1); }
    50% { transform: translate(-40px, 30px) scale(0.9); }
}

@keyframes equalize {
    0% { transform: scaleY(0.25); }
    100% { transform: scaleY(1); }
}

@keyframes radar {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0; }
}

@keyframes scanBeam {
    0% { top: 0%; opacity: 0; }
    10%, 90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(255, 255, 255, 0.1); }
    50% { border-color: rgba(6, 182, 212, 0.4); }
}

/* Premium Custom Classes */
.floating-glow-1 {
    animation: floatGlow1 18s ease-in-out infinite;
}

.floating-glow-2 {
    animation: floatGlow2 24s ease-in-out infinite;
}

.equalizer-bar {
    transform-origin: bottom;
    animation: equalize 0.8s ease-in-out infinite alternate;
}

.radar-ring-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10B981;
    animation: radar 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

.radar-ring-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10B981;
    animation: radar 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    animation-delay: 1.25s;
    pointer-events: none;
}

.scanner-container {
    position: relative;
    overflow: hidden;
}

.scanner-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
    animation: scanBeam 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.premium-mockup-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.premium-mockup-card:hover {
    transform: translateY(-8px) rotateX(1deg) rotateY(-1deg);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.15) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}

.hover-lift-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(37, 99, 235, 0.1) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.hover-lift-card-success:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

.hover-lift-card-info:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 100ms; animation-fill-mode: both; }
.delay-200 { animation-delay: 200ms; animation-fill-mode: both; }
.delay-300 { animation-delay: 300ms; animation-fill-mode: both; }
.delay-400 { animation-delay: 400ms; animation-fill-mode: both; }
.delay-500 { animation-delay: 500ms; animation-fill-mode: both; }
.delay-600 { animation-delay: 600ms; animation-fill-mode: both; }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.spinner-lg { width: 56px; height: 56px; border-width: 4px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto var(--space-6);
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .stat-card { padding: var(--space-4); }
    .stat-card .stat-value { font-size: var(--text-2xl); }
    .stat-card .stat-icon { width: 44px; height: 44px; }

    .hide-mobile { display: none !important; }

    /* Prevent any container from overflowing the viewport width */
    .container-fluid,
    .container,
    .slms-main,
    .slms-card,
    .stat-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ensure tables scroll internally rather than pushing page */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .btn-slms { padding: 8px 16px; font-size: var(--text-xs); }
    .toast-container { left: 10px; right: 10px; max-width: none; }
}

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