:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #60A5FA;
    --secondary: #4F46E5;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --dark-lighter: #334155;
    --gray: #64748B;
    --gray-light: #F1F5F9;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dark-light);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

.sidebar-header { padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--white); }

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-nav { flex: 1; padding: 16px; overflow-y: auto; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: var(--border-radius);
    color: var(--gray);
    margin-bottom: 4px;
    transition: var(--transition);
    font-weight: 500;
    height: 48px;
}

.nav-item:hover {
    color: var(--white);
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
    
}

.nav-item i { width: 20px; text-align: center; }

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 16px 8px;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 16px;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 8px; }
.dropdown-toggle i:last-child { margin-left: auto; font-size: 10px; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    
    z-index: 50;
    padding: 8px 0;
    margin-top: 4px;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--gray);
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dropdown-item.active {
    background: var(--primary);
    color: var(--white);
}

.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

.user-menu { display: flex; align-items: center; gap: 12px; }

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info { flex: 1; }
.user-name { display: block; font-weight: 500; font-size: 14px; }
.user-role { display: block; font-size: 12px; color: var(--gray); text-transform: capitalize; }

.btn-logout { color: var(--gray); padding: 8px; transition: color 0.2s; }
.btn-logout:hover { color: var(--danger); }

.main-content { flex: 1; margin-left: 260px; min-height: 100vh; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 64px; background: var(--dark-light); border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: sticky; top: 0; z-index: 50; gap: 12px; }

