@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* COMMON TOKENS */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);

    /* DEFAULT THEME (GOLD) */
    --primary: #FFD700;
    --primary-rgb: 255, 214, 0;
    --primary-glow: rgba(255, 215, 0, 0.2);
    --bg-dark: #050505;
    --bg-panel: rgba(15, 15, 15, 0.85);
    --sidebar-bg: rgba(10, 10, 10, 0.98);
    --glass-border: 1px solid rgba(255, 215, 0, 0.15);
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --danger: #ff4b5c;
    --warning: #ffb400;
    --success: #00e676;
    --info: #00b0ff;
}

[data-theme="green"] {
    --primary: #00FF9D;
    --primary-rgb: 0, 255, 157;
    /* Emerald */
    --primary-glow: rgba(0, 255, 157, 0.15);
    --bg-dark: #0a0d10;
    --bg-panel: rgba(18, 22, 28, 0.85);
    --sidebar-bg: rgba(13, 17, 23, 0.98);
    --glass-border: 1px solid rgba(0, 255, 157, 0.1);
    --text-white: #ffffff;
    --text-gray: #94a3b8;
}

[data-theme="light"] {
    /* "Crimson Night" Theme (Inspired by Reference Image) */
    --primary: #FF2E00;
    --primary-rgb: 255, 46, 0;
    /* Intense Neon Red/Orange (Taillights) */
    --primary-glow: rgba(255, 46, 0, 0.35);
    /* Strong red glow */

    /* Deep Night Atmosphere */
    --bg-dark: #030508;
    /* Ultra dark blue/black (Night Sky/Sea) */
    --bg-panel: rgba(10, 12, 16, 0.85);
    /* Dark asphalt/metallic panels */
    --sidebar-bg: rgba(5, 7, 10, 0.95);

    /* Borders & Accents */
    --glass-border: 1px solid rgba(255, 46, 0, 0.25);

    /* Text */
    --text-white: #E0E0E0;
    /* Off-white for better readability in dark */
    --text-gray: #788296;
    /* Steel blue-gray */

    /* Status Colors */
    --success: #00E676;
    --danger: #FF1744;
    /* Matches the primary vibe */
    --warning: #FFC400;
    --info: #2979FF;
}

/* Cinematic Night Atmosphere Background */
[data-theme="light"] body::before {
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.06) 0%, transparent 50%);
}

/* NEON CARD ENHANCEMENT */
.stat-card,
.data-table-container,
.hero-section,
.anal-box {
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(var(--primary-rgb), 0.03) !important;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.05), transparent);
    animation: flowLight 4s infinite;
}

