/* ========================================
   FACTORYSERVERS.COM - MAIN STYLESHEET
   ======================================== */

/* CSS Variables — customer portal uses a light, minimal palette (class names kept for template compatibility) */
:root {
    --gaming-primary: #2563eb;
    --gaming-secondary: #dc2626;
    --gaming-accent: #0ea5e9;
    --gaming-dark: #f8fafc;
    --gaming-darker: #f1f5f9;
    --gaming-light: #ffffff;
    --gaming-lighter: #e2e8f0;
    --gaming-text: #0f172a;
    --gaming-text-muted: #64748b;
    
    /* Admin (staff) — same palette as customer UI for one coherent theme */
    --admin-primary: #2563eb;
    --admin-secondary: #64748b;
    --admin-accent: #0ea5e9;
    --admin-dark: #f8fafc;
    --admin-darker: #f1f5f9;
    --admin-light: #ffffff;
    --admin-lighter: #e2e8f0;
    --admin-text: #0f172a;
    --admin-text-muted: #64748b;
    --admin-danger: #dc2626;
    --admin-success: #16a34a;
    --admin-warning: #ca8a04;
    --admin-info: #2563eb;
    
    /* Layout Variables */
    --container-padding: 20px;
}

/* ========================================
   GLOBAL LAYOUT & CONTAINER STYLES
   ======================================== */

/* Responsive full width layout */
.container-fluid,
.container {
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
}

/* Ensure containers are responsive */
.gaming-container,
.admin-container,
.hero-body .container,
.hero-body .container-fluid {
    margin: 0 auto !important;
}

/* --- Uniform Layout and Card/Table/Button Styling --- */
.gaming-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gaming-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Old gaming card styles removed - now handled by the new .card-gaming rules below */

.gaming-card-header, .card-gaming .card-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gaming-text);
    border-bottom: 1px solid var(--gaming-lighter);
    margin-bottom: 1rem;
    background: var(--gaming-darker);
}

.gaming-table th, .gaming-table td {
    border-color: var(--gaming-primary);
    padding: 0.75rem 1rem;
}