.topbar-title { font-size: 18px; font-weight: 600; flex: 1; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.search-box { position: relative; width: 300px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
}
.search-box input::placeholder { color: var(--gray); }

.topbar-actions .btn-icon { display: flex; align-items: center; gap: 6px; }
.topbar-actions .btn-icon span.btn-text { display: none; }
@media (min-width: 600px) {
    .topbar-actions .btn-icon span.btn-text { display: inline; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary:hover { transform: translateY(-2px);  background: #4338CA; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

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

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

/* Page */
.page-content { 
    padding: 24px 30px; 
    max-width: 1600px; 
    margin: 0 auto;
    width: 100%;
}
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-header h1 { font-size: 24px; font-weight: 700; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--gray); }

#techSearch { width: 100%; padding: 10px 12px; background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #E2E8F0; font-size: 14px; margin-bottom: 10px; }
#techSearch:focus { outline: none; border-color: #6366F1; }
#techSearch::placeholder { color: #64748B; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    transition: all 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); background: rgba(255, 255, 255, 0.08);  }
.form-control:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-control::placeholder { color: var(--gray); }

textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { 
    cursor: pointer; 
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
select.form-control option {
    background: var(--dark-light);
    color: var(--white);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}
.filter-bar form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-bar .form-control {
    min-width: 160px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    cursor: pointer;
}
.filter-bar .form-control:focus {
    outline: none;
    border-color: var(--primary);
}

select.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
select.form-control option {
    background: var(--dark-light);
    color: var(--white);
}

/* Cards */
.card { background: var(--dark-light); border-radius: 12px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.08); }
.card-header { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #94A3B8; }
.card-title { font-size: 16px; font-weight: 600; }

/* Tables */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.table th { font-weight: 600; color: var(--gray); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Mobile table to cards */
@media (max-width: 768px) {
    .table-wrapper { overflow: visible; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; }
    .table tr { 
        background: var(--dark-light); 
        border-radius: 12px; 
        margin-bottom: 12px; 
        padding: 16px; 
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .table td { 
        padding: 8px 0; 
        border: none; 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
    }
    .table td::before { 
        content: attr(data-label); 
        font-weight: 600; 
        color: var(--gray); 
        font-size: 12px;
    }
    .table td:last-child { justify-content: flex-end; gap: 8px; }
}

/* Tickets */
.ticket-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.ticket-item:hover { 
    border-color: rgba(255, 255, 255, 0.6); 
    transform: translateX(6px); 
    
}
.ticket-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.ticket-priority { width: 4px; height: 50px; border-radius: 2px; flex-shrink: 0; }
.priority-low { background: #10B981; }
.priority-medium { background: #3B82F6; }
.priority-high { background: #F59E0B; }
.priority-critical { background: #EF4444; }

.ticket-info { flex: 1; min-width: 0; }
.ticket-info h4 { font-size: 15px; margin-bottom: 8px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--gray); font-size: 12px; }
.ticket-meta span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

.ticket-status { 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.ticket-status .badge { padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    padding: 10px 16px;
    background: var(--dark-light);
    border-radius: 10px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}
.filter-tab:hover { color: var(--white); }
.filter-tab.active { background: var(--primary); color: var(--white); }

@media (max-width: 768px) {
    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .ticket-priority {
        width: 100%;
        height: 4px;
        order: -1;
    }
    .ticket-info h4 {
        white-space: normal;
        font-size: 14px;
    }
    .ticket-meta {
        gap: 8px;
    }
    .ticket-status {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .ticket-status .badge {
        display: inline-block;
        width: auto;
        text-align: center;
    }
}
.status-open { background: rgba(255, 255, 255, 0.2); color: #3B82F6; }
.status-in_progress { background: rgba(255, 255, 255, 0.2); color: #F59E0B; }
.status-resolved { background: rgba(255, 255, 255, 0.2); color: #10B981; }
.status-closed { background: rgba(255, 255, 255, 0.2); color: #64748B; }

/* Badges */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
.badge-info { background: rgba(255, 255, 255, 0.15); color: #60A5FA; border: 1px solid rgba(255, 255, 255, 0.3); }
.badge-primary { background: var(--primary); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.1); }
.badge-success { background: rgba(255, 255, 255, 0.15); color: #34D399; border: 1px solid rgba(255, 255, 255, 0.3); }
.badge-warning { background: rgba(255, 255, 255, 0.15); color: #FBBF24; border: 1px solid rgba(255, 255, 255, 0.3); }
.badge-secondary { background: rgba(255, 255, 255, 0.15); color: #94A3B8; border: 1px solid rgba(255, 255, 255, 0.3); }
.badge-danger { background: rgba(255, 255, 255, 0.15); color: #F87171; border: 1px solid rgba(255, 255, 255, 0.3); }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.alert-success { background: rgba(255, 255, 255, 0.1); color: #34D399; border: 1px solid rgba(255, 255, 255, 0.2); border-left: 3px solid #10B981; }
.alert-error { background: rgba(255, 255, 255, 0.1); color: #F87171; border: 1px solid rgba(255, 255, 255, 0.2); border-left: 3px solid #EF4444; }
.alert-info { background: rgba(255, 255, 255, 0.1); color: #60A5FA; border: 1px solid rgba(255, 255, 255, 0.2); border-left: 3px solid #3B82F6; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--dark-light); border-radius: 14px; padding: 20px 24px; border: 1px solid rgba(255, 255, 255, 0.06); display: flex; align-items: center; gap: 16px; transition: all 0.25s ease; }
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; }
.stat-card .stat-label { color: var(--gray); font-size: 14px; }

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

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

/* Filters */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.06);
}
.empty-state i {
    font-size: 48px;
    color: #475569;
    margin-bottom: 16px;
    display: block;
    opacity: 0.6;
}
.empty-state h3 { margin-bottom: 8px; color: var(--white); font-size: 18px; }
.empty-state p { color: var(--gray); margin-bottom: 20px; font-size: 14px; }

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Landing Page */
.landing { min-height: 100vh; background: var(--dark); }

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav { display: flex; align-items: center; gap: 32px; }
.landing-nav a { color: var(--gray); font-weight: 500; transition: color 0.2s; }
.landing-nav a:hover { color: var(--white); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-content { max-width: 800px; }
.hero h1 { font-size: 56px; font-weight: 800; margin-bottom: 24px; color: var(--white); }
.hero p { font-size: 20px; color: var(--gray); margin-bottom: 40px; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; }

/* Auth Layout */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--dark-light);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 24px; margin-bottom: 8px; }
.auth-header p { color: var(--gray); }

@media (max-width: 900px) { .ticket-content { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); position: fixed; z-index: 200; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    
    .topbar { height: 56px; padding: 0 16px; }
    .topbar-title { font-size: 16px; }
    .menu-toggle { display: flex; width: 36px; height: 36px; }
    
    .sidebar-header { height: 56px; }
    .logo { font-size: 16px; }
    .logo-icon { width: 32px; height: 32px; font-size: 16px; }
    
    .nav-item { height: 44px; padding: 0 12px; font-size: 14px; }
    .nav-item i { width: 18px; }
    
    .page-content { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .filter-bar { flex-direction: column; }
    .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .filter-tab { white-space: nowrap; }
    .admin-stats { flex-direction: column; }
    .admin-stats .stat-card { max-width: 100%; }
    .hero h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; }
    .landing-nav { display: none; }
}
.dashboard-header { margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.dashboard-header h1 { font-size: 26px; font-weight: 700; color: var(--white); }
.dashboard-header p { color: var(--gray); margin-top: 4px; font-size: 14px; }

/* Dashboard Sections */
.dashboard-section { 
    margin-bottom: 32px; 
}
.dashboard-section h3 { 
    font-size: 16px; 
    font-weight: 600; 
    color: var(--white); 
    margin-bottom: 16px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.stat-icon.blue { background: rgba(255, 255, 255, 0.12); color: #60A5FA; border: 1px solid rgba(255, 255, 255, 0.2); }
.stat-icon.cyan { background: rgba(255, 255, 255, 0.12); color: #0EA5E9; border: 1px solid rgba(255, 255, 255, 0.2); }
.stat-icon.yellow { background: rgba(255, 255, 255, 0.12); color: #F59E0B; border: 1px solid rgba(255, 255, 255, 0.2); }
.stat-icon.green { background: rgba(255, 255, 255, 0.12); color: #10B981; border: 1px solid rgba(255, 255, 255, 0.2); }

.stat-info h3 { font-size: 24px; font-weight: 700; }
.stat-info p { font-size: 13px; color: var(--gray); margin-top: 2px; }

.quick-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

.recent-tickets { background: var(--dark-light); border-radius: 12px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.08); }
.recent-tickets h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

/* Ticket Detail */
.ticket-detail { max-width: 1000px; margin: 0 auto; }
.ticket-title-group { flex: 1; }
.ticket-title-group h1 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }

.ticket-badges { display: flex; gap: 6px; margin-bottom: 10px; }

.ticket-content { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

.ticket-main { background: var(--dark-light); border-radius: 12px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.08); }
.ticket-desc { margin-bottom: 16px; }
.ticket-desc h3 { font-size: 13px; color: var(--gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.ticket-desc p { white-space: pre-wrap; line-height: 1.6; }

.ticket-attachment { margin-bottom: 16px; }
.ticket-attachment h3 { font-size: 14px; color: var(--gray); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.comments-section h3 { font-size: 16px; margin-bottom: 16px; }

.comment-form { margin-bottom: 24px; }
.comment-form textarea { width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: var(--white); min-height: 100px; margin-bottom: 12px; resize: vertical; font-family: inherit; font-size: 14px; }
.comment-form textarea:focus { outline: none; border-color: var(--primary); background: rgba(255, 255, 255, 0.1); }
.comment-form textarea::placeholder { color: var(--gray); }

.comment-list { display: flex; flex-direction: column; gap: 16px; }

.comment-item { display: flex; gap: 12px; padding: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); }
.comment-item .avatar { flex-shrink: 0; width: 36px; height: 36px; font-size: 14px; }

.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-role { font-size: 11px; padding: 2px 8px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; color: var(--gray); }
.comment-time { font-size: 12px; color: var(--gray); }
.comment-text { line-height: 1.6; }
.comment-empty { text-align: center; padding: 20px; color: var(--gray); }

.ticket-sidebar { display: flex; flex-direction: column; gap: 20px; }

.info-card { background: var(--dark-light); border-radius: 16px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.08); }
.info-card h3 { font-size: 14px; color: var(--gray); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--gray); }
.info-value { font-weight: 500; text-align: right; }

.status-select { width: 100%; padding: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: var(--white); margin-top: 8px; font-size: 14px; }
.status-select:focus { outline: none; border-color: var(--primary); }

.log-list { max-height: 250px; overflow-y: auto; }
.log-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.log-item:last-child { border-bottom: none; }
.log-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray); font-size: 12px; }
.log-content { flex: 1; }
.log-action { font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.log-time { font-size: 12px; color: var(--gray); }

/* Empty states */
.empty-state i { font-size: 48px; color: var(--gray); margin-bottom: 20px; display: block; opacity: 0.5; }
.empty-state h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--gray); margin-bottom: 24px; font-size: 15px; }

.empty-state-small { text-align: center; padding: 60px 20px; background: var(--dark-light); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); }
.empty-state-small h3 { font-size: 20px; margin-bottom: 8px; }

/* Forms */
.form-container { max-width: 800px; margin: 0 auto; }
.form-header { margin-bottom: 32px; }
.form-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.form-header p { color: var(--gray); }

.form-card { background: var(--dark-light); border-radius: 16px; padding: 32px; border: 1px solid rgba(255, 255, 255, 0.08); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.upload-area { border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-area:hover { border-color: var(--primary); background: rgba(255, 255, 255, 0.05); }
.upload-area i { font-size: 32px; color: var(--gray); margin-bottom: 12px; }
.upload-area p { color: var(--gray); font-size: 14px; }
.upload-area small { color: var(--gray); font-size: 12px; display: block; margin-top: 4px; }

.file-name { margin-top: 12px; font-size: 14px; color: var(--success); }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Badges */

/* Filter bar with form control as direct child */
.filter-bar .form-control { 
    min-width: 150px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
}

/* Ticket assigned */
.ticket-assigned { font-size: 12px; color: var(--gray); margin-bottom: 4px; }

/* Admin Stats */
.admin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.admin-stats .stat-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: var(--transition);
    text-decoration: none;
}
.admin-stats .stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.admin-stats .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.admin-stats .stat-icon.blue { background: rgba(255, 255, 255, 0.15); color: #60A5FA; }
.admin-stats .stat-icon.cyan { background: rgba(255, 255, 255, 0.15); color: #0EA5E9; }
.admin-stats .stat-icon.yellow { background: rgba(255, 255, 255, 0.15); color: #F59E0B; }
.admin-stats .stat-icon.green { background: rgba(255, 255, 255, 0.15); color: #10B981; }
.admin-stats .stat-info h3 { font-size: 28px; font-weight: 700; margin-bottom: 2px; }
.admin-stats .stat-info p { font-size: 14px; color: var(--gray); margin: 0; }

/* Quick Links */
.quick-links { margin-top: 24px; }
.quick-links h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.quick-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    color: var(--white);
    font-weight: 500;
}
.quick-link-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}
.quick-link-card i { font-size: 20px; color: var(--primary); }

/* Admin Table */
.admin-table-wrapper { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-table th {
    font-weight: 600;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    vertical-align: middle;
}
.admin-table tbody tr {
    transition: all 0.2s ease;
}
.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transform: scale(1.002);
}
.admin-table tbody tr:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.admin-table .btn { margin-right: 8px; }

/* Mobile admin-table to cards */
@media (max-width: 768px) {
    .admin-table-wrapper { overflow: visible; }
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
    .admin-table tr { 
        background: var(--dark-light); 
        border-radius: 12px; 
        margin-bottom: 12px; 
        padding: 14px 16px; 
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .admin-table tr:not(.expanded) td[data-label] { display: none; }
    .admin-table tr:not(.expanded) td[data-label="Nombre"] { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
    .admin-table tr:not(.expanded) td[data-label="Nombre"]::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--gray); }
    
    .admin-table tr.expanded { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }
    .admin-table tr.expanded td[data-label="Nombre"]::after { content: "\f106"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
    
    .admin-table td { 
        padding: 8px 0; 
        border: none; 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
    }
    .admin-table td::before { 
        content: attr(data-label); 
        font-weight: 600; 
        color: var(--gray); 
        font-size: 12px;
        min-width: 80px;
    }
    .admin-table td:last-child { justify-content: flex-end; gap: 8px; }
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--gray);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.priority-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.priority-dot.low { background: #10B981; }
.priority-dot.medium { background: #3B82F6; }
.priority-dot.high { background: #F59E0B; }
.priority-dot.critical { background: #EF4444; }

.filter-tab.priority-low.active { background: rgba(255, 255, 255, 0.2); border-color: #10B981; }
.filter-tab.priority-medium.active { background: rgba(255, 255, 255, 0.2); border-color: #3B82F6; }
.filter-tab.priority-high.active { background: rgba(255, 255, 255, 0.2); border-color: #F59E0B; }
.filter-tab.priority-critical.active { background: rgba(255, 255, 255, 0.2); border-color: #EF4444; }

/* Filters Section */
.filters-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filters Wrapper */
.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-divider {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    margin-right: 8px;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
}

.filters-wrapper .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Modern Filters Container */
.filters-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.filter-section {
    display: flex;
    align-items: center;
    gap: 12px;
}
.filter-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Status colors for pills */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.filter-pill.status-open.active { background: rgba(255, 255, 255, 0.2); border-color: #3B82F6; color: #3B82F6; }
.filter-pill.status-progress.active { background: rgba(255, 255, 255, 0.2); border-color: #F59E0B; color: #F59E0B; }
.filter-pill.status-resolved.active { background: rgba(255, 255, 255, 0.2); border-color: #10B981; color: #10B981; }
.filter-pill.status-closed.active { background: rgba(255, 255, 255, 0.2); border-color: #64748B; color: #64748B; }

/* Modern Filter Chips */
.filters-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.filter-set {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 20px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
.filter-chip i { font-size: 12px; opacity: 0.7; }
.filter-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}
.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.filter-chip.active.blue { background: rgba(255, 255, 255, 0.2); border-color: #3B82F6; color: #3B82F6; }
.filter-chip.active.yellow { background: rgba(255, 255, 255, 0.2); border-color: #F59E0B; color: #F59E0B; }
.filter-chip.active.green { background: rgba(255, 255, 255, 0.2); border-color: #10B981; color: #10B981; }
.filter-chip.active.red { background: rgba(255, 255, 255, 0.2); border-color: #EF4444; color: #EF4444; }
.filter-chip.active.gray { background: rgba(255, 255, 255, 0.2); border-color: #64748B; color: #64748B; }
.filter-chip .dot.green { background: #10B981; }
.filter-chip .dot.blue { background: #3B82F6; }
.filter-chip .dot.yellow { background: #F59E0B; }
.filter-chip .dot.red { background: #EF4444; }

/* Remove old filter styles not needed */
.filters-section, .filters-wrapper, .filter-group, .filter-label, .filter-divider, .filters-container, .filters-row, .filter-section-title, .filter-pills, .filter-pill { display: none; }

/* Modern Search */
.search-wrapper {
    margin-bottom: 20px;
}
.search-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    padding: 12px 16px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.search-modern:focus-within {
    border-color: var(--primary);
    
}
.search-modern i {
    color: var(--gray);
    font-size: 14px;
}
.search-modern input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 14px;
    outline: none;
}
.search-modern input::placeholder {
    color: var(--gray);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.category-grid .category-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.category-grid .category-color {
    width: 12px;
    height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
}
.category-grid .category-info {
    flex: 1;
}
.category-grid .category-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.category-grid .category-info p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}
.category-grid .category-actions {
    display: flex;
    gap: 8px;
}

/* Admin Dashboard - New Design */
.admin-hero { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; background: #1E293B; border-radius: 16px; padding: 24px 30px; border: 1px solid rgba(255, 255, 255, 0.3); }
.admin-hero h1 { display: flex; align-items: center; gap: 12px; font-size: 26px; color: #fff; }
.admin-hero h1 i { color: #60A5FA; font-size: 28px; }
.admin-hero p { color: #94A3B8; margin-top: 4px; margin-left: 40px; }
.admin-hero .btn { margin-left: auto; }


.stat-box { position: relative; background: var(--dark-light); border-radius: 14px; padding: 20px 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; text-decoration: none; display: block; color: inherit; }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; transition: all 0.3s ease; }
.stat-box.tickets::before { background: #60A5FA; }
.stat-box.open::before { background: #3B82F6; }
.stat-box.progress::before { background: #F59E0B; }
.stat-box.resolved::before { background: #10B981; }
.stat-box.users::before { background: #0EA5E9; }
.stat-box.admins::before { background: #EF4444; }
.stat-box.techs::before { background: #8B5CF6; }
.stat-box.regular-users::before { background: #60A5FA; }
.stat-box:hover { transform: translateY(-6px);  border-color: rgba(255, 255, 255, 0.15); }
.stat-box:hover::before { height: 4px; }

.stat-box .stat-bg { position: absolute; right: -10px; bottom: -15px; font-size: 70px; opacity: 0.08; }
.stat-box:hover .stat-bg { opacity: 0.15; }
.stat-box.tickets .stat-bg { color: #60A5FA; }
.stat-box.open .stat-bg { color: #3B82F6; }
.stat-box.progress .stat-bg { color: #F59E0B; }
.stat-box.resolved .stat-bg { color: #10B981; }
.stat-box.users .stat-bg { color: #193ED9; }
.stat-box.admins .stat-bg { color: #EF4444; }
.stat-box.techs .stat-bg { color: #8B5CF6; }
.stat-box.regular-users .stat-bg { color: #60A5FA; }

.stat-box .stat-num { display: block; font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-box.tickets .stat-num { color: #60A5FA; }
.stat-box.open .stat-num { color: #3B82F6; }
.stat-box.progress .stat-num { color: #F59E0B; }
.stat-box.resolved .stat-num { color: #10B981; }
.stat-box.users .stat-num { color: #193ED9; }
.stat-box.admins .stat-num { color: #EF4444; }
.stat-box.techs .stat-num { color: #8B5CF6; }
.stat-box.regular-users .stat-num { color: #60A5FA; }

.stat-box .stat-lbl { font-size: 13px; color: #94A3B8; font-weight: 500; }

.admin-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-box { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--dark-light); border-radius: 12px; padding: 18px; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.25s ease; font-weight: 600; font-size: 15px; color: var(--white); }
.link-box i { font-size: 20px; }
.link-box:hover { background: rgba(255, 255, 255, 0.2); border-color: #60A5FA; transform: translateY(-3px);  color: var(--white); }
.link-box.highlight { background: var(--primary); border-color: #6366F1; }
.link-box.highlight:hover { background: #60A5FA; border-color: #60A5FA; transform: translateY(-3px);  color: var(--white); }

@media (max-width: 1100px) {
    .admin-stats, .admin-links { grid-template-columns: repeat(2, 1fr); }
    .admin-hero { flex-direction: column; text-align: center; gap: 16px; }
    .admin-hero p { margin-left: 0; }
    .admin-hero .btn { margin-left: 0; }
}

@media (max-width: 600px) {
    .admin-stats, .admin-links { grid-template-columns: 1fr; }
    .stat-box .stat-num { font-size: 28px; }
}

/* Technicians Page */
.tech-page { padding: 0 32px 40px; }

.tech-header { margin-bottom: 24px; margin-left: 12px; }
.tech-title { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.tech-title i { font-size: 32px; color: #94A3B8; }
.tech-title h1 { font-size: 28px; font-weight: 700; color: #E2E8F0; }

.search-box i { color: #64748B; }
.search-box input { flex: 1; background: transparent; border: none; color: #E2E8F0; font-size: 14px; outline: none; }
.search-box input::placeholder { color: #64748B; }

.tech-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 16px 0; }

.tech-profile { background: var(--dark-light); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); transition: all 0.3s; padding: 0 0 20px 0; }

.profile-cover { height: 80px; background: #334155; position: relative; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: var(--dark-light); opacity: 0.85; }

.profile-main { display: flex; align-items: flex-end; gap: 18px; padding: 0 28px; margin-top: -32px; position: relative; z-index: 1; }

.profile-avatar { width: 72px; height: 72px; background: #475569; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; border: 4px solid var(--dark-light); flex-shrink: 0; }

.profile-info { padding-bottom: 6px; flex: 1; min-width: 0; }
.profile-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-role { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-top: 6px; }
.profile-role.admin { background: rgba(255, 255, 255, 0.3); color: #CBD5E1; }
.profile-role.tech { background: rgba(255, 255, 255, 0.3); color: #CBD5E1; }

.profile-email { display: flex; align-items: center; gap: 8px; padding: 16px 24px; font-size: 13px; color: #94A3B8; }


.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 24px; background: rgba(255, 255, 255, 0.2); margin: 20px 28px 16px; border-radius: 12px; }

.profile-tickets { padding: 0 28px 24px; }
.profile-tickets h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #94A3B8; margin-bottom: 12px; }

.empty-tickets { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: #475569; font-size: 14px; background: rgba(255, 255, 255, 0.15); border-radius: 12px; }


.ticket-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255, 255, 255, 0.2); border-radius: 10px; transition: all 0.2s; cursor: pointer; }
.ticket-row:hover .t-title { color: #60A5FA; }

.t-priority { width: 4px; height: 32px; border-radius: 2px; }

.t-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.t-id { font-size: 11px; color: #64748B; font-family: monospace; }
.t-title { font-size: 13px; font-weight: 500; }

.t-meta { display: flex; align-items: center; gap: 8px; }

.t-status { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.t-status.open { background: rgba(255, 255, 255, 0.2); color: #60A5FA; }
.t-status.in-progress { background: rgba(255, 255, 255, 0.2); color: #FBBF24; }
.t-status.resolved { background: rgba(255, 255, 255, 0.2); color: #34D399; }

.t-reassign { width: 30px; height: 30px; background: rgba(255, 255, 255, 0.1); border: none; border-radius: 8px; color: #94A3B8; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.t-reassign:hover { background: #475569; color: #fff; transform: rotate(180deg); }

/* Modal */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.active { display: flex; align-items: center; justify-content: center; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); }

.modal-box { position: relative; background: #1E293B; border-radius: 16px; width: 100%; max-width: 440px; border: 1px solid rgba(255, 255, 255, 0.1);  animation: modalSlide 0.3s ease; }

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

.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.modal-head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #E2E8F0; }
.modal-head h2 i { color: #94A3B8; }
.modal-x { width: 32px; height: 32px; background: none; border: none; color: #64748B; font-size: 22px; cursor: pointer; transition: color 0.2s; }
.modal-x:hover { color: #fff; }

.modal-body { padding: 24px; }

.form-display { margin-bottom: 16px; }
.form-display label { display: block; font-size: 12px; color: #64748B; margin-bottom: 6px; }
.display-box { padding: 12px 14px; background: rgba(255, 255, 255, 0.25); border-radius: 10px; font-size: 14px; }
.display-box.current { background: rgba(255, 255, 255, 0.15); color: #FBBF24; }

.form-group select { width: 100%; padding: 12px 14px; background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: #E2E8F0; font-size: 14px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group select:focus { outline: none; border-color: #6366F1; }
.form-group select option { background: #1E293B; color: #E2E8F0; padding: 10px; }

.modal-btns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

.btn-cancel { padding: 10px 18px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; color: #94A3B8; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-cancel:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-confirm { padding: 10px 18px; background: #475569; border: none; border-radius: 8px; color: #fff; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-confirm:hover { background: #64748B; }

@media (max-width: 1000px) {
    .tech-container { grid-template-columns: 1fr; margin: 20px 12px 0; }
    .tech-page { padding: 0 20px 30px; }
    .tech-title h1 { font-size: 24px; }
    .profile-avatar { width: 60px; height: 60px; font-size: 24px; }
    .profile-main { gap: 14px; padding: 0 20px; }
    .profile-info h2 { font-size: 18px; }
    .profile-email { padding: 14px 20px; }
    .profile-stats { margin: 16px 20px 12px; padding: 12px 16px; }
    .profile-tickets { padding: 0 20px 20px; }
    .pstat .pnum { font-size: 22px; }
}

@media (max-width: 600px) {
    .tech-container { grid-template-columns: 1fr; gap: 16px; margin: 16px 4px 0; }
    .tech-page { padding: 0 8px 24px; }
    .tech-header { margin-bottom: 16px; margin-left: 4px; }
    .tech-title { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tech-title i { font-size: 26px; }
    .tech-title h1 { font-size: 22px; }
    
    .profile-cover { height: 60px; }
    .profile-main { gap: 12px; padding: 0 12px; margin-top: -24px; }
    .profile-avatar { width: 50px; height: 50px; font-size: 20px; border-width: 3px; }
    .profile-info h2 { font-size: 16px; margin-bottom: 2px; }
    .profile-role { font-size: 10px; padding: 3px 8px; margin-top: 4px; }
    
    .profile-email { padding: 12px 12px; font-size: 12px; }
    .profile-stats { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px 12px; margin: 12px 12px 10px; }
    .pstat .pnum { font-size: 18px; }
    .pstat .plabel { font-size: 9px; }
    
    .profile-tickets { padding: 0 12px 16px; }
    .profile-tickets h3 { font-size: 12px; }
    
    .ticket-row { padding: 8px; gap: 8px; }
    .t-priority { height: 24px; width: 3px; }
    .t-info .t-id { font-size: 10px; }
    .t-info .t-title { font-size: 11px; }
    .t-status { font-size: 9px; padding: 2px 6px; }
    .t-reassign { width: 24px; height: 24px; }
    .t-reassign i { font-size: 10px; }
}

/* Ticket View Page */
.ticket-view { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

.ticket-main-section { display: flex; flex-direction: column; gap: 20px; }

.ticket-hero { background: var(--dark-light); border-radius: 16px; padding: 24px; border-left: 4px solid; }

.progress-tracker { margin-bottom: 16px; }
.progress-label { font-size: 12px; font-weight: 600; color: #94A3B8; margin-bottom: 8px; }
.progress-tracker .progress-bar { height: 8px; background: rgba(255, 255, 255, 0.3); border-radius: 4px; overflow: hidden; }
.progress-tracker .progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }

.hero-badges { display: flex; gap: 10px; margin-bottom: 12px; }
.priority-tag, .status-tag { padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 6px; }
.ticket-hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.hero-meta { display: flex; gap: 20px; color: #64748B; font-size: 13px; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }

.ticket-body { display: flex; flex-direction: column; gap: 20px; }

.desc-section { background: var(--dark-light); border-radius: 16px; padding: 20px; }
.desc-section h2 { font-size: 16px; margin-bottom: 12px; color: #94A3B8; display: flex; align-items: center; gap: 8px; }
.desc-section p { line-height: 1.7; white-space: pre-wrap; }

.attachment-box { background: var(--dark-light); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.attachment-box i { color: #94A3B8; }

.comments-section { background: var(--dark-light); border-radius: 16px; padding: 20px; }
.comments-section h2 { font-size: 16px; margin-bottom: 16px; color: #94A3B8; display: flex; align-items: center; gap: 8px; }

.comment-input { margin-bottom: 12px; }
.comment-input textarea { width: 100%; padding: 12px; background: rgba(255, 255, 255, 0.25); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: #E2E8F0; min-height: 80px; resize: none; overflow: hidden; transition: height 0.2s ease; }
.comment-input textarea:focus { outline: none; border-color: #6366F1; }
.btn-comment { 
    margin-top: 8px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary);
    color: #fff;
    
}
.btn-comment:hover { 
    transform: translateY(-2px); 
     
    background: #6366F1;
}


.comment-avatar { width: 40px; height: 40px; background: #475569; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.comment-avatar.tech { background: #6366F1; }

.comment-content { flex: 1; background: rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 14px; }
.comment-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-role-badge { font-size: 10px; padding: 2px 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; color: #94A3B8; }

.no-comments { text-align: center; padding: 30px; color: #64748B; }

/* Sidebar */
.ticket-sidebar-section { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card { background: var(--dark-light); border-radius: 14px; padding: 18px; }

.card-header { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #94A3B8; }

.form-select { 
    width: 100%; 
    padding: 10px 36px 10px 12px; 
    background: rgba(0, 0, 0, 0.25); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    color: #E2E8F0; 
    font-size: 13px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.form-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.form-select:focus {
    outline: none;
    border-color: #6366F1;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}
.custom-dropdown-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #E2E8F0;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease;
    user-select: none;
}
.custom-dropdown-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.custom-dropdown-select.active {
    border-color: #6366F1;
    border-radius: 10px 10px 0 0;
}
.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.custom-dropdown-menu.show {
    display: block;
}
.custom-dropdown-option {
    padding: 10px 12px;
    color: #E2E8F0;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.custom-dropdown-option:hover {
    background: rgba(99, 102, 241, 0.15);
}
.custom-dropdown-option.selected {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
}
.custom-dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 12px;
    pointer-events: none;
}

.info-grid { display: flex; flex-direction: column; gap: 12px; }
.info-item { display: flex; justify-content: space-between; font-size: 13px; }
.info-item .info-label { color: #64748B; }
.info-item .info-value { font-weight: 500; }
.info-item .info-value.success { color: #10B981; }

.timeline { display: flex; flex-direction: column; gap: 12px; max-height: 200px; overflow-y: auto; }
.log-item:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 16px; width: 2px; height: calc(100% + 12px); background: rgba(255, 255, 255, 0.1); }
.log-dot { width: 10px; height: 10px; background: #475569; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.log-details { flex: 1; }

@media (max-width: 900px) {
    .ticket-view { grid-template-columns: 1fr; }
}

/* Ticket Cards */

.ticket-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--dark-light); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.06); transition: all 0.2s; }
.ticket-card:hover { transform: translateX(4px); }

.ticket-card .ticket-priority { width: 8px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex-shrink: 0; }

.ticket-card .ticket-content { flex: 1; min-width: 0; }
.ticket-card .ticket-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket-card .ticket-header h4 { font-size: 15px; font-weight: 600; margin: 0; }
.ticket-card .ticket-header .badge { font-size: 10px; padding: 3px 8px; }

.ticket-card .ticket-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.ticket-card .ticket-meta span { font-size: 12px; color: #64748B; display: flex; align-items: center; gap: 6px; }
.ticket-card .ticket-meta i { font-size: 11px; }

.ticket-card .ticket-tech { font-size: 12px; color: #94A3B8; margin-top: 6px; display: flex; align-items: center; gap: 6px; }

.ticket-card .ticket-arrow { color: #475569; font-size: 14px; }

.empty-state i { font-size: 48px; color: #475569; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: #64748B; margin-bottom: 20px; }

@media (max-width: 600px) {
    .ticket-card { padding: 12px; gap: 12px; }
    .ticket-card .ticket-meta { gap: 10px; font-size: 11px; }
}

/* Metrics Grid - Admin Dashboard */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--dark-light);
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(20px, -20px);
}
.metric-card.blue::after { background: #3B82F6; }
.metric-card.green::after { background: #10B981; }
.metric-card.red::after { background: #EF4444; }
.metric-card.purple::after { background: #8B5CF6; }
.metric-card:hover {
    transform: translateY(-4px);
    
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.metric-icon.blue { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.metric-icon.green { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.metric-icon.red { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.metric-icon.purple { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }

.metric-icon.blue { background: rgba(255, 255, 255, 0.15); color: #3B82F6; }
.metric-icon.green { background: rgba(255, 255, 255, 0.15); color: #10B981; }
.metric-icon.red { background: rgba(255, 255, 255, 0.15); color: #EF4444; }
.metric-icon.purple { background: rgba(255, 255, 255, 0.15); color: #8B5CF6; }

.metric-info { flex: 1; }
.metric-info .metric-value { display: block; font-size: 28px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.metric-info .metric-label { font-size: 13px; color: var(--gray); font-weight: 500; }

/* Priority Grid */
.priority-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 12px;
}
.priority-grid h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
}

.priority-card {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 20px 16px 36px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    transition: border-color 0.2s;
    position: relative;
    min-height: 120px;
}
.priority-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.priority-card.low { border-color: rgba(255, 255, 255, 0.3); }
.priority-card.medium { border-color: rgba(255, 255, 255, 0.3); }
.priority-card.high { border-color: rgba(255, 255, 255, 0.3); }
.priority-card.critical { border-color: rgba(255, 255, 255, 0.3); }

.priority-count { display: block; font-size: 32px; font-weight: 800; margin-bottom: 4px; line-height: 1; }
.priority-card.low .priority-count { color: #10B981; }
.priority-card.medium .priority-count { color: #3B82F6; }
.priority-card.high .priority-count { color: #F59E0B; }
.priority-card.critical .priority-count { color: #EF4444; }

.priority-label { font-size: 13px; color: var(--gray); margin-bottom: 12px; }

.priority-bar {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.priority-fill {
    height:100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    display: block;
}

.priority-card.low .priority-fill { background: #10B981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.priority-card.medium .priority-fill { background: #3B82F6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.priority-card.high .priority-fill { background: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.priority-card.critical .priority-fill { background: #EF4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

/* Alerts Grid */
.alerts-section { 
    margin-top: 32px; 
}
.alerts-section > h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.alert-card.danger { border-color: rgba(255, 255, 255, 0.3); }
.alert-card.warning { border-color: rgba(255, 255, 255, 0.3); }

.alert-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.alert-card-content { flex: 1; min-width: 0; }
.alert-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.alert-card-header strong { font-size: 14px; color: var(--white); }

.alert-plan-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #8B5CF6;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.alert-card-usage { margin-top: 8px; }
.usage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.usage-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.usage-fill.over { background: #EF4444; }
.usage-fill.warning { background: #F59E0B; }
.usage-fill:not(.over):not(.warning) { background: #10B981; }

.usage-text { font-size: 12px; color: var(--gray); }
.usage-text small { color: #64748B; }

/* Client Table */
.client-table {
    overflow-x: auto;
}

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

.client-table th,
.client-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-table th {
    font-weight: 600;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-table td {
    font-size: 14px;
}

.ticket-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #60A5FA;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.user-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.user-card:hover {
    transform: translateY(-4px);
    
    border-color: rgba(255, 255, 255, 0.4);
}
.user-card:hover::before {
    opacity: 1;
}
.user-card.pending {
    border-color: rgba(255, 255, 255, 0.4);
}
.user-card.pending::before {
    background: #F59E0B;
}

.user-card:hover {
    transform: translateY(-4px);
    
}

.user-card.pending {
    border-color: #F59E0B;
}

.user-avatar {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}
.user-card:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.25);
}

.user-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.user-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--white);
}

.user-info p {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.user-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-role,
.user-status {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--white);
}

.btn-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.3s;
    text-decoration: none;
}

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

.form-approve {
    display: inline;
}

.btn-approve-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: #10B981;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-approve-icon:hover {
    background: #059669;
    transform: scale(1.1);
}

/* Technicians Grid */
.tecnicos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tech-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}
.tech-card.admin-card::before { background: #EF4444; }
.tech-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    
}
.tech-card:hover::before {
    background: var(--primary);
    height: 4px;
}

.tech-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tech-card.admin-card {
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tech-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}
.tech-card:hover .tech-avatar {
    border-color: rgba(255, 255, 255, 0.25);
}

.tech-info { flex: 1; min-width: 0; }
.tech-info h2 { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.tech-role { font-size: 12px; padding: 2px 10px; border-radius: 10px; font-weight: 600; }
.tech-role:not(.admin) { background: rgba(255, 255, 255, 0.15); color: #F59E0B; }
.tech-role.admin { background: rgba(255, 255, 255, 0.15); color: #EF4444; }
.tech-email { font-size: 12px; color: var(--gray); margin-top: 4px; }

.tech-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.tech-stat {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.tech-stat.blue { background: rgba(255, 255, 255, 0.1); }
.tech-stat.yellow { background: rgba(255, 255, 255, 0.1); }
.tech-stat.green { background: rgba(255, 255, 255, 0.1); }

.tech-stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--white); }
.tech-stat-label { font-size: 11px; color: var(--gray); }

.btn-reassign {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-reassign:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-color {
    width: 12px;
    height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
}

.category-info { flex: 1; }
.category-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--white); }
.category-info p { font-size: 13px; color: var(--gray); margin: 0; }

.category-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option:has(input:checked),
.color-option input:checked + & {
    border-color: white;
}

/* Plan Cards */
.plan-card {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}
.plan-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    
}
.plan-card:hover::before {
    background: var(--primary);
    height: 4px;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

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

    .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(4px);
    }

.modal-box {
    position: relative;
    background: #1E293B;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    animation: modalSlide 0.3s ease;
}

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

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #E2E8F0;
}

.modal-head h2 i { color: #94A3B8; }

.modal-x {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #64748B;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-x:hover { color: #fff; }


.form-display label { display: block; font-size: 12px; color: #64748B; margin-bottom: 6px; }
.display-box.current { background: rgba(255, 255, 255, 0.15); color: #FBBF24; }

.modal-foot {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-cancel {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #94A3B8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-cancel:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-confirm {
    padding: 10px 18px;
    background: #475569;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm:hover { background: #64748B; }
.btn-confirm:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1100px) {
    .metrics-grid,
    .admin-stats,
    .admin-links,
    .users-grid { grid-template-columns: repeat(2, 1fr); }
    
    .tech-stats { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 600px) {
    .metrics-grid,
    .admin-stats,
    .admin-links,
    .users-grid { grid-template-columns: 1fr; }
    
    .metric-card { flex-direction: column; text-align: center; }
    .metric-card .metric-value { font-size: 28px; }
    
    .priority-grid { grid-template-columns: repeat(2, 1fr); }
    
    .alerts-grid { grid-template-columns: 1fr; }
    
    .tech-stats { grid-template-columns: repeat(4, 1fr); }
}

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

