/* ==============================================
   OrderSystem PWA - Modern Warm Design
   ============================================== */

/* Root Variables - Warm Modern Palette */
:root {
    /* Primary colors - warm teal/blue */
    --primary: #2d8a9c;
    --primary-hover: #247a8a;
    --primary-light: #e8f4f6;

    /* Accent - warm coral/orange */
    --accent: #e8734a;
    --accent-hover: #d4623b;
    --accent-light: #fef3ef;

    /* Status colors */
    --success: #4caf7c;
    --success-light: #e8f5ed;
    --danger: #e25c5c;
    --danger-light: #fdeaea;
    --warning: #f5a623;
    --warning-light: #fef8eb;

    /* Neutral warm grays */
    --gray-50: #fafaf9;
    --gray-100: #f5f4f2;
    --gray-200: #e8e6e3;
    --gray-300: #d4d1cc;
    --gray-400: #a8a49d;
    --gray-500: #78746c;
    --gray-600: #5c5850;
    --gray-700: #3d3a35;
    --gray-800: #292723;
    --gray-900: #1a1917;

    /* Card backgrounds for alternating rows */
    --card-even: #ffffff;
    --card-odd: #faf9f7;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(145deg, #2d8a9c 0%, #247a8a 50%, #1d6a78 100%);
}

#app {
    height: 100%;
}

#blazor-error-ui {
    display: none !important;
}

/* ==============================================
   BlazorBootstrap Sidebar Layout
   ============================================== */
.bb-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bb-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 270px;
    transition: margin-left 0.3s ease;
}

.bb-main-full {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bb-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

/* Sidebar - Warm dark background */
.sidebar {
    background: linear-gradient(180deg, #2a3f4d 0%, #1f2f3a 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 270px !important;
}

.sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s ease;
}

.sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
}

.sidebar .nav-item .nav-link.active {
    background: linear-gradient(90deg, var(--accent), var(--accent-hover)) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Sidebar logout section */
.sidebar-logout-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 270px;
    padding: 0.75rem;
    background: #1a2830;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1040;
}

.sidebar-logout-btn {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.sidebar-logout-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
    .bb-main {
        margin-left: 0;
    }
    .sidebar-logout-section {
        display: none;
    }
}

/* ==============================================
   Content Area - Warm light background
   ============================================== */
.bb-content {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

/* ==============================================
   Cards - Modern styling with subtle shadows
   ============================================== */
.card {
    background: var(--card-even) !important;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1.25rem !important;
}

/* Ensure proper card body padding */
.card > .card-body {
    padding: 1.25rem !important;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

/* ==============================================
   Order Cards - Specific styling for order list
   ============================================== */
.card-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

/* ==============================================
   Custom Tabs (for Index page)
   ============================================== */
.tabs {
    display: flex;
    background: white;
    border-radius: 0.375rem;
    padding: 0.25rem;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
    border: 1px solid #e5e7eb;
}

.tab {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.25rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    background: #f3f4f6;
}

.tab.active {
    background: var(--primary);
    color: white;
}

/* ==============================================
   Badges - Modern pill style
   ============================================== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-draft,
.badge.bg-warning {
    background: var(--warning-light) !important;
    color: #b87a00 !important;
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.badge-sent,
.badge.bg-success {
    background: var(--success-light) !important;
    color: #2d7a4d !important;
    border: 1px solid rgba(76, 175, 124, 0.3);
}

.badge-historic,
.badge.bg-secondary {
    background: var(--gray-100) !important;
    color: var(--gray-600) !important;
    border: 1px solid var(--gray-200);
}

/* ==============================================
   Buttons - Modern styling with transitions
   ============================================== */
.btn {
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Primary button - warm teal */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 4px rgba(45, 138, 156, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1d6a78 100%) !important;
    box-shadow: 0 4px 8px rgba(45, 138, 156, 0.35);
}

/* Success button - warm green */
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #3d9568 100%) !important;
    border-color: var(--success) !important;
    box-shadow: 0 2px 4px rgba(76, 175, 124, 0.25);
}

.btn-success:hover {
    box-shadow: 0 4px 8px rgba(76, 175, 124, 0.35);
}

/* Danger button - warm red */
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c94d4d 100%) !important;
    border-color: var(--danger) !important;
    box-shadow: 0 2px 4px rgba(226, 92, 92, 0.25);
}