@keyframes flowLight {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Smooth transitions for theme change */
body,
.sidebar,
.main-content,
.data-table-container,
.stat-card,
.action-btn,
.modal-content,
.admin-navbar,
.admin-nav-item,
.admin-dropdown-menu {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    background-attachment: fixed;
    font-family: 'Rajdhani', sans-serif;
    transition: background 0.5s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Sidebar (Legacy - will be hidden if body has .top-nav-layout) */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(15px);
    border-right: var(--glass-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    z-index: 1000;
}

.brand {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: 3px;
    flex-shrink: 0;
}

.sidebar-logo-ring {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08), 0 0 14px rgba(var(--primary-rgb), 0.22);
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-category {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    margin: 15px 0 5px 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-item {
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(90deg, var(--primary-glow), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    box-shadow: -5px 0 15px rgba(255, 215, 0, 0.05);
}

.nav-item i {
    transition: all 0.3s ease;
}

.nav-item:hover i,
.nav-item.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 30px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 10px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 2px;
}

.page-title i {
    color: var(--primary);
}

/* Modern User Profile Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.user-profile-header:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-glow);
    transform: translateY(-2px);
}

.header-avatar-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    z-index: 2;
}

/* Animated Border for Founder/Admin */
.header-avatar-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    z-index: 1;
    animation: rotate 3s linear infinite;
    opacity: 0.6;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.user-info-name {
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.user-info-role {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards (Dashboard) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 25px;
    border-radius: 12px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-glow);
    border-color: var(--primary);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table */
.data-table-container {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 0;
    /* Edge to edge */
    backdrop-filter: blur(5px);
    overflow-x: auto;
    /* Enable horizontal scroll */
    overflow-y: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th {
    text-align: left;
    padding: 18px 24px;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    font-size: 14px;
    vertical-align: middle;
    transition: background 0.2s;
}

/* Zebra Striping & Hover */
tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

tr:hover td {
    background: rgba(var(--primary-rgb), 0.08) !important;
    color: #fff;
    cursor: default;
}

/* Table Avatar */
.table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Modern Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-online,
.status-active,
.badge-success {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.status-offline,
.status-inactive,
.badge-danger {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.status-warning,
.badge-warning {
    background: rgba(255, 196, 0, 0.1);
    color: #ffc400;
    border: 1px solid rgba(255, 196, 0, 0.2);
}

.badge-info {
    background: rgba(41, 121, 255, 0.1);
    color: #2979ff;
    border: 1px solid rgba(41, 121, 255, 0.2);
}

.badge-dark {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), transparent);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.action-btn.danger {
    border-color: var(--danger);
    color: var(--danger);
    background: linear-gradient(45deg, rgba(239, 68, 68, 0.1), transparent);
}

.action-btn.danger:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Search Input */
.search-box {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    width: 300px;
    outline: none;
    transition: border 0.3s;
}

.search-box:focus {
    border-color: var(--primary);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

select.form-control {
    background: #0a0a0a;
}

/* High Impact Components */
.glass-panel {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.02);
    border-radius: 16px;
    padding: 25px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.08);
}

.neon-text {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    font-weight: 700;
}

/* Modals */
.modal:not(.fade) {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal:not(.fade).active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 20px;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.inv-slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
}

.inv-slot:hover {
    border-color: var(--primary);
    background: rgba(0, 143, 17, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.inv-slot img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.item-count {
    position: absolute;
    bottom: 2px;
    right: 5px;
    font-size: 10px;
    color: var(--text-gray);
}

/* Console / Logs */
.console-window {
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #aeaeae;
}

.log-entry {
    margin-bottom: 4px;
}

.log-green {
    color: var(--primary);
}

.log-red {
    color: var(--danger);
}

.log-yellow {
    color: var(--warning);
}

.log-timestamp {
    color: #555;
    margin-right: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.tab-btn.active {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.15);
}

.vehicle-tab {
    flex: 1;
    border-radius: 0;
    padding: 15px;
    font-size: 14px;
    transition: 0.3s;
}

.inv-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 10px;
}

.inv-item {
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.inv-item:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 0, 0.05);
    transform: translateY(-2px);
}

.inv-item.selected {
    border-color: var(--primary);
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.inv-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
}

.inv-item-label {
    font-size: 10px;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.inv-item-amount {
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
}

.inv-item-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    opacity: 0.6;
    transition: 0.2s;
}

.inv-item:hover .inv-item-actions {
    opacity: 1;
}

.inv-item-actions i {
    cursor: pointer;
    font-size: 14px;
}

.inv-item-actions i:hover {
    color: white;
}

/* Toggle Switch */
.switch {
    display: inline-block;
    width: 40px;
    height: 20px;
    position: relative;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Chat/Ticket */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.message.received {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.sent {
    background: rgba(0, 143, 17, 0.2);
    border: 1px solid var(--primary-glow);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 8px;
    background: var(--bg-panel);
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease forwards;
    backdrop-filter: blur(10px);
    color: var(--text-white);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-close {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 16px;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet & Mobile Header/Sidebar */
@media screen and (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 15px;
    }

    .sidebar .brand,
    .sidebar .nav-category,
    .sidebar .nav-item span,
    .sidebar .action-btn span,
    .sidebar #themeText,
    .brand span {
        display: none;
    }

    .sidebar .nav-item {
        justify-content: center;
        padding: 15px 0;
    }

    .sidebar .nav-item i {
        margin-right: 0;
        font-size: 20px;
    }

    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }

    .sidebar {
        display: none;
        /* Mobile menu logic can be added later, hidden for now on very small screens or could be bottom nav */
        width: 100%;
        height: auto;
        bottom: 0;
        top: auto;
        flex-direction: row;
        border-right: none;
        border-top: var(--glass-border);
        justify-content: space-around;
        padding: 10px;
        position: fixed;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        width: 100%;
    }

    .data-table-container {
        overflow-x: auto;
    }
}

/* --- CUSTOM CONFIRM MODAL --- */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.active {
    display: flex;
    opacity: 1;
}

.confirm-modal {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 16px;
    width: 450px;
    max-width: 90%;
    padding: 30px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.1);
}

.confirm-overlay.active .confirm-modal {
    transform: scale(1);
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.confirm-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.confirm-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
}

.confirm-message {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.confirm-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.confirm-btn.confirm {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.confirm-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.confirm-btn.confirm.danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Page Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    border-radius: 15px;
}

/* --- RIO CYBER-WAVE SYSTEM --- */
.rio-navbar-waves {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    /* Behind text/logo */
    pointer-events: none;
    opacity: 0.6;
}

.rio-wave {
    position: absolute;
    top: -250%;
    /* Large enough to cover with rotation */
    left: -50%;
    width: 200%;
    height: 400%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 65%);
    border-radius: 43%;
    /* Creates the wave-like wobble when rotated */
    animation: rio-wave-flow 20s infinite linear;
}

.rio-wave:nth-child(2) {
    animation-duration: 28s;
    opacity: 0.4;
    border-radius: 38%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
}

.rio-wave:nth-child(3) {
    animation-duration: 35s;
    opacity: 0.2;
    border-radius: 48%;
}

@keyframes rio-wave-flow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- RIO NAVBAR PULSE ANIMATION --- */
.rio-nav-pulse-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(var(--primary-rgb), 0.05);
    overflow: hidden;
    z-index: 1001;
    pointer-events: none;
}

.rio-nav-pulse-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(var(--primary-rgb), 0.1) 30%,
            var(--primary) 50%,
            rgba(var(--primary-rgb), 0.1) 70%,
            transparent 100%);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: rio-nav-scan 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rio-nav-scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --- ADMIN TOP NAVBAR --- */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr minmax(160px, 320px);
    grid-template-areas: "brand links actions";
    grid-template-rows: 70px;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: var(--transition);
}

/* Prevent decorative/mobile nodes from creating a second navbar row */
.admin-navbar > .rio-navbar-waves,
.admin-navbar > .rio-nav-pulse-bar,
.admin-navbar > .admin-nav-backdrop {
    grid-area: 1 / 1 / -1 / -1;
}

.admin-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* For FX positioning */
}

/* Reactor Background behind Logo */
.rio-logo-wrapper {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    min-width: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.rio-logo-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(var(--primary-rgb), 0.5);
    box-shadow:
        0 0 0 3px rgba(var(--primary-rgb), 0.08),
        0 0 18px rgba(var(--primary-rgb), 0.24);
    background: rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 2;
}

.rio-logo-reactor {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 72%);
    z-index: 0;
    animation: rio-reactor-pulse 2s infinite ease-in-out;
    pointer-events: none;
}

.rio-logo-reactor::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: rio-reactor-spin 4s linear infinite;
}

