/* ═══════════════════════════════════════════════════════════════════════════
   MODERN GLASSMORPHISM THEME - Premium UI Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS VARIABLES & DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Primary Palette - Vivid Indigo & Purple */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --accent: #a855f7;
    --accent-light: #c084fc;
    --secondary: #ec4899;

    /* Gradient Collection */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --gradient-mesh: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Neutral Colors - Enhanced Slate */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;
    --danger-light: #f87171;
    --info: #06b6d4;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(255, 255, 255, 0.4);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
    --shadow-glow-lg: 0 0 80px rgba(99, 102, 241, 0.35);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE STYLES
   ───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #fdf2f8 100%);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168, 85, 247, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 40% 80%, rgba(236, 72, 153, 0.1), transparent);
    pointer-events: none;
    z-index: -1;
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--accent));
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────────── */
.text-primary {
    color: var(--primary) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-gradient {
    background: var(--gradient-primary) !important;
}

/* Enhanced Glassmorphism */
.bg-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--shadow-lg);
}

.bg-glass-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow Effects */
.glow {
    box-shadow: var(--shadow-glow);
}

.glow-lg {
    box-shadow: var(--shadow-glow-lg);
}

/* Fade In Animation */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
    color: white;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARDS - Glass Effect
   ───────────────────────────────────────────────────────────────────────────── */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   AUTH PAGES - Premium Glass Design
   ───────────────────────────────────────────────────────────────────────────── */
.auth-layout {
    background: var(--gradient-dark);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-layout::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 40% 40% at 30% 30%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(ellipse 35% 35% at 70% 70%, rgba(168, 85, 247, 0.35), transparent),
        radial-gradient(ellipse 30% 30% at 80% 20%, rgba(236, 72, 153, 0.25), transparent);
    animation: authBgFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes authBgFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, 2%) rotate(1deg);
    }

    66% {
        transform: translate(-1%, 1%) rotate(-1deg);
    }
}

/* Floating Orbs */
.auth-layout::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, -30px) scale(1.1);
    }
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-3xl);
    padding: 3rem;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.1), transparent 40%);
    pointer-events: none;
}

.auth-brand {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.auth-card h4,
.auth-card p {
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.auth-card .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.auth-card .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), var(--shadow-glow);
}

.auth-card .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Input group icons should always be visible */
.auth-card .input-group-text i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.auth-card a {
    color: var(--primary-light);
}

.auth-card a:hover {
    color: var(--accent-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SIDEBAR - Modern Glass
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--white);
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Scrollbar Styling (More subtle) */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 50% 50% at 100% 100%, rgba(168, 85, 247, 0.1), transparent);
    pointer-events: none;
}

/* Sidebar Section Title */
.sidebar-section-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.925rem;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition-base);
}

.sidebar .nav-link i {
    font-size: 1rem;
    margin-right: 0.5rem;
    min-width: 1rem;
    transition: transform var(--transition-base);
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar .nav-link:hover::before {
    height: 60%;
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.5);
    font-weight: 600;
}

.sidebar .nav-link.active::before {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVBAR - Enhanced Blur
   ───────────────────────────────────────────────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.65rem 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 60px;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORM CONTROLS - Glow Focus
   ───────────────────────────────────────────────────────────────────────────── */
.form-control,
.form-select {
    border-radius: var(--radius-lg);
    padding: 0.65rem 0.875rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-base);
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--shadow-glow);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-light);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.85rem;
}

.input-group-text {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.9);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CATEGORY SECTIONS - Glass Cards
   ───────────────────────────────────────────────────────────────────────────── */
.category-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.category-section:hover {
    box-shadow: var(--shadow-xl), 0 0 60px rgba(99, 102, 241, 0.08);
}

.category-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all var(--transition-bounce);
}

.category-section:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-info h3 {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
    line-height: 1.3;
}

.category-info p {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Bulk Action Button */
.bulk-action-btn {
    background: var(--gradient-success);
    color: white !important;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.bulk-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.bulk-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
}

.bulk-action-btn:hover::before {
    left: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOOL ITEMS - Premium Hover Effects
   ───────────────────────────────────────────────────────────────────────────── */
.tool-item {
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem !important;
    transition: all var(--transition-base);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    border-radius: 0 4px 4px 0;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateX(8px);
}

.tool-item:hover::before {
    transform: scaleY(1);
}

.tool-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-bounce);
    position: relative;
}

.tool-item-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: inherit;
    filter: blur(12px);
    opacity: 0.4;
    z-index: -1;
}

.tool-item:hover .tool-item-icon {
    transform: scale(1.1) rotate(-8deg);
}

.tool-item-content {
    margin-left: 0.75rem;
}

.tool-item-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
    line-height: 1.3;
}

.tool-item-content p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
    margin-bottom: 0;
}

.tool-badge-credit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.tool-item:hover .tool-badge-credit {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.tool-start-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(241, 245, 249, 0.8);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
    font-size: 1.25rem;
}

.tool-item:hover .tool-start-btn {
    background: var(--gradient-primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   STAT CARDS - Premium Glassmorphism
   ───────────────────────────────────────────────────────────────────────────── */
.stat-card {
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.stat-card.premium {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(99, 102, 241, 0.3);
}

.stat-card.premium::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.stat-card.premium::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card.premium:hover {
    box-shadow: var(--shadow-2xl), 0 0 80px rgba(99, 102, 241, 0.4);
}

.stat-card.premium .stat-card-label {
    color: rgba(255, 255, 255, 0.85);
}

.stat-card.premium .stat-card-value {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.stat-card.premium .bg-icon {
    position: absolute;
    right: -25px;
    bottom: -25px;
    font-size: 9rem;
    opacity: 0.15;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: transform var(--transition-slow);
}

.stat-card.premium:hover .bg-icon {
    transform: rotate(-20deg) scale(1.1);
}

.stat-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-bounce);
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.stat-card-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   QUICK ACTION CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.quick-action-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.quick-action-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-5px);
}

.quick-action-card:hover::before {
    opacity: 0.03;
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: all var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.quick-action-card:hover .quick-action-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.quick-action-info {
    position: relative;
    z-index: 1;
}

.quick-action-info h6 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--dark);
    font-size: 1rem;
}

.quick-action-info p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABLES - Enhanced Style
   ───────────────────────────────────────────────────────────────────────────── */
.table {
    background: transparent;
}

.table thead th {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    padding: 1rem;
}

.table tbody tr {
    transition: all var(--transition-base);
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BADGES - Modern Style
   ───────────────────────────────────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ALERTS - Glass Style
   ───────────────────────────────────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #92400e;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DROPDOWN - Glass Style
   ───────────────────────────────────────────────────────────────────────────── */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .stat-card-value {
        font-size: 1.75rem;
    }

    .category-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .tool-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.875rem !important;
    }

    .tool-item-icon {
        margin: 0 auto;
    }

    .tool-item:hover {
        transform: translateY(-4px);
    }

    .tool-item::before {
        display: none;
    }

    .auth-card {
        padding: 2rem;
    }
}