.btn-danger:hover {
    box-shadow: 0 4px 8px rgba(226, 92, 92, 0.35);
}

/* Consistent button sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

/* Outline buttons - maintain colors with stronger specificity */
.btn-outline-primary,
.btn.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

.btn-outline-secondary,
.btn.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background: transparent !important;
}

.btn-outline-secondary:hover,
.btn.btn-outline-secondary:hover {
    background: #6c757d !important;
    color: white !important;
}

.btn-outline-info,
.btn.btn-outline-info {
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    background: transparent !important;
}

.btn-outline-info:hover,
.btn.btn-outline-info:hover {
    background: #17a2b8 !important;
    color: white !important;
}

.btn-outline-danger,
.btn.btn-outline-danger {
    color: var(--danger) !important;
    border-color: var(--danger) !important;
    background: transparent !important;
}

.btn-outline-danger:hover,
.btn.btn-outline-danger:hover {
    background: var(--danger) !important;
    color: white !important;
}

.btn-outline-success,
.btn.btn-outline-success {
    color: var(--success) !important;
    border-color: var(--success) !important;
    background: transparent !important;
}

.btn-outline-success:hover,
.btn.btn-outline-success:hover {
    background: var(--success) !important;
    color: white !important;
}

.btn-outline-warning,
.btn.btn-outline-warning {
    color: #856404 !important;
    border-color: var(--warning) !important;
    background: transparent !important;
}

.btn-outline-warning:hover,
.btn.btn-outline-warning:hover {
    background: var(--warning) !important;
    color: #212529 !important;
}

/* Action buttons container - proper spacing */
.d-flex.flex-wrap.gap-2.pb-3,
.d-flex.gap-2,
.d-flex.gap-1 {
    margin-top: 1rem;
}

/* ==============================================
   Tabs/Pills - Proper styling
   ============================================== */
.nav-tabs, .nav-pills {
    background: white;
    padding: 0.25rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.nav-tabs .nav-link, .nav-pills .nav-link {
    color: #212529;
}

.nav-tabs .nav-link.active, .nav-pills .nav-link.active {
    background: var(--primary);
    color: white;
}

/* ==============================================
   Container - Zero padding for mobile
   ============================================== */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0.5rem;
}

.container.mt-4 {
    margin-top: 0 !important;
}

/* Keep spacing utilities working on mobile - don't override them */

/* ==============================================
   Page Header
   ============================================== */