/* Digital Grid/Flare behind Text */
.rio-brand-bg-fx {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 40px 50%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
        linear-gradient(90deg, transparent 0%, rgba(var(--primary-rgb), 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.rio-brand-bg-fx::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.2), transparent);
    width: 2px;
    height: 100%;
    animation: rio-text-scan 3s infinite ease-in-out;
    opacity: 0.5;
}

@keyframes rio-reactor-pulse {

    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

@keyframes rio-reactor-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rio-text-scan {
    0% {
        left: 40px;
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        left: 280px;
        opacity: 0;
    }
}

.admin-brand .rio-brand-logo,
.rio-logo-ring img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    filter: none;
}



.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 10px;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-nav-links {
    grid-area: links;
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: center;
    justify-content: center;
    /* Center links in the middle column */
}

.admin-nav-item {
    height: 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

.admin-nav-item i {
    font-size: 16px;
}

/* Dropdown Logic */
.admin-nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.admin-dropdown-menu {
    position: absolute;
    top: 60px;
    /* Below navbar */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #111;
    border: var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    width: 240px;
    display: none;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
    z-index: 1001;
}

.admin-nav-dropdown:hover .admin-dropdown-menu {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.admin-dropdown-item {
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: 0.2s;
}

.admin-dropdown-item:hover,
.admin-dropdown-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding-left: 20px;
}

.admin-nav-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
    max-width: 320px;
}

.admin-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.admin-theme-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px 5px 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: var(--glass-border);
}

.admin-user-profile img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.admin-user-role {
    font-size: 10px;
    color: var(--primary);
    text-transform: uppercase;
}

.admin-logout-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    margin-left: 5px;
    text-decoration: none;
    transition: 0.2s;
}

.admin-logout-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* Override Main Content for Top Navbar Layout */
body.top-nav-layout .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 100px;
    min-height: 100vh;
}

body.top-nav-layout .sidebar {
    display: none !important;
}

/* FIX: Ensure Bootstrap Modals (used in player_detail) are always on top and clickable */
.modal.fade {
    z-index: 10555 !important;
    /* Extremely high to beat any custom overlay */
}

.modal-backdrop {
    z-index: 10550 !important;
    /* Below the modal, but above everything else */
}

.modal.fade .modal-dialog {
    z-index: 10560 !important;
    /* Ensure dialog is above its own container if needed */
    pointer-events: auto !important;
    /* Force clicks to work */
}

.modal.fade.show {
    opacity: 1 !important;
}

/* PANELS INTERACTION */
.stat-card:hover,
.data-table-container:hover,
.hero-section:hover,
.anal-box:hover {
    border-color: rgba(var(--primary-rgb), 0.4) !important;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.1) !important;
    transform: translateY(-2px);
    transition: all 0.4s ease;
}

