/* EYEFLIPZ Admin Console Stylesheet */
:root {
    --bg-color: #06060a;
    --card-bg: rgba(13, 13, 22, 0.7);
    --border-color: rgba(255, 255, 255, 0.04);
    --text-primary: #f1f5f9;
    --text-secondary: #64748b;
    --accent: #ff6b00; /* Orange */
    --accent-glow: rgba(255, 107, 0, 0.25);
    --accent-neon: #ffffff; /* White */
    --accent-neon-glow: rgba(255, 255, 255, 0.25);
    --accent-green: #10b981; /* Emerald */
    --accent-green-glow: rgba(16, 185, 129, 0.2);
    --accent-red: #f43f5e; /* Rose */
    --accent-red-glow: rgba(244, 63, 94, 0.2);
    --accent-orange: #f59e0b; /* Amber */
    --accent-orange-glow: rgba(245, 158, 11, 0.2);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

/* Custom Scrollbar for console */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #08080c;
}
::-webkit-scrollbar-thumb {
    background: #1e1e2f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
}

body.locked {
    overflow: hidden;
    height: 100vh;
}

body.dragging, body.dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Authentication Gate CSS */
.auth-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(13, 13, 22, 0.95) 0%, #06060a 100%);
    backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.auth-gate.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    background: rgba(18, 18, 29, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    padding: 3rem 2.2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.04);
    position: relative;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    background: linear-gradient(90deg, #fff, var(--accent-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.auth-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-top: 0.4rem;
    font-weight: 600;
}

/* Simulated Fingerprint Biometric Scanner */
.bio-scanner-container {
    margin-bottom: 2.2rem;
}

.bio-scanner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin: 0 auto 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.05);
    overflow: hidden;
}

.scanner-circle {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 1px dashed rgba(99, 102, 241, 0.4);
    animation: rotateDashed 12s linear infinite;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    top: 0;
    animation: scanAnim 2.5s ease-in-out infinite;
}

.fingerprint-icon {
    font-size: 1.8rem;
    z-index: 2;
    transition: transform 0.3s;
}

.bio-scanner:hover .fingerprint-icon {
    transform: scale(1.1);
}

.scan-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-group {
    text-align: left;
    margin-bottom: 1.8rem;
}

.auth-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.auth-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    letter-spacing: 0.2em;
    transition: all 0.3s;
}

.auth-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.passcode-hint {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 300;
}

.auth-submit-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    color: var(--text-primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.5);
}

.auth-error-msg {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-top: 1rem;
    display: none;
    font-weight: 500;
}

/* Sidebar Styling & Operator Profile */
.admin-sidebar {
    width: 280px;
    background: #08080d;
    border-right: 1px solid var(--border-color);
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand span {
    font-size: 0.6rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-neon));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

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

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

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.nav-icon {
    font-size: 1rem;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.07);
    border-color: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.03);
    color: var(--text-primary);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.logout-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(244, 63, 94, 0.15);
    background: transparent;
    color: var(--accent-red);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(244, 63, 94, 0.08);
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.08);
}

.view-site-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-site-btn:hover {
    background: var(--text-primary);
    color: #06060a;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

/* Main Content Panel */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem 3.5rem;
    min-height: 100vh;
    min-width: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.system-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-green);
    font-family: var(--font-heading);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: beaconPulse 1.8s infinite;
}

/* Tabs Toggle Content */
.dashboard-tab {
    display: none;
}

.dashboard-tab.active {
    display: block;
    animation: dashboardFadeIn 0.4s ease;
}

/* Stats Widgets Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.stats-row.dragging {
    cursor: grabbing;
}

.stats-row::-webkit-scrollbar {
    height: 4px;
}
.stats-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
}
.stats-row::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.25);
    border-radius: 2px;
}
.stats-row::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.stats-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.08);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.text-accent { color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.text-neon { color: var(--accent-neon); box-shadow: 0 0 15px var(--accent-neon-glow); }
.text-green { color: var(--accent-green); box-shadow: 0 0 15px var(--accent-green-glow); }
.text-orange { color: var(--accent-orange); box-shadow: 0 0 15px var(--accent-orange-glow); }

.stats-details {
    display: flex;
    flex-direction: column;
}

.stats-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stats-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.form-card {
    grid-column: span 12;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
}

.form-card.half-width {
    grid-column: span 6;
}

.chart-card {
    grid-column: span 12;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

/* SVG Line Chart Style */
.chart-container {
    width: 100%;
    height: 250px;
    padding: 0.5rem 0;
    position: relative;
}

