@import "tailwindcss";

/* ============================================================
   VS Code Dark+ Theme Color Variables
   ============================================================ */
:root {
    /* VS Code Dark+ Background Colors */
    --vsc-bg-primary:       #1e1e1e;    /* Editor background */
    --vsc-bg-secondary:     #252526;    /* Sidebar background */
    --vsc-bg-tertiary:      #2d2d30;    /* Panel background */
    --vsc-bg-active:        #37373d;    /* Active/hover item */
    --vsc-bg-widget:        #1e1e1e;    /* Widget background */
    --vsc-bg-input:         #3c3c3c;    /* Input background */
    --vsc-bg-dropdown:      #252526;    /* Dropdown background */

    /* VS Code Dark+ Accent Colors */
    --vsc-blue:             #007acc;    /* Primary blue (activity bar icons) */
    --vsc-blue-light:       #2196f3;    /* Lighter blue */
    --vsc-blue-hover:       #1177bb;    /* Blue hover */
    --vsc-teal:             #4ec9b0;    /* TypeScript/function color */
    --vsc-green:            #4caf50;    /* Strings / success */
    --vsc-green-terminal:   #23d18b;    /* Terminal green */
    --vsc-orange:           #ce9178;    /* String literals */
    --vsc-yellow:           #dcdcaa;    /* Functions */
    --vsc-purple:           #c586c0;    /* Keywords */
    --vsc-red:              #f44747;    /* Errors */
    --vsc-pink:             #e06c75;    /* Variables */

    /* VS Code Dark+ Text Colors */
    --vsc-text-primary:     #d4d4d4;    /* Main editor text */
    --vsc-text-secondary:   #9d9d9d;    /* Comments / inactive */
    --vsc-text-tertiary:    #858585;    /* Breadcrumbs */
    --vsc-text-active:      #ffffff;    /* Active tab text */
    --vsc-text-link:        #3794ff;    /* Link color */

    /* VS Code Dark+ Border Colors */
    --vsc-border:           #454545;    /* Panel border */
    --vsc-border-light:     #3e3e42;    /* Sidebar border */
    --vsc-border-focus:     #007acc;    /* Focus ring */

    /* Glass Morphism Variables */
    --glass-bg:             rgba(37, 37, 38, 0.65);
    --glass-bg-light:       rgba(45, 45, 48, 0.55);
    --glass-bg-hover:       rgba(55, 55, 61, 0.75);
    --glass-border:         rgba(255, 255, 255, 0.08);
    --glass-border-accent:  rgba(0, 122, 204, 0.4);
    --glass-shadow:         0 8px 32px rgba(0, 0, 0, 0.5);
    --glass-shadow-lg:      0 16px 64px rgba(0, 0, 0, 0.6);
    --glass-blur:           blur(12px) saturate(180%);
    --glass-blur-sm:        blur(8px) saturate(150%);
}

/* ============================================================
   Base Styles
   ============================================================ */
* {
    box-sizing: border-box;
}

html, body {
    background: var(--vsc-bg-primary);
    color: var(--vsc-text-primary);
    font-family: 'Segoe UI', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Admin Background Grid Pattern (VS Code style)
   ============================================================ */
.admin-bg {
    background-color: var(--vsc-bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(0, 122, 204, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(78, 201, 176, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, rgba(197, 134, 192, 0.04) 0%, transparent 40%);
    min-height: 100vh;
    position: relative;
}

.admin-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   Glass Morphism Components
   ============================================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-sm {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.glass-hover:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-accent);
    transition: all 0.2s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 122, 204, 0.5) 30%,
        rgba(78, 201, 176, 0.3) 70%,
        transparent 100%);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(0, 122, 204, 0.3);
    box-shadow: var(--glass-shadow-lg), 0 0 0 1px rgba(0, 122, 204, 0.15);
    transform: translateY(-1px);
}

/* ============================================================
   Admin Layout
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ============================================================
   Sidebar
   ============================================================ */
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: rgba(37, 37, 38, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--vsc-border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    transition: width 0.3s ease, transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}

.admin-sidebar.collapsed {
    width: 48px;
}

.admin-sidebar-logo {
    padding: 16px;
    border-bottom: 1px solid var(--vsc-border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    overflow: hidden;
}

.admin-sidebar-logo .logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--vsc-blue), var(--vsc-teal));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,122,204,0.4);
}

.admin-sidebar-logo .logo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--vsc-text-active);
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.3;
}

.admin-sidebar-logo .logo-text span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--vsc-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-nav-section {
    padding: 8px 0 4px;
}

.admin-nav-label {
    padding: 4px 16px 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--vsc-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s;
}

