/* ===============================================
   TICKERTECH CENTRALIZED THEME
   Emerald Green (#10B981) + Black + White
   Responsive Design for Mobile, Tablet & Desktop
   Currency: British Pound (£)
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===============================================
   CSS VARIABLES - CENTRALIZED THEME SYSTEM
   =============================================== */

:root {
    /* Brand Colors - Emerald Green Theme */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --primary-50: #ECFDF5;
    --primary-100: #D1FAE5;
    --primary-200: #A7F3D0;
    
    /* Neutrals - Black & White */
    --black: #000000;
    --black-light: #1A1A1A;
    --black-lighter: #2D2D2D;
    --white: #FFFFFF;
    
    /* Grayscale */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-emerald: 0 4px 14px rgba(16, 185, 129, 0.35);
    --shadow-emerald-lg: 0 10px 30px rgba(16, 185, 129, 0.3);
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Currency Symbol */
    --currency-symbol: '£';
}

/* ===============================================
   GLOBAL RESETS & BASE STYLES
   =============================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===============================================
   RESPONSIVE TYPOGRAPHY
   =============================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--black);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 1.5vw, 1rem); }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===============================================
   CONTAINER & LAYOUT
   =============================================== */

.container-fluid {
    width: 100%;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Responsive Container */
@media (min-width: 768px) {
    .container,
    .container-fluid {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container,
    .container-fluid {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
}

/* ===============================================
   RESPONSIVE GRID SYSTEM
   =============================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--spacing-md) * -0.5);
    margin-right: calc(var(--spacing-md) * -0.5);
}

[class*="col-"] {
    padding-left: calc(var(--spacing-md) * 0.5);
    padding-right: calc(var(--spacing-md) * 0.5);
    width: 100%;
}

/* Mobile First - All columns stack on mobile */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Tablet and up */
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ===============================================
   BUTTONS - RESPONSIVE & THEMED
   =============================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
    background: var(--black);
    color: var(--primary-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-emerald-lg);
}

.btn-outline-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline-secondary:hover {
    background: var(--black);
    color: var(--primary-light);
    border-color: var(--black);
}

.btn-outline-danger {
    background: var(--white);
    color: var(--danger);
    border-color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: var(--white);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

/* Responsive Buttons - Full width on mobile */
@media (max-width: 767px) {
    .btn-responsive {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================================
   CARDS - RESPONSIVE
   =============================================== */

.content-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-100);
    transition: var(--transition);
    margin-bottom: var(--spacing-lg);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* ===============================================
   FORMS - RESPONSIVE
   =============================================== */

.form-label {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--black);
    margin-bottom: var(--spacing-sm);
}

.form-control,
.form-select,
textarea.form-control {
    display: block;
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    appearance: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}

/* Mobile form adjustments */
@media (max-width: 767px) {
    .form-control,
    .form-select,
    textarea.form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem;
    }
}

/* ===============================================
   TABLES - RESPONSIVE
   =============================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-100);
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

.modern-table thead {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    border-bottom: 3px solid var(--primary);
}

.modern-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    border: none;
    white-space: nowrap;
}

.modern-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.modern-table tbody tr:hover {
    background: linear-gradient(90deg, var(--primary-50), var(--white));
}

.modern-table tbody td {
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    border: none;
    vertical-align: middle;
}

/* Mobile Table Optimization */
@media (max-width: 767px) {
    .modern-table {
        font-size: 0.75rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Hide less important columns on mobile */
    .modern-table .hide-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
}

/* ===============================================
   BADGES - RESPONSIVE
   =============================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: 1px solid transparent;
}

.badge.bg-success {
    background: var(--primary-100);
    color: #065F46;
    border-color: var(--primary);
}

.badge.bg-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-color: var(--danger);
}

.badge.bg-warning {
    background: #FEF3C7;
    color: #92400E;
    border-color: var(--warning);
}

.badge.bg-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-color: var(--info);
}

.badge.bg-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
}

.badge.bg-secondary {
    background: var(--gray-200);
    color: var(--black);
    border-color: var(--gray-400);
}

/* ===============================================
   PAGINATION - RESPONSIVE
   =============================================== */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--black);
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-emerald);
}

.page-item:not(.disabled) .page-link:hover {
    background: var(--black);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-item.disabled .page-link {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* Mobile Pagination */
@media (max-width: 767px) {
    .page-item .page-link {
        min-width: 2rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ===============================================
   CURRENCY FORMATTING (£ Symbol)
   =============================================== */

.currency::before {
    content: var(--currency-symbol);
    margin-right: 0.2em;
}

/* Style for currency values */
.currency-value {
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===============================================
   UTILITY CLASSES - RESPONSIVE
   =============================================== */

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Text Colors */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-white { color: var(--white) !important; }
.text-black { color: var(--black) !important; }

/* Font Weight */
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }

/* ===============================================
   RESPONSIVE UTILITIES
   =============================================== */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hide-tablet {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 768px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* ===============================================
   ADMIN TOPBAR - RESPONSIVE
   =============================================== */

.admin-topbar {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.admin-topbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.admin-brand .brand-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary);
    text-decoration: none;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.admin-brand .brand-link:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.admin-nav {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.admin-nav .nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.admin-nav .nav-item:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}

.admin-nav .nav-item.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-emerald);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
    .admin-topbar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-nav .nav-item {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .admin-nav .nav-item i {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .admin-nav {
        flex-direction: column;
    }
    
    .admin-nav .nav-item {
        width: 100%;
    }
}

/* ===============================================
   ADMIN CONTENT - RESPONSIVE
   =============================================== */

.admin-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--primary);
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.admin-page-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

.admin-page-header p {
    color: var(--gray-600);
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin: 0.5rem 0 0 0;
}

.admin-page-header-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Mobile Admin Header */
@media (max-width: 767px) {
    .admin-page-header {
        flex-direction: column;
    }
    
    .admin-page-header-actions {
        width: 100%;
    }
    
    .admin-page-header-actions .btn {
        flex: 1;
    }
}

/* ===============================================
   ALERTS - RESPONSIVE
   =============================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 2px solid;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.alert-success {
    background: var(--primary-100);
    border-color: var(--primary);
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2;
    border-color: var(--danger);
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    border-color: var(--warning);
    color: #92400E;
}

.alert-info {
    background: #DBEAFE;
    border-color: var(--info);
    color: #1E40AF;
}

/* ===============================================
   MOBILE OPTIMIZATIONS
   =============================================== */

/* Touch-friendly tap targets */
@media (max-width: 767px) {
    .btn,
    .page-link,
    .nav-item,
    a {
        min-height: 44px; /* iOS minimum tap target */
        min-width: 44px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    
    .row {
        margin-left: calc(var(--spacing-sm) * -0.5);
        margin-right: calc(var(--spacing-sm) * -0.5);
    }
    
    [class*="col-"] {
        padding-left: calc(var(--spacing-sm) * 0.5);
        padding-right: calc(var(--spacing-sm) * 0.5);
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
    body {
        background: var(--white);
    }
    
    .admin-topbar,
    .admin-nav,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .admin-content {
        margin: 0;
        padding: 0;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn,
    .form-control,
    .content-card {
        border-width: 3px;
    }
}