.btn-gaming-primary, .btn-gaming-secondary {
    min-width: auto;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.app-navbar .btn-gaming-primary {
    min-width: auto;
    margin-left: 0;
    margin-right: 0;
}

/* Responsive stacking for cards on small screens */
@media (max-width: 900px) {
    .gaming-row {
        flex-direction: column;
        gap: 2rem;
    }
    /* Responsive gaming card adjustments removed - handled by main .card-gaming rules */
}

/* ========================================
   GLOBAL BODY STYLES
   ======================================== */

body {
    background: var(--gaming-dark);
    color: var(--gaming-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Customer portal: flex column layout for sticky footer */
body.app-body {
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
}

.app-footer {
    flex-shrink: 0;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

/* Legacy top bar — kept for any old markup; primary nav is .app-navbar */
.top-navbar {
    min-height: 2rem;
    padding: 0.25rem 0;
    background: var(--gaming-darker) !important;
    border-bottom: 1px solid var(--gaming-lighter);
}

.top-navbar .navbar-nav .nav-link {
    color: var(--gaming-text-muted) !important;
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem !important;
}

.top-navbar .navbar-nav .nav-link:hover {
    color: var(--gaming-primary) !important;
}

/* Customer app header / nav */
.app-header {
    background: var(--gaming-light);
    border-bottom: 1px solid var(--gaming-lighter);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.app-navbar {
    background: var(--gaming-light) !important;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.app-navbar .navbar-brand {
    color: var(--gaming-text) !important;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.app-navbar .nav-link {
    color: var(--gaming-text-muted) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: var(--gaming-primary) !important;
    background: rgba(37, 99, 235, 0.06);
}

.app-navbar .navbar-toggler {
    border-color: var(--gaming-lighter);
}

/* Back-compat: old class name maps to same look */
.gaming-navbar {
    background: var(--gaming-light) !important;
    border-bottom: 1px solid var(--gaming-lighter);
    box-shadow: none;
}

.gaming-navbar .navbar-brand {
    color: var(--gaming-text) !important;
    font-weight: 600;
    text-shadow: none;
    font-size: 1.125rem;
}

.gaming-navbar .nav-link {
    color: var(--gaming-text-muted) !important;
    transition: color 0.15s ease, background 0.15s ease;
}

.gaming-navbar .nav-link:hover {
    color: var(--gaming-primary) !important;
    text-shadow: none;
}

.gaming-navbar .nav-link::after {
    display: none;
}

/* Legacy class — staff pages now use the same .app-navbar chrome via base template */
.admin-navbar {
    background: var(--gaming-light) !important;
    border-bottom: 1px solid var(--gaming-lighter);
    box-shadow: none;
}

.admin-navbar .navbar-brand {
    color: var(--gaming-text) !important;
    font-weight: 600;
    text-shadow: none;
    font-size: 1.125rem;
}

.admin-navbar .nav-link {
    color: var(--gaming-text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem;
}

.admin-navbar .nav-link:hover {
    color: var(--gaming-primary) !important;
    background: rgba(37, 99, 235, 0.06);
    text-shadow: none;
}

.admin-navbar .nav-link::after {
    display: none;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

/* Customer primary / secondary actions */
.btn-gaming-primary {
    background: var(--gaming-primary);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-gaming-primary:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-gaming-secondary {
    background: #fff;
    border: 1px solid var(--gaming-lighter);
    color: var(--gaming-text);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-gaming-secondary:hover {
    background: var(--gaming-darker);
    border-color: #cbd5e1;
    color: var(--gaming-text);
}

/* Admin buttons — match primary UI */
.btn-admin-primary {
    background: var(--gaming-primary);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-admin-primary:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-admin-secondary {
    background: #fff;
    border: 1px solid var(--gaming-lighter);
    color: var(--gaming-text);
    font-weight: 600;
}

.btn-admin-secondary:hover {
    background: var(--gaming-darker);
    border-color: #cbd5e1;
    color: var(--gaming-text);
}

.btn-admin-danger {
    background: var(--admin-danger);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
}

.btn-admin-danger:hover {
    background: #b91c1c;
    color: #fff;
}

/* ========================================
   CARD STYLES
   ======================================== */

/* FactoryServers card base (.card-fs) — .card-gaming is a legacy alias */
.card-fs,
.card-gaming {
    background: var(--gaming-light) !important;
    border: 1px solid var(--gaming-lighter) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
    color: var(--gaming-text) !important;
    overflow: hidden !important;
    position: relative !important;
}

.card-fs:hover,
.card-gaming:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1 !important;
}

.card-fs .card-header,
.card-gaming .card-header {
    background: var(--gaming-darker);
    color: var(--gaming-text);
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gaming-lighter);
}

.card-fs .card-body,
.card-gaming .card-body {
    background: transparent !important;
    color: var(--gaming-text) !important;
    padding: 1rem !important;
}

/* Game Image Styling - Background Image with Fade */
.game-image-container {
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    visibility: visible;
    transition: transform 0.3s ease;
}

.card-fs:hover .game-image-container,
.card-gaming:hover .game-image-container {
    transform: scale(1.05);
}

/* Game Description */
.game-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 2.8rem;
    display: block;
    text-align: center;
    color: var(--gaming-text-muted);
    text-shadow: none;
    visibility: visible;
    opacity: 1;
}

.card-fs .gaming-title,
.card-gaming .gaming-title {
    color: var(--gaming-text);
    text-shadow: none;
}

/* Admin cards — same surface as .card-fs */
.card-fs--admin,
.card-admin {
    background: var(--gaming-light) !important;
    border: 1px solid var(--gaming-lighter) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
    color: var(--gaming-text) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-fs--admin:hover,
.card-admin:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1 !important;
}

.card-fs--admin .card-header,
.card-admin .card-header {
    background: var(--gaming-darker);
    color: var(--gaming-text);
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gaming-lighter);
    border-radius: 12px 12px 0 0;
}

/* ========================================
   CARD TYPE MODIFIERS
   ======================================== */

/* Marketing — home page features and CTA blocks */
.card-fs--marketing .card-body,
.card-fs--marketing.card-gaming {
    padding: 1.25rem;
}

/* Server dashboard tiles */
.card-fs--server .card-header {
    background: transparent;
    border-bottom: none;
}

/* Pricing / tier selection */
.card-fs--pricing {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.card-fs--pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

/* Compact profile picker */
.card-fs--profile {
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-fs--profile .card-body {
    padding: 0.625rem 0.875rem !important;
}

.card-fs--profile:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.card-fs--profile.selected,
.card-fs--selectable.selected {
    border: 2px solid var(--gaming-primary) !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

.card-fs--profile .profile-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.card-fs--profile .profile-card-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
    color: var(--gaming-text-muted);
}

/* Interactive selectable cards (profile + pricing pickers) */
.card-fs--selectable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-fs--selectable:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.deploy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.deploy-btn:not(:disabled) {
    cursor: pointer;
}

/* ========================================
   CONTAINER STYLES
   ======================================== */

/* Page content wrapper */
.gaming-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    max-width: 1200px;
}

.admin-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    max-width: 1200px;
}

/* ========================================
   TYPOGRAPHY STYLES
   ======================================== */

/* Headings & body copy */
.gaming-title {
    color: var(--gaming-text);
    text-shadow: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
}

.gaming-subtitle {
    color: var(--gaming-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.admin-title {
    color: var(--gaming-text);
    text-shadow: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
}

.admin-subtitle {
    color: var(--gaming-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   STATS CARDS
   ======================================== */

.admin-stats-card,
.card-fs--stat {
    background: var(--gaming-light);
    border: 1px solid var(--gaming-lighter);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-stats-card:hover,
.card-fs--stat:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.admin-stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gaming-primary);
    letter-spacing: -0.03em;
    text-shadow: none;
}

.admin-stats-label {
    color: var(--gaming-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* ========================================
   QUICK ACTION CARDS
   ======================================== */

.admin-quick-action-card,
.card-fs--action {
    background: var(--gaming-light);
    border: 1px solid var(--gaming-lighter);
    border-radius: 12px;
    padding: 0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    position: relative;
}

.admin-quick-action-card::before,
.card-fs--action::before {
    display: none;
}

.admin-quick-action-card:hover,
.card-fs--action:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.admin-quick-action-link {
    display: block;
    padding: 1.5rem;
    text-align: left;
    text-decoration: none;
    color: var(--gaming-text);
    height: 100%;
    transition: color 0.15s ease;
}

.admin-quick-action-link:hover {
    text-decoration: none;
    color: var(--gaming-text);
}

.admin-quick-action-icon {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--gaming-primary);
    display: block;
}

.admin-quick-action-card:hover .admin-quick-action-icon {
    color: var(--gaming-primary);
    transform: none;
}

.admin-quick-action-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gaming-text);
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: -0.02em;
}

.admin-quick-action-card:hover .admin-quick-action-title {
    color: var(--gaming-text);
    text-shadow: none;
}

.admin-quick-action-desc {
    color: var(--gaming-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.admin-quick-action-card:hover .admin-quick-action-desc {
    color: var(--gaming-text-muted);
}

.admin-quick-action-arrow {
    font-size: 1.125rem;
    color: var(--gaming-primary);
    opacity: 1;
}

.admin-quick-action-card:hover .admin-quick-action-arrow {
    transform: translateX(4px);
}

.admin-quick-action {
    background: var(--gaming-light);
    border: 1px solid var(--gaming-lighter);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--gaming-text);
}

.admin-quick-action:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: var(--gaming-text);
}

/* ========================================
   ALERT STYLES
   ======================================== */

        .alert-gaming {
            background: linear-gradient(145deg, rgba(255, 0, 0, 0.1), rgba(0, 102, 255, 0.1));
            border: 1px solid var(--gaming-secondary);
            color: var(--gaming-text);
            border-radius: 10px;
        }

.alert-admin {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--gaming-text);
    border-radius: 10px;
}

/* Modern Gaming Notification Toast */
.notification-toast {
    position: relative;
    margin: 0 auto;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
}

.notification-content {
    background: var(--gaming-light);
    border: 1px solid var(--gaming-lighter);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--gaming-primary);
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    filter: none;
}

.notification-text {
    color: var(--gaming-text);
    font-weight: 500;
    flex: 1;
    font-size: 0.9375rem;
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--gaming-text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.notification-toast--error .notification-content--error {
    border-color: rgba(185, 28, 28, 0.35);
    background: linear-gradient(145deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.98));
}

.notification-toast--error .notification-content--error::before {
    background: #b91c1c;
}

.notification-toast--error .notification-icon {
    color: #b91c1c;
    font-weight: 700;
}

.notification-close:hover {
    background: var(--gaming-darker);
    color: var(--gaming-text);
    transform: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========================================
   TABLE STYLES
   ======================================== */

.table-admin {
    background-color: var(--gaming-light);
    color: var(--gaming-text);
    --bs-table-bg: transparent;
}

.table-admin th,
.table-admin td {
    border-color: var(--gaming-lighter);
}

.table-admin tbody tr:hover {
    background-color: var(--gaming-darker);
}

/* ========================================
   ANIMATIONS
   ======================================== */

        /* Gaming animations */
        @keyframes glow {
            0%, 100% { box-shadow: 0 0 5px rgba(0, 102, 255, 0.5); }
            50% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.8); }
        }

.glow-animation {
    animation: none;
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gaming-darker);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }
    
    .gaming-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .gaming-subtitle {
        font-size: 1rem;
    }
    
    .card-gaming {
        margin: 0.5rem 0;
    }
    
    .btn-gaming-primary,
    .btn-gaming-secondary {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .admin-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .admin-subtitle {
        font-size: 1rem;
    }
    
    /* Quick action responsive improvements */
    .admin-quick-action-card {
        margin-bottom: 1rem;
    }
    
    .admin-quick-action-link {
        padding: 1.5rem;
    }
    
    .admin-quick-action-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .admin-quick-action-title {
        font-size: 1.2rem;
    }
    
    .admin-quick-action-desc {
        font-size: 0.85rem;
    }
    
    .admin-quick-action-arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .admin-quick-action-link {
        padding: 1.25rem;
    }
    
    .admin-quick-action-icon {
        font-size: 2rem;
    }
    
    .admin-quick-action-title {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .admin-quick-action-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 10px;
    }
    
    .gaming-container,
    .admin-container {
        padding: 1rem;
    }
}

/* ========================================
   SERVER SETTINGS STYLES
   ======================================== */

.server-settings-section {
    background: var(--gaming-darker);
    border: 1px solid var(--gaming-lighter);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.server-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gaming-lighter);
}

.server-settings-row:last-child {
    border-bottom: none;
}

.server-settings-label {
    color: var(--gaming-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.server-settings-value {
    color: var(--gaming-text);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
}

.server-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

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

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .gaming-title,
    .btn-gaming-primary::before,
    .card-gaming::before,
    .admin-title,
    .btn-admin-primary::before,
    .card-admin::before,
    .admin-quick-action-card::before,
    .admin-quick-action-card:hover,
    .admin-quick-action-card:hover .admin-quick-action-icon,
    .admin-quick-action-card:hover .admin-quick-action-arrow {
        animation: none;
        transform: none;
    }
}

/* Focus states for accessibility */
.admin-quick-action-link:focus {
    outline: 3px solid var(--admin-primary);
    outline-offset: 2px;
    border-radius: 15px;
}

.admin-quick-action-link:focus-visible {
    outline: 3px solid var(--admin-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .admin-quick-action-card {
        border-width: 3px;
    }
    
    .admin-quick-action-title {
        text-shadow: none;
    }
    
    .admin-quick-action-card:hover .admin-quick-action-title {
        text-shadow: none;
    }
}

/* Forms on customer pages */
.form-control.border-gaming,
.app-form .form-control {
    background: #fff;
    border: 1px solid var(--gaming-lighter);
    color: var(--gaming-text);
    border-radius: 8px;
}

.form-control.border-gaming:focus,
.app-form .form-control:focus {
    border-color: var(--gaming-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #fff;
    color: var(--gaming-text);
}

.app-page-hero {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--gaming-text);
}

.app-kpi {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--gaming-darker);
    border: 1px solid var(--gaming-lighter);
    color: var(--gaming-text);
}

/* Server wizard / edit forms still use legacy bg-dark classes — normalize on customer pages */
body.app-body .form-control.bg-dark.text-light {
    background-color: #fff !important;
    color: var(--gaming-text) !important;
    border-color: var(--gaming-lighter);
}

body.app-body .form-control.bg-dark.text-light:focus {
    border-color: var(--gaming-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
} 