.admin-sidebar.collapsed .admin-nav-label {
    opacity: 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--vsc-text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 0;
    position: relative;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.admin-nav-item:hover {
    background: var(--vsc-bg-active);
    color: var(--vsc-text-active);
}

.admin-nav-item.active {
    background: rgba(0, 122, 204, 0.15);
    color: var(--vsc-text-active);
    border-left: 2px solid var(--vsc-blue);
    padding-left: 14px;
}

.admin-nav-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 16px;
}

.admin-nav-item.active .nav-icon {
    color: var(--vsc-blue);
}

.admin-nav-item .nav-text {
    font-size: 13px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.admin-sidebar.collapsed .admin-nav-item .nav-text {
    opacity: 0;
    width: 0;
}

.admin-nav-item .nav-badge {
    margin-left: auto;
    background: var(--vsc-blue);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ============================================================
   Main Content
   ============================================================ */
.admin-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.admin-layout.sidebar-collapsed .admin-main {
    margin-left: 48px;
}

/* ============================================================
   Top Header
   ============================================================ */
.admin-header {
    height: 48px;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-bottom: 1px solid var(--vsc-border-light);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.admin-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--vsc-text-tertiary);
}

.admin-header .breadcrumb a {
    color: var(--vsc-text-tertiary);
    text-decoration: none;
    transition: color 0.15s;
}

.admin-header .breadcrumb a:hover {
    color: var(--vsc-text-link);
}

.admin-header .breadcrumb .separator {
    color: var(--vsc-border);
}

.admin-header .breadcrumb .current {
    color: var(--vsc-text-primary);
}

.admin-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--vsc-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    font-size: 15px;
}

.admin-icon-btn:hover {
    background: var(--vsc-bg-active);
    color: var(--vsc-text-active);
}

/* ============================================================
   Content Area
   ============================================================ */
.admin-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--vsc-text-active);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title .title-icon {
    color: var(--vsc-blue);
    font-size: 18px;
}

.page-subtitle {
    font-size: 12px;
    color: var(--vsc-text-secondary);
    margin: 0;
}

/* ============================================================
   Stats Cards
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: default;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.stat-card.blue::after { background: linear-gradient(90deg, var(--vsc-blue), #4db6ff); }
.stat-card.teal::after { background: linear-gradient(90deg, var(--vsc-teal), #a0ffee); }
.stat-card.green::after { background: linear-gradient(90deg, var(--vsc-green), #80ff96); }
.stat-card.purple::after { background: linear-gradient(90deg, var(--vsc-purple), #e8a0ff); }
.stat-card.orange::after { background: linear-gradient(90deg, var(--vsc-orange), #ffd59e); }
.stat-card.red::after { background: linear-gradient(90deg, var(--vsc-red), #ff8080); }

.stat-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-lg);
}

.stat-card .stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--vsc-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--vsc-text-active);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card .stat-change {
    font-size: 11px;
    color: var(--vsc-green-terminal);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card .stat-change.negative {
    color: var(--vsc-red);
}

.stat-card .stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.9;
}

.stat-card.blue .stat-icon { background: rgba(0, 122, 204, 0.15); color: var(--vsc-blue); }
.stat-card.teal .stat-icon { background: rgba(78, 201, 176, 0.15); color: var(--vsc-teal); }
.stat-card.green .stat-icon { background: rgba(76, 175, 80, 0.15); color: var(--vsc-green); }
.stat-card.purple .stat-icon { background: rgba(197, 134, 192, 0.15); color: var(--vsc-purple); }
.stat-card.orange .stat-icon { background: rgba(206, 145, 120, 0.15); color: var(--vsc-orange); }
.stat-card.red .stat-icon { background: rgba(244, 71, 71, 0.15); color: var(--vsc-red); }

/* ============================================================
   Tables
   ============================================================ */
