/* ============================================
   IPTV Panel Pro - Premium Admin Dashboard
   Dark Theme with Neon Effects
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-sidebar: rgba(8, 8, 12, 0.95);
    
    --neon-orange: #ff6b35;
    --neon-gold: #ffd700;
    --neon-green: #00ff88;
    --neon-blue: #00d4ff;
    --neon-red: #ff3b5c;
    --neon-purple: #b829dd;
    
    --text-primary: #ffffff;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --shadow-neon-orange: 0 0 30px rgba(255, 107, 53, 0.3);
    --shadow-neon-gold: 0 0 30px rgba(255, 215, 0, 0.3);
    --shadow-neon-green: 0 0 30px rgba(0, 255, 136, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --sidebar-width: 260px;
    --header-height: 70px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-orange), var(--neon-gold));
    border-radius: 10px;
}

/* ============================================
   Animated Background
   ============================================ */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 50%);
    animation: bgPulse 20s ease-in-out infinite;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    z-index: -1;
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ============================================
   Login Page
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 70px;
    background: linear-gradient(135deg, var(--neon-orange), var(--neon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #fff, var(--neon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   Form Elements
   ============================================ */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    color: var(--neon-orange);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-orange);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-orange), #ff8c42);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon-orange);
}

.btn-success {
    background: linear-gradient(135deg, var(--neon-green), #00cc6a);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.25);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon-green);
}

.btn-danger {
    background: linear-gradient(135deg, var(--neon-red), #ff5277);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 92, 0.25);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 59, 92, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--neon-gold), #ffe066);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon-gold);
}

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

.btn-outline:hover {
    border-color: var(--neon-orange);
    color: var(--neon-orange);
    background: rgba(255, 107, 53, 0.05);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    z-index: 1000;
    padding: 25px 0;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    text-align: center;
    padding: 0 25px 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}

.sidebar-logo {
    font-size: 50px;
    background: linear-gradient(135deg, var(--neon-orange), var(--neon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoFloat 3s ease-in-out infinite;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--neon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
}

.sidebar-nav {
    list-style: none;
    padding: 0 15px;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--neon-orange), var(--neon-gold));
    border-radius: 3px;
    transition: height 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 107, 53, 0.08);
    color: var(--neon-orange);
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    height: 60%;
}

.sidebar-nav a i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Header */
.top-header {
    height: var(--header-height);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Content Area */
.content-area {
    padding: 30px;
}

/* ============================================
   Stats Cards
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-orange), var(--neon-gold));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

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

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.orange {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    color: var(--neon-orange);
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    color: var(--neon-green);
}

.stat-icon.red {
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.2), rgba(255, 59, 92, 0.1));
    color: var(--neon-red);
}

.stat-icon.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    color: var(--neon-gold);
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    color: var(--neon-blue);
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(184, 41, 221, 0.2), rgba(184, 41, 221, 0.1));
    color: var(--neon-purple);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 5px;
}

/* ============================================
   Toolbar
   ============================================ */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--neon-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ============================================
   Table
   ============================================ */

.table-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.data-table thead {
    background: rgba(255, 107, 53, 0.08);
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    color: var(--neon-orange);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.data-table tbody tr {
    transition: all 0.3s;
}

.data-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.03);
}

.data-table tbody tr:hover td {
    color: var(--neon-orange);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-active {
    background: rgba(0, 255, 136, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.25);
}
.badge-used {
    background: rgba(231, 29, 54, 0.1);
    color: var(--neon-red);
}

.view-users-link {
    margin-right: 8px;
    color: var(--neon-gold);
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.view-users-link:hover {
    opacity: 1;
    transform: scale(1.2);
}
    border: 1px solid rgba(255, 59, 92, 0.25);
}

.badge-expired {
    background: rgba(255, 215, 0, 0.12);
    color: var(--neon-gold);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.badge-os {
    background: rgba(0, 212, 255, 0.12);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.badge-browser {
    background: rgba(184, 41, 221, 0.12);
    color: var(--neon-purple);
    border: 1px solid rgba(184, 41, 221, 0.25);
}

.ip-badge {
    font-family: 'Courier New', monospace;
    background: rgba(255, 107, 53, 0.12);
    color: var(--neon-orange);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid rgba(255, 107, 53, 0.25);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--neon-red);
    background: rgba(255, 59, 92, 0.1);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid var(--border);
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    box-shadow: var(--shadow-card);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

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

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

.toast-success { border-left: 4px solid var(--neon-green); }
.toast-success i { color: var(--neon-green); }

.toast-error { border-left: 4px solid var(--neon-red); }
.toast-error i { color: var(--neon-red); }

.toast-warning { border-left: 4px solid var(--neon-gold); }
.toast-warning i { color: var(--neon-gold); }

.toast i { font-size: 20px; }
.toast span { color: var(--text-primary); font-size: 14px; }

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 25px;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--neon-orange);
    color: var(--neon-orange);
}

.pagination .current {
    background: linear-gradient(135deg, var(--neon-orange), var(--neon-gold));
    color: #000;
    border: 1px solid transparent;
}

.pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-state i {
    font-size: 70px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Loading Spinner
   ============================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--neon-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* ============================================
   Action Buttons in Table
   ============================================ */

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-glass);
    color: var(--text-secondary);
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.edit {
    color: var(--neon-blue);
}

.action-btn.edit:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.action-btn.delete {
    color: var(--neon-red);
}

.action-btn.delete:hover {
    background: rgba(255, 59, 92, 0.15);
    box-shadow: 0 0 15px rgba(255, 59, 92, 0.3);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .top-header {
        padding: 0 15px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 15px 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-value {
        font-size: 28px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .search-box {
        max-width: 100%;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 800px;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 10px;
    }

    .modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 15px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }

    .header-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 10px 8px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .data-table {
        min-width: 750px;
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

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

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

    .top-header {
        padding: 0 10px;
        height: 60px;
    }

    .header-title {
        font-size: 14px;
    }

    .header-actions .btn-sm {
        padding: 5px 8px;
        font-size: 10px;
    }

    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-orange { color: var(--neon-orange); }
.text-green { color: var(--neon-green); }
.text-gold { color: var(--neon-gold); }
.text-red { color: var(--neon-red); }
.text-muted { color: var(--text-muted); }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }

.hidden { display: none !important; }