#analytics-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-dot {
    cursor: pointer;
    transition: r 0.2s, fill 0.2s;
}

.chart-dot:hover {
    fill: #fff;
    r: 6px;
}

.chart-value-label {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 600;
    fill: var(--text-primary);
    text-anchor: middle;
}

.chart-axis-label {
    font-family: var(--font-heading);
    font-size: 9px;
    fill: var(--text-secondary);
    text-anchor: middle;
    letter-spacing: 0.02em;
}

/* Database Monitor List */
.system-monitor-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.system-monitor-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.system-monitor-list li:last-child {
    border: none;
    padding-bottom: 0;
}

.monitor-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.monitor-value {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    font-weight: 600;
    display: inline-block;
}

.status-badge.green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-badge.purple {
    background: rgba(217, 70, 239, 0.08);
    color: var(--accent-neon);
    border: 1px solid rgba(217, 70, 239, 0.15);
}

.status-badge.orange {
    background: rgba(245, 158, 11, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.status-badge.red {
    background: rgba(244, 63, 94, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.status-badge.indigo {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* Switches & Configurations toggles */
.security-toggles {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s;
}

input:checked + .slider {
    background-color: rgba(99, 102, 241, 0.25);
    border-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Form Settings Input styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

input[type="text"], input[type="number"], input[type="password"], textarea, select {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Pre-orders tracker Tables Toolbar */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    gap: 1.5rem;
}

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

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding-left: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.filter-box select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.8rem 2.2rem 0.8rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Tables styling */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
    font-size: 0.9rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.admin-table td .text-primary {
    color: var(--text-primary);
    font-weight: 500;
}

.table-cust-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.table-order-id {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.prod-thumb {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.prod-name {
    color: var(--text-primary);
    font-weight: 600;
}

/* Manage products controls */
.product-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.add-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: var(--text-primary);
    transition: all 0.3s;
}

.add-btn:hover {
    background: var(--accent-neon);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

.action-btns {
    display: flex;
    gap: 0.4rem;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.2s;
}

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

.action-btn.edit:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent);
}

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

.action-btn.delete:hover {
    background: rgba(244, 63, 94, 0.08);
    border-color: var(--accent-red);
}

.action-btn.status {
    color: var(--accent-orange);
}

.action-btn.status:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--accent-orange);
}

/* Modals styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0b0b12;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    width: 90%;
    max-width: 500px;
    padding: 2.2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.cancel-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Toast banners */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #09090f;
    border: 1px solid var(--accent-green);
    color: var(--text-primary);
    padding: 1rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
}

/* Keyframe animations */
@keyframes rotateDashed {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scanAnim {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes beaconPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stats-row {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: none;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }
    .stats-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
    }
    .sidebar-brand {
        margin-bottom: 1.2rem;
    }
    .admin-profile {
        margin-bottom: 1.2rem;
    }
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.6rem;
        padding-bottom: 0.6rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-nav::-webkit-scrollbar {
        height: 3px;
    }
    .sidebar-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.01);
    }
    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 107, 0, 0.2);
        border-radius: 1.5px;
    }
    .sidebar-link {
        flex: 0 0 auto;
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
    .form-card.half-width {
        grid-column: span 12;
    }
}

@media (max-width: 576px) {
    .stats-row {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: none;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }
    .stats-card {
        flex: 0 0 82%;
        min-width: 240px;
        scroll-snap-align: start;
    }
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .search-box {
        max-width: 100%;
    }
}

/* Responsive configurations for Settings Grids */
.settings-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.settings-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.settings-payment-grid.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

/* Tablet viewport adjustments */
@media (max-width: 768px) {
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .search-box {
        max-width: 100%;
    }
    .filter-box select {
        width: 100%;
    }
    .action-btns {
        flex-direction: column;
        gap: 0.3rem;
    }
    .action-btn {
        width: 100%;
        text-align: center;
    }
    .form-card {
        padding: 1.2rem;
    }
    .settings-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile viewport adjustments */
@media (max-width: 576px) {
    .admin-main {
        padding: 0.8rem;
    }
    .settings-footer-grid {
        grid-template-columns: 1fr;
    }
    .settings-payment-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Upload Previews & Importer Layouts */
.img-preview-box {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.01);
    margin: 0.8rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.05);
    transition: all 0.3s;
}

.img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