.admin-table-wrap {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.admin-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--vsc-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-table-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--vsc-text-active);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-table-title .icon {
    color: var(--vsc-blue);
    font-size: 14px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: var(--vsc-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(45, 45, 48, 0.5);
    border-bottom: 1px solid var(--vsc-border-light);
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.1s ease;
}

.admin-table tbody tr:hover {
    background: rgba(0, 122, 204, 0.06);
}

.admin-table tbody td {
    padding: 10px 16px;
    color: var(--vsc-text-primary);
    vertical-align: middle;
}

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

/* ============================================================
   Badges & Skills
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue    { background: rgba(0, 122, 204, 0.2);   color: #4db6ff;  border: 1px solid rgba(0,122,204,0.3); }
.badge-green   { background: rgba(76, 175, 80, 0.2);   color: #80e880;  border: 1px solid rgba(76,175,80,0.3); }
.badge-red     { background: rgba(244, 71, 71, 0.2);   color: #ff8080;  border: 1px solid rgba(244,71,71,0.3); }
.badge-orange  { background: rgba(255, 152, 0, 0.2);   color: #ffcc80;  border: 1px solid rgba(255,152,0,0.3); }
.badge-purple  { background: rgba(197, 134, 192, 0.2); color: #e0a0ff;  border: 1px solid rgba(197,134,192,0.3); }
.badge-teal    { background: rgba(78, 201, 176, 0.2);  color: #80ffe8;  border: 1px solid rgba(78,201,176,0.3); }
.badge-gray    { background: rgba(150, 150, 150, 0.2); color: #b0b0b0;  border: 1px solid rgba(150,150,150,0.2); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--vsc-blue);
    color: white;
    border-color: var(--vsc-blue);
    box-shadow: 0 2px 8px rgba(0,122,204,0.3);
}
.btn-primary:hover {
    background: var(--vsc-blue-hover);
    box-shadow: 0 4px 16px rgba(0,122,204,0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--vsc-text-primary);
    border-color: var(--vsc-border);
}
.btn-secondary:hover {
    background: var(--vsc-bg-active);
    color: var(--vsc-text-active);
    border-color: var(--vsc-border-focus);
}

.btn-danger {
    background: rgba(244, 71, 71, 0.15);
    color: #ff8080;
    border-color: rgba(244, 71, 71, 0.3);
}
.btn-danger:hover {
    background: rgba(244, 71, 71, 0.25);
    color: var(--vsc-red);
}

.btn-success {
    background: rgba(76, 175, 80, 0.15);
    color: #80e880;
    border-color: rgba(76, 175, 80, 0.3);
}
.btn-success:hover {
    background: rgba(76, 175, 80, 0.25);
}

.btn-sm {
    padding: 3px 10px;
    font-size: 12px;
}

.btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
}

/* ============================================================
   Form Controls
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--vsc-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--vsc-bg-input);
    border: 1px solid var(--vsc-border);
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--vsc-text-primary);
    font-family: inherit;
    transition: all 0.15s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--vsc-border-focus);
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
    background: rgba(60, 60, 60, 0.9);
}

.form-control::placeholder {
    color: var(--vsc-text-tertiary);
    font-size: 12px;
}

.form-control-glass {
    background: rgba(60, 60, 60, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
}

.form-control-glass:focus {
    background: rgba(60, 60, 60, 0.7);
    border-color: var(--vsc-border-focus);
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2), 0 4px 16px rgba(0,0,0,0.3);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d9d9d' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

/* ============================================================
   Search Bar
   ============================================================ */
.search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-wrap .search-icon {
    position: absolute;
    left: 10px;
    font-size: 13px;
    color: var(--vsc-text-tertiary);
    pointer-events: none;
}

.search-input {
    background: rgba(60, 60, 60, 0.4);
    border: 1px solid var(--vsc-border);
    border-radius: 4px;
    padding: 6px 12px 6px 32px;
    font-size: 12px;
    color: var(--vsc-text-primary);
    font-family: inherit;
    width: 200px;
    transition: all 0.15s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--vsc-border-focus);
    width: 250px;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.15);
}

.search-input::placeholder {
    color: var(--vsc-text-tertiary);
}

/* ============================================================
   Modal / Dialogs
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: rgba(37, 37, 38, 0.95);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,122,204,0.15);
    width: 100%;
    max-width: 560px;
    transform: scale(0.97) translateY(-8px);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--vsc-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--vsc-text-active);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title .icon {
    color: var(--vsc-blue);
}

.modal-close {
    background: none;
    border: none;
    color: var(--vsc-text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.1s;
}
.modal-close:hover {
    background: var(--vsc-bg-active);
    color: var(--vsc-text-active);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--vsc-border-light);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: rgba(30,30,30,0.5);
}

/* ============================================================
   Alerts / Notifications
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid;
    margin-bottom: 16px;
}

.alert-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }

.alert-success {
    background: rgba(35, 209, 139, 0.1);
    border-color: rgba(35, 209, 139, 0.3);
    color: var(--vsc-green-terminal);
}
.alert-error {
    background: rgba(244, 71, 71, 0.1);
    border-color: rgba(244, 71, 71, 0.3);
    color: #ff8080;
}
.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffcc44;
}
.alert-info {
    background: rgba(0, 122, 204, 0.1);
    border-color: rgba(0, 122, 204, 0.3);
    color: #4db6ff;
}

/* ============================================================
   Pagination
   ============================================================ */