.hero-section,
.analytics-grid>div,
.data-table-container,
.table-container {
    background: rgba(var(--primary-rgb), 0.02) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
}



/* CYBER-NAVIGATOR TRANSITIONS */

/* CYBER-NAVIGATOR TRANSITIONS */
#rio-content-mount {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rio-nav-loading {
    opacity: 0.5;
    filter: blur(5px);
    pointer-events: none;
}

#rio-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    z-index: 10000;
    width: 0;
    transition: width 0.4s ease;
}

/* ========================================
   CUSTOM SCROLLBAR STYLES
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.6), rgba(var(--primary-rgb), 0.3));
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.8), rgba(var(--primary-rgb), 0.5));
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.2);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.5) rgba(0, 0, 0, 0.2);
}

/* ========================================
   TABLE ENHANCEMENTS
   ======================================== */

/* Table Cell Animations */
td {
    animation: fadeInRow 0.3s ease-out backwards;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for rows */
tr:nth-child(1) td {
    animation-delay: 0.05s;
}

tr:nth-child(2) td {
    animation-delay: 0.1s;
}

tr:nth-child(3) td {
    animation-delay: 0.15s;
}

tr:nth-child(4) td {
    animation-delay: 0.2s;
}

tr:nth-child(5) td {
    animation-delay: 0.25s;
}

/* Table Loading State */
.table-loading {
    position: relative;
    min-height: 200px;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
    animation: tableShimmer 1.5s infinite;
}

@keyframes tableShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Empty Table State */
.table-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.table-empty i {
    font-size: 48px;
    color: rgba(var(--primary-rgb), 0.3);
    margin-bottom: 15px;
    display: block;
}

.table-empty p {
    font-size: 16px;
    margin: 0;
}

/* Table Action Buttons in Cells */
td .action-btn {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 3px;
}

/* Table Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 12px 12px;
}

.pagination-info {
    color: var(--text-gray);
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive Table */
@media (max-width: 768px) {
    .data-table-container {
        border-radius: 8px;
    }

    th,
    td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .table-avatar {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
}

/* ========== MOBILE ADMIN NAV ========== */
/* Desktop: mobil-only öğeleri tamamen çıkar (grid hücresi kaplamasın) */
.admin-nav-toggle,
.admin-nav-drawer-header,
.admin-nav-backdrop {
    display: none !important;
}

button.admin-nav-item,
button.admin-nav-dropdown-toggle {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
}

@media (max-width: 1024px) {
    .admin-navbar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "toggle brand actions";
        padding: 0 14px;
        gap: 8px;
        height: 64px;
    }

    .admin-nav-toggle {
        display: inline-flex !important;
        grid-area: toggle;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05) !important;
        color: #fff !important;
        cursor: pointer;
        z-index: 1002;
        appearance: none;
        -webkit-appearance: none;
    }

    .admin-brand {
        grid-area: brand;
        width: auto;
        max-width: none;
        min-width: 0;
        flex: 1;
    }

    .admin-brand .brand-subtitle {
        display: none;
    }

    .admin-brand .brand-name {
        font-size: 14px;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-nav-actions {
        grid-area: actions;
        width: auto;
        max-width: none;
        gap: 8px;
    }

    .admin-user-info {
        display: none;
    }

    .admin-user-profile {
        padding: 4px;
    }

    .admin-nav-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1090;
        grid-area: unset;
    }

    .admin-nav-backdrop[hidden] {
        display: none !important;
    }

    .admin-nav-links {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 340px);
        max-width: 340px;
        height: 100vh;
        background: #0d0d12;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 16px 12px 24px;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        z-index: 1100;
        display: flex;
        grid-area: unset;
    }

    body.admin-nav-open .admin-nav-links {
        transform: translateX(0);
    }

    body.admin-nav-open {
        overflow: hidden;
    }

    .admin-nav-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px 16px;
        color: #fff;
        font-weight: 700;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 8px;
    }

    .admin-nav-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .admin-nav-dropdown {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .admin-nav-item,
    button.admin-nav-dropdown-toggle {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        border-radius: 10px;
    }

    .admin-nav-dropdown:hover .admin-dropdown-menu {
        display: none;
        opacity: 0;
    }

    .admin-nav-dropdown.open .admin-dropdown-menu {
        display: flex;
        position: static;
        transform: none;
        opacity: 1;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        margin-top: 4px;
        margin-bottom: 6px;
    }

    .admin-dropdown-item {
        min-height: 44px;
        padding: 12px 14px;
    }

    body.top-nav-layout .main-content {
        padding-top: 84px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .action-btn,
    .btn-mdm,
    .btn-reset {
        min-height: 42px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-brand .brand-name {
        max-width: 110px;
    }

    .data-table-container,
    .table-responsive,
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}