.page-header {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title i {
    color: white;
}

.page-description {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.875rem;
}

/* ==============================================
   BlazorBootstrap Toast Styling - Modern & Warm
   ============================================== */
.toast-container {
    z-index: 100000 !important;
}

.toast {
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success Toast - Soft green gradient */
.toast.bg-success {
    background: linear-gradient(135deg, #56c596 0%, #3da878 100%) !important;
    color: white !important;
}

.toast.bg-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7ed9a8, #2d9a63);
}

/* Danger/Error Toast - Soft coral gradient */
.toast.bg-danger {
    background: linear-gradient(135deg, #f08a7d 0%, #e25c5c 100%) !important;
    color: white !important;
}

.toast.bg-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f7b0a6, #c94444);
}

/* Warning Toast - Warm amber gradient */
.toast.bg-warning {
    background: linear-gradient(135deg, #ffd479 0%, #f5a623 100%) !important;
    color: #5a4a1a !important;
}

.toast.bg-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffe5a8, #e09000);
}

/* Info Toast - Soft teal gradient */
.toast.bg-info {
    background: linear-gradient(135deg, #5bb5c5 0%, #2d8a9c 100%) !important;
    color: white !important;
}

.toast.bg-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8ed4e0, #1d6a78);
}

.toast .toast-header {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: inherit !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600;
}

.toast .toast-body {
    padding: 1rem !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

.toast .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast .btn-close:hover {
    opacity: 1;
}

.toast.bg-warning .btn-close {
    filter: none !important;
    opacity: 0.7;
}

/* ==============================================
   Login Page - Modern warm styling
   ============================================== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.login-card .card-body {
    padding: 2.5rem 2rem !important;
    position: relative;
}

.login-logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

/* ==============================================
   Form Validation (for Login page)
   ============================================== */
.form-group.has-error .form-control {
    border-color: var(--danger);
}

.validation-feedback {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-feedback:empty {
    display: none;
}

.input-wrapper {
    position: relative;
}

.validation-icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
}

/* ==============================================
   Loading States
   ============================================== */
.loading {
    text-align: center;
    padding: 2rem;
    color: white;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================================
   Mobile Optimizations (480px and below)
   ============================================== */
@media (max-width: 480px) {
    /* Content area - keep light background */
    .bb-content {
        padding: 0 !important;
        background: #f8f9fa;
    }

    /* Container - minimal padding */
    .container {
        padding: 0.25rem !important;
    }

    /* Cards - edge to edge but WHITE background */
    .card {
        background: white !important;
        border-radius: 0.25rem !important;
        margin-bottom: 0.75rem !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    /* Forms - full width inputs */
    .form-control,
    .form-select {
        border-radius: 4px;
    }

    /* Buttons - touch friendly */
    .btn {
        min-height: 44px;
    }

    /* Page header - minimal */
    .page-header {
        padding: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .page-description {
        font-size: 0.8rem;
    }

    /* Tabs on mobile */
    .nav-tabs, .nav-pills {
        border-radius: 0;
        margin: 0 0 2px 0;
    }

    /* Tables on mobile */
    .table-responsive {
        margin: 0;
        border-radius: 0;
    }

    /* Row gutters */
    .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    /* Toast positioning */
    .toast-container {
        left: 5px !important;
        right: 5px !important;
        top: 5px !important;
    }

    .toast {
        max-width: 100% !important;
    }
}

/* ==============================================
   General Mobile (768px and below)
   ============================================== */
@media (max-width: 768px) {
    .bb-content {
        padding: 0.25rem;
    }

    /* Ensure touch targets for buttons only - NOT checkboxes/radios */
    button:not(.btn-close), .btn {
        min-height: 44px;
    }

    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Normal checkbox/radio sizing */
    input[type="checkbox"],
    input[type="radio"] {
        min-height: auto;
        min-width: auto;
        width: 1rem;
        height: 1rem;
    }

    /* Bootstrap form-check styling */
    .form-check-input {
        width: 1em;
        height: 1em;
        min-height: auto;
        min-width: auto;
    }
}

/* ==============================================
   BlazorBootstrap Sidebar Styling
   ============================================== */
/* Sidebar brand/title - WHITE text */
.bb-sidebar .sidebar-brand,
.bb-sidebar .navbar-brand,
.sidebar .sidebar-brand,
.sidebar .navbar-brand,
.offcanvas .navbar-brand,
.offcanvas-title {
    color: white !important;
    font-weight: 600 !important;
}

/* Sidebar toggle button (burger menu) - clean single icon */
.bb-sidebar-toggler,
.navbar-toggler {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 0.4rem 0.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Navbar toggler icon - clean styling */
.navbar-toggler-icon {
    display: block !important;
    width: 1.5em !important;
    height: 1.5em !important;
    font-size: 1.25rem !important;
    /* Remove any background images - use only the Bootstrap Icon font */
    background-image: none !important;
    background: transparent !important;
}

/* When element has bi class, use the icon font only */
.navbar-toggler-icon.bi {
    color: white !important;
}

/* Ensure the bi-list icon shows white */
.navbar-toggler-icon.bi-list::before {
    color: white !important;
}

/* Toggle icon based on sidebar state */
/* When sidebar is expanded (aria-expanded="true"), show X icon */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon.bi-list::before {
    content: "\f62a" !important; /* bi-x */
}

/* When offcanvas is shown, also show X */
.offcanvas.show + .navbar-toggler .navbar-toggler-icon.bi-list::before,
.offcanvas.showing + .navbar-toggler .navbar-toggler-icon.bi-list::before {
    content: "\f62a" !important; /* bi-x */
}

/* Sidebar nav items - white text with proper padding and borders */
.bb-sidebar .nav-link,
.bb-sidebar .sidebar-link,
.bb-sidebar .nav-item a,
.offcanvas .nav-link,
.offcanvas .sidebar-link,
.offcanvas-body .nav-link {
    color: white !important;
    padding: 0.75rem 1rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 0.5rem !important;
}

/* Nav item container spacing */
.bb-sidebar .nav-item,
.offcanvas .nav-item,
.offcanvas-body .nav-item {
    margin-bottom: 0.25rem;
}

.bb-sidebar .nav-link:hover,
.bb-sidebar .sidebar-link:hover,
.offcanvas .nav-link:hover,
.offcanvas-body .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.bb-sidebar .nav-link.active,
.offcanvas .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-weight: 600;
}

/* Sidebar icons - white color */
.bb-sidebar .nav-link i,
.bb-sidebar .nav-link .bi,
.offcanvas .nav-link i,
.offcanvas .nav-link .bi,
.offcanvas-body i,
.offcanvas-body .bi {
    color: white !important;
}

/* Sidebar header/title - white text */
.bb-sidebar-title,
.bb-sidebar .sidebar-title,
.offcanvas-header,
.offcanvas-title {
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Offcanvas (mobile sidebar) - warm dark background */
.offcanvas,
.offcanvas-body {
    background: linear-gradient(180deg, #2a3f4d 0%, #1f2f3a 100%) !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem !important;
}

/* Close button in offcanvas - white */
.offcanvas .btn-close {
    filter: brightness(0) invert(1);
}

/* Sidebar badge (username) */
.bb-sidebar .badge,
.sidebar .badge {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ==============================================
   Definition List Styling (for Indstillinger page)
   ============================================== */
dl.row {
    margin-bottom: 0;
}

dl.row dt {
    font-weight: 600;
    color: #6c757d;
    padding-bottom: 0.5rem;
}

dl.row dd {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

dl.row dd:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

/* Card section headers */
.card h6 {
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
}

/* ==============================================
   Page Header Text - Dark on light content background
   ============================================== */
.bb-content h5.text-white,
.bb-content .text-white {
    color: #1a3a52 !important;
}

/* Header section styling */
.bb-content .d-flex.justify-content-between.align-items-center.py-2.mb-2 h5 {
    color: #1a3a52 !important;
}

.bb-content .d-flex.justify-content-between.align-items-center.py-2.mb-2 small {
    color: #6c757d !important;
}

/* ==============================================
   Order Cards - Even/Odd alternating colors
   ============================================== */
.order-card {
    border-left: 4px solid transparent;
    cursor: pointer;
}

.order-card-even {
    background: var(--card-even) !important;
    border-left-color: var(--primary);
}

.order-card-odd {
    background: var(--card-odd) !important;
    border-left-color: var(--accent);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.order-card h6.text-primary {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Subtle accent strip on hover */
.order-card-even:hover {
    border-left-color: var(--primary-hover);
}

.order-card-odd:hover {
    border-left-color: var(--accent-hover);
}

/* ==============================================
   Logout Nav Item - Special styling
   ============================================== */
.nav-logout,
a.nav-logout,
.nav-item .nav-logout {
    margin-top: auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ff6b6b !important;
}

.nav-logout:hover,
a.nav-logout:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    color: #ff4757 !important;
}

/* ==============================================
   Order Line Cards (Mobile) - Modern styling
   ============================================== */
.order-line-card {
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.order-line-card.order-card-even {
    background: var(--card-even);
    border-left-color: var(--primary);
}

.order-line-card.order-card-odd {
    background: var(--card-odd);
    border-left-color: var(--accent);
}

.order-line-card:hover {
    box-shadow: var(--shadow-md);
}

.order-line-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.order-line-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-line-number {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-line-varenr {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.order-line-varenavn {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.order-line-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.order-line-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-line-detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-line-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
}

.order-line-quantity {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200);
}

.order-line-quantity .form-control {
    font-weight: 600;
    text-align: center;
    max-width: 140px;
}

/* Delete button styling for order lines */
.order-line-delete {
    padding: 0.4rem 0.6rem !important;
    min-height: auto !important;
    border-radius: var(--radius-sm);
}

/* ==============================================
   Sending Overlay - Full screen loading indicator
   ============================================== */
.sending-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sending-content {
    text-align: center;
    padding: 2rem;
}

.sending-content p {
    font-size: 1.25rem;
    font-weight: 600;
}

.sending-content small {
    font-size: 0.9rem;
}

/* ==============================================
   Utility Classes
   ============================================== */
.text-white {
    color: white !important;
}

.bg-transparent {
    background: transparent !important;
}