.page-btn {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    color: var(--vsc-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    padding: 0 8px;
    text-decoration: none;
    line-height: 1;
    user-select: none;
}

.page-btn:hover {
    background: var(--vsc-bg-active);
    color: var(--vsc-text-active);
    border-color: var(--vsc-border);
}

.page-btn.active {
    background: var(--vsc-blue);
    color: #fff;
    border-color: var(--vsc-blue);
    font-weight: 600;
    cursor: default;
}

.page-btn.active:hover {
    background: var(--vsc-blue-hover);
    border-color: var(--vsc-blue-hover);
}

/* ============================================================
   Avatar
   ============================================================ */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-lg { width: 40px; height: 40px; font-size: 16px; }

.avatar-blue   { background: linear-gradient(135deg, #007acc, #4db6ff); }
.avatar-teal   { background: linear-gradient(135deg, #4ec9b0, #80ffe8); }
.avatar-green  { background: linear-gradient(135deg, #4caf50, #80e880); }
.avatar-purple { background: linear-gradient(135deg, #c586c0, #e0a0ff); }
.avatar-orange { background: linear-gradient(135deg, #ce9178, #ffb380); }

/* ============================================================
   Dropdown Menu
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(37, 37, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--vsc-border-light);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
    display: none;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--vsc-text-primary);
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dropdown-item:hover {
    background: var(--vsc-bg-active);
    color: var(--vsc-text-active);
}

.dropdown-item .icon { color: var(--vsc-text-secondary); font-size: 14px; }
.dropdown-divider { height: 1px; background: var(--vsc-border-light); margin: 4px 0; }

/* ============================================================
   Activity Bar (VS Code style, left edge)
   ============================================================ */
.activity-bar {
    width: 48px;
    min-height: 100vh;
    background: rgba(30, 30, 30, 0.95);
    border-right: 1px solid var(--vsc-border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 4px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 60;
}

.activity-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--vsc-text-tertiary);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 18px;
    position: relative;
}

.activity-item:hover { color: var(--vsc-text-active); }
.activity-item.active {
    color: var(--vsc-text-active);
    border-left: 2px solid var(--vsc-text-active);
    padding-left: 0;
    margin-left: -2px;
}

/* ============================================================
   Status Bar (VS Code style, bottom)
   ============================================================ */
.admin-statusbar {
    height: 24px;
    background: var(--vsc-blue);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    gap: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
}

.statusbar-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0 6px;
    height: 100%;
    transition: background 0.1s;
}

.statusbar-item:hover {
    background: rgba(255,255,255,0.15);
}

.statusbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ============================================================
   Login Page
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(0, 122, 204, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(78, 201, 176, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(197, 134, 192, 0.06) 0%, transparent 40%),
        var(--vsc-bg-primary);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(37, 37, 38, 0.8);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow:
        0 24px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(0, 122, 204, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vsc-blue), var(--vsc-teal), var(--vsc-purple));
}

.login-header {
    padding: 32px 32px 20px;
    text-align: center;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--vsc-blue), var(--vsc-teal));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(0, 122, 204, 0.4);
}

.login-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--vsc-text-active);
    margin: 0 0 4px;
}

.login-subtitle {
    font-size: 12px;
    color: var(--vsc-text-secondary);
    margin: 0;
}

.login-body {
    padding: 20px 32px 32px;
}

/* ============================================================
   Scrollbar VS Code Style
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(121, 121, 121, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.7);
}

/* ============================================================
   Utilities
   ============================================================ */
.text-blue    { color: var(--vsc-blue); }
.text-teal    { color: var(--vsc-teal); }
.text-green   { color: var(--vsc-green); }
.text-green-t { color: var(--vsc-green-terminal); }
.text-orange  { color: var(--vsc-orange); }
.text-yellow  { color: var(--vsc-yellow); }
.text-purple  { color: var(--vsc-purple); }
.text-red     { color: var(--vsc-red); }
.text-muted   { color: var(--vsc-text-secondary); }
.text-primary { color: var(--vsc-text-active); }

.divider {
    height: 1px;
    background: var(--vsc-border-light);
    margin: 16px 0;
}

.separator-v {
    width: 1px;
    height: 16px;
    background: var(--vsc-border-light);
}

.loading-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vsc-blue);
    animation: pulse 1.4s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   Tooltip
   ============================================================ */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 37, 38, 0.98);
    color: var(--vsc-text-active);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    border: 1px solid var(--vsc-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: opacity 0.15s;
    z-index: 500;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 240px !important;
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0 !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-content {
        padding: 16px;
    }
}

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