:root {
    /* Premium Light Dashboard */
    --bg-dark: #f1f5f9; /* Slightly darker background to make cards pop */
    --sidebar-bg: #ffffff;
    --sidebar-text: #64748b;
    --sidebar-active: #4f46e5;
    --card-bg: #ffffff;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-soft: rgba(79, 70, 229, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success: #059669;
    --danger: #dc2626;
    --glass-border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    --sidebar-shadow: 10px 0 30px rgba(0, 0, 0, 0.02);
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
}

body.dark-theme {
    /* Premium Dark Theme */
    --bg-dark: #020617;
    --sidebar-bg: #0f172a;
    --card-bg: #1e293b;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: rgba(129, 140, 248, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --sidebar-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--sidebar-shadow);
    z-index: 100;
    position: relative;
    min-height: 100vh;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    background-color: var(--accent-soft);
    color: var(--accent);
}

.nav-item.active {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-user-card {
    background: var(--bg-dark);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border: 1px solid var(--glass-border);
}

.sidebar-user-card i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-user-card div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    overflow: hidden;
}

.sidebar-user-card .user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-card .user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: capitalize;
    font-weight: 500;
}

.sidebar-version {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    opacity: 0.6;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2.5rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-clock {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
}

.topbar-time-sep { opacity: 0.4; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Notifications */
.topbar-notif {
    position: relative;
    cursor: pointer;
}

.notif-bell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-muted);
    transition: all 0.2s;
    border: 1px solid var(--glass-border);
}

.notif-bell:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.notif-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
}

.notif-count {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notif-empty i { font-size: 1.5rem; opacity: 0.5; }

.notif-item {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    transition: background 0.2s;
}

.notif-item:hover { background: var(--bg-dark); }

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-body p {
    font-size: 0.85rem;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.notif-body time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-footer {
    display: block;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid var(--glass-border);
}

.notif-footer:hover { background: var(--accent-soft); }

/* Profile Dropdown */
.topbar-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    position: relative;
}

.topbar-profile:hover {
    background: var(--bg-dark);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-chevron {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.profileDropdown.open ~ .profile-chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 240px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-head {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--glass-border);
}

.profile-dropdown-head strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.profile-dropdown-item i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.profile-dropdown-item:hover {
    background: var(--bg-dark);
}

.profile-dropdown-danger { color: var(--danger); }
.profile-dropdown-danger i { color: var(--danger); }

.profile-dropdown-sep {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

/* Page Headers (replaces .header) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
}

.page-title h1 {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.page-title p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Wrapper for main content inside the page (padding added here instead of main-content) */
.stats-grid, .data-table-container, .alert {
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    overflow-x: auto;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

/* Table Area */
.data-table-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--card-shadow);
    padding: 1.75rem;
}

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

th {
    background: rgba(129, 140, 248, 0.03);
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
}

tr:hover td {
    background-color: rgba(79, 70, 229, 0.01);
}
/* Category Headers */
.cat-account { background: #fffbeb !important; color: #92400e !important; }
.cat-dispatch { background: #f0f9ff !important; color: #075985 !important; }
.cat-payment  { background: #f0fdf4 !important; color: #166534 !important; }
.cat-returned { background: #fff7ed !important; color: #9a3412 !important; }
.cat-spf      { background: #f8fafc !important; color: #1e293b !important; }
.cat-margin   { background: #f0fdf4 !important; color: #166534 !important; }

.excel-table {
    border-collapse: collapse;
    width: 100%;
    background: var(--card-bg);
}

.excel-table th {
    background: var(--bg-dark);
    padding: 0.875rem 1.25rem !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-muted);
    font-size: 0.75rem !important;
    font-weight: 700;
}

.excel-table td {
    padding: 0.75rem 1.25rem !important;
    border: 1px solid var(--glass-border) !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    color: var(--text-main);
}

.excel-table tr:hover td {
    background-color: var(--accent-soft);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-ordered { background: rgba(79, 70, 229, 0.1); color: var(--accent); }
.status-returned { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.status-delivered { background: rgba(5, 150, 105, 0.1); color: var(--success); }

/* Small buttons for management pages */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg-dark);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-danger-outline {
    color: var(--danger);
}

.btn-danger-outline:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.audit-tag {
    padding: 0.2rem 0.6rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

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

/* Auth Pages */
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--card-shadow);
}

.login-header { text-align: center; margin-bottom: 2rem; }
.login-header i { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }

.form-group { margin-bottom: 1.5rem; }

input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.08);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.1);
}

.alert-success {
    background-color: rgba(5, 150, 105, 0.08);
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.1);
}
.upload-area {
    border: 2px dashed var(--glass-border);
    padding: 3rem;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-info {
    background-color: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(79, 70, 229, 0.1);
}
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.5rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.page-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* Table Responsiveness */
.data-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
}

table {
    min-width: 800px;
}

/* Mapping Grid Layout */
.mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.mapping-item {
    background: var(--bg-dark);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mapping-item:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.mapping-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mapping-item input {
    width: 100% !important;
    background: var(--sidebar-bg);
    border: 1px solid var(--glass-border);
    padding: 0.875rem;
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.mapping-item input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .sidebar { width: 80px; padding: 1.5rem 0.5rem; }
    .sidebar span { display: none; }
    .nav-item { justify-content: center; padding: 1rem; }
}

@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 0.5rem 1rem;
        flex-direction: column;
        position: sticky;
        top: 0;
        z-index: 100;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .logo { 
        margin-bottom: 0.5rem; 
        justify-content: center;
        padding: 0.5rem;
    }
    .nav-links {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-item {
        padding: 0.625rem 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav-item span { font-size: 0.75rem; }
    .main-content { padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .header h1 { font-size: 1.5rem; }
    .mapping-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card .value { font-size: 1.75rem; }
    .btn { width: 100%; }
    .modal-content { width: 95%; padding: 1.5rem; }
    .nav-item span { display: none; }
    .nav-item i { font-size: 1.25rem; margin: 0; }
}

/* ─── Admin / Role Management ──────────────────────────── */

/* Role badge pills */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar role label row */
.sidebar-role-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
}

/* User management table action cell */
.action-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-cell select {
    padding: 0.375rem 0.625rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.action-cell select:hover {
    border-color: var(--accent);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s;
}

.btn-danger-outline {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
}

.btn-danger-outline:hover {
    background: rgba(220, 38, 38, 0.15);
}

.btn-success-outline {
    background: rgba(5, 150, 105, 0.08);
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.2);
}

.btn-success-outline:hover {
    background: rgba(5, 150, 105, 0.15);
}

/* Audit log table action tag */
.audit-tag {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

/* User inactive row */
tr.user-inactive {
    opacity: 0.5;
}

/* Admin page form select full-width */
.form-select {
    width: 100%;
    padding: 0.875rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
