:root {
    /* ===== TYPOGRAPHY SYSTEM ===== */
    --font-base: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-color: #1e1e1e;

    /* Font Sizes */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* ===== COLOR SYSTEM ===== */
    /* Primary Brand Colors */
    --color-blue-primary: #4C739F;   /* main action blue */
    --color-blue-dark: #3A5A7C;      /* hover/active state */
    --color-blue-light: #A9C4E0;     /* light accents */
    --color-grey: #858D9A;           /* ComplyEur secondary grey */

    /* Semantic Colors */
    --color-success: #16A34A;        /* green for OK/success */
    --color-danger: #DC2626;         /* red for errors/violations */
    --color-warning: #F59E0B;        /* amber for warnings */
    --color-info: #3B82F6;          /* blue for information */

    /* Text Colors */
    --color-text: #1E1E1E;           /* primary text */
    --color-text-primary: #1E1E1E;   /* primary text */
    --color-text-secondary: #6B7280; /* secondary text */
    --color-text-tertiary: #9CA3AF;  /* tertiary text, placeholders */

    /* Background Colors */
    --color-background: #FFFFFF;     /* main background */
    --color-background-alt: #F7F7F7; /* alternate background */
    --base-bg: #FFFFFF;              /* base background (legacy compat) */
    --color-surface: #FFFFFF;        /* card/surface background */

    /* Border Colors */
    --color-border: #E5E7EB;        /* default border color */

    /* Back-compat mapping for existing theme tokens */
    --color-blue: var(--color-blue-primary);
    
    /* Icon system variables */
    --icon-size-sm: 16px;
    --icon-size-md: 20px;
    --icon-size-lg: 24px;
    --icon-size-xl: 32px;
    
    --icon-color-primary: #4C739F;
    --icon-color-secondary: #6b7280;
    --icon-color-success: #16a34a;
    --icon-color-warning: #f59e0b;
    --icon-color-danger: #dc2626;
    --icon-color-muted: #9ca3af;
    
    /* Status color system - standardized across all components */
    --status-safe: #16a34a;
    --status-safe-bg: #d1fae5;
    --status-safe-text: #065f46;
    
    --status-warning: #f59e0b;
    --status-warning-bg: #fef3c7;
    --status-warning-text: #92400e;
    
    --status-danger: #dc2626;
    --status-danger-bg: #fee2e2;
    --status-danger-text: #991b1b;
    
    --status-info: #3b82f6;
    --status-info-bg: #dbeafe;
    --status-info-text: #1e40af;
    
    /* Risk level colors for compliance tracking */
    --risk-green: #16a34a;
    --risk-amber: #f59e0b;
    --risk-red: #dc2626;

    /* ===== SPACING SYSTEM (4px base unit) ===== */
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-10: 40px;
    --spacing-12: 48px;
    --spacing-16: 64px;
    --spacing-20: 80px;
    --spacing-24: 96px;
    --spacing-32: 128px;

    /* ===== BORDER RADIUS SYSTEM ===== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ===== SHADOW SYSTEM ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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-focus: 0 0 0 3px rgba(76, 115, 159, 0.2);

    /* ===== TRANSITION SYSTEM ===== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Admin-specific colors (Phase 3) */
    --color-admin-purple: #7C3AED;
    --color-admin-purple-light: #EDE9FE;
    --color-admin-purple-dark: #6D28D9;
}

body {
    font-family: var(--font-base);
    font-weight: 400;
    color: var(--font-color);
    line-height: 1.5;
    letter-spacing: 0.01em;
    background-color: var(--color-background);
}

h1, h2, h3 {
    font-weight: 600;
}

h4, h5, h6 {
    font-weight: 500;
}

p, td, li, button, input, label {
    font-weight: 400;
    font-family: var(--font-base);
}

/* Ensure framework resets are overridden if present */
html, body, button, input, select, textarea, table, th, td {
    font-family: var(--font-base);
    color: var(--font-color);
}

/* Inherit for headings and common UI components */
.card, .btn, .form-input, .form-label, .table, .sidebar, .topbar, .content-title {
    font-family: var(--font-base);
}

/* ComplyEur brand colors applied globally */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-grey);
}

button, .btn {
    color: var(--color-background);
    background-color: var(--color-blue);
    border: none;
    transition: background-color 0.2s ease;
}

button:hover, .btn:hover {
    background-color: var(--color-blue-light);
}

.card, .panel, .container {
    background-color: var(--color-surface);
    border: 1px solid var(--color-grey);
}

hr, .divider {
    border-color: var(--color-grey);
}

input, select, textarea {
    border: 1px solid var(--color-grey);
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Ensure dropdown input matches other form inputs */
.dropdown-input {
    border: 1px solid var(--color-grey);
    border-radius: 4px;
}

/* Ensure select elements have same border as text inputs */
select.form-input {
    border: 1px solid var(--color-grey) !important;
    border-radius: 4px;
}

/* Map existing theme variables to brand tokens so all components inherit */
:root {
    --text-primary: var(--color-text);
    --text-secondary: var(--color-grey);
    --border-color: var(--color-grey);
    --card-bg: var(--color-surface);
}

/* ===== SEARCH BAR STYLES ===== */

/* Search Container */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding-right: 80px; /* Space for clear button and loading indicator */
}

/* Clear Button */
.search-clear {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
    z-index: 10;
}

.search-clear:hover {
    color: #6b7280;
    background-color: #f3f4f6;
}

/* Loading Indicator */
.search-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.search-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--base-bg);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    animation: dropdownFadeIn 0.15s ease-out;
}

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

/* Search Dropdown Item */
.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
    background-color: #f9fafb;
}

.search-dropdown-item.selected {
    background-color: #eff6ff;
}

/* Search Result Icon */
.search-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f3f4f6;
    border-radius: 50%;
    flex-shrink: 0;
}

.search-result-icon svg {
    color: #6b7280;
}

/* Search Result Content */
.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Highlighted Text */
.search-result-name mark,
.search-dropdown mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* Empty State */
.search-dropdown-empty {
    padding: 32px 16px;
    text-align: center;
    color: #9ca3af;
}

.search-dropdown-empty svg {
    margin: 0 auto 12px;
    color: #d1d5db;
}

.search-dropdown-empty p {
    margin: 0;
    font-size: 14px;
}

/* Scrollbar Styling */
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-bar {
        width: 100%;
    }
    
    .search-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .employee-search-container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Focus styles */
.search-bar input:focus {
    outline: none;
    border-color: var(--color-blue-primary);
    box-shadow: 0 0 0 3px rgba(76, 115, 159, 0.1);
}

/* Tutorial Modal Styles */
.tutorial-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.7) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tutorial-modal-content {
    background: #F2F3F5 !important;
    border-radius: 12px !important;
    padding: 32px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    border: 2px solid var(--color-blue-primary) !important;
    margin: 20px !important;
    position: relative !important;
    transform: none !important;
}

/* Employee checkbox hover effect */
.employee-checkbox:hover {
    border-color: var(--color-blue-primary);
    background-color: #f9fafb;
}

.employee-checkbox input:checked ~ span {
    color: var(--color-blue-primary);
}

/* Standardized Component Library - EU Trip Tracker */

/* ===== BUTTON COMPONENTS ===== */

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
    min-height: 40px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button variants */
.btn-primary {
    background-color: var(--color-blue-primary);
    color: white;
    border: 1px solid var(--color-blue-primary);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-blue-dark);
    border-color: var(--color-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 115, 159, 0.2);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    border: 1px solid #6b7280;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #4b5563;
    border-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.2);
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
    border: 1px solid var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(209, 67, 67, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-blue-primary);
    border: 1px solid var(--color-blue-primary);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--color-blue-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 115, 159, 0.2);
}

.btn-success {
    background-color: var(--color-success);
    color: white;
    border: 1px solid var(--color-success);
}

.btn-success:hover:not(:disabled) {
    background-color: #15803d;
    border-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.2);
}

/* Button sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    min-height: 48px;
}

/* Button with loading state */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== FORM COMPONENTS ===== */

/* Form group container */
.form-group {
    margin-bottom: 20px;
}

/* Form labels */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.form-label.required::after {
    content: ' *';
    color: var(--color-danger);
    font-weight: 600;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-base);
    background-color: var(--base-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
    min-height: 40px;
}

/* Ensure native file inputs are clearly interactive and clickable across browsers */
.form-input[type="file"] {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-blue-primary);
    box-shadow: 0 0 0 3px rgba(76, 115, 159, 0.1);
}

.form-input:invalid {
    border-color: var(--color-danger);
}

.form-input:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Form select */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-base);
    background-color: var(--base-bg);
    color: var(--text-primary);
    cursor: pointer;
    min-height: 40px;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-blue-primary);
    box-shadow: 0 0 0 3px rgba(76, 115, 159, 0.1);
}

/* Form hints and errors */
.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 4px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error::before {
    content: '⚠';
    font-size: 14px;
}

/* Form validation states */
.form-group.error .form-input,
.form-group.error .form-select {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.1);
}

.form-group.success .form-input,
.form-group.success .form-select {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* ===== CARD COMPONENTS ===== */

.card {
    background-color: var(--base-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: visible;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== MODAL COMPONENTS ===== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background-color: var(--base-bg);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

/* ===== BADGE/STATUS COMPONENTS ===== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-neutral {
    background-color: #f3f4f6;
    color: #374151;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.status-safe {
    background-color: #d1fae5;
    color: #065f46;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ===== LOADING COMPONENTS ===== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--color-blue-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.sm {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
}

.loading-spinner.lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-blue-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== NOTIFICATION COMPONENTS ===== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--color-success);
}

.notification-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--color-danger);
}

.notification-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.notification-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--color-blue-primary);
}

/* ===== TOOLTIP COMPONENTS ===== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    cursor: help;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-secondary);
}

.tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* ===== STATUS BADGE COMPONENTS ===== */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.status-badge-safe {
    background: var(--status-safe-bg);
    color: var(--status-safe-text);
    border-left: 4px solid var(--status-safe);
}

.status-badge-warning {
    background: var(--status-warning-bg);
    color: var(--status-warning-text);
    border-left: 4px solid var(--status-warning);
}

.status-badge-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger-text);
    border-left: 4px solid var(--status-danger);
}

.status-badge-info {
    background: var(--status-info-bg);
    color: var(--status-info-text);
    border-left: 4px solid var(--status-info);
}

/* Status text colors */
.text-status-safe { color: var(--status-safe); }
.text-status-warning { color: var(--status-warning); }
.text-status-danger { color: var(--status-danger); }
.text-status-info { color: var(--status-info); }

/* Status background colors */
.bg-status-safe { background: var(--status-safe-bg); }
.bg-status-warning { background: var(--status-warning-bg); }
.bg-status-danger { background: var(--status-danger-bg); }
.bg-status-info { background: var(--status-info-bg); }

/* ===== SKELETON LOADERS ===== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-button {
    height: 40px;
    width: 120px;
}

.skeleton-card {
    padding: 16px;
    border-radius: 8px;
}

/* ===== SCREEN READER ONLY ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== CARD VARIANTS ===== */

.card-danger {
    border: 2px solid var(--status-danger);
    background: linear-gradient(135deg, var(--status-danger-bg) 0%, #fee2e2 100%);
    margin-bottom: 24px;
}

.card-danger .card-header {
    background: var(--status-danger);
    color: white;
}

.card-danger .card-title {
    color: white;
}

.card-warning {
    border: 2px solid var(--status-warning);
    background: linear-gradient(135deg, var(--status-warning-bg) 0%, #fef3c7 100%);
    margin-bottom: 24px;
}

.card-warning .card-header {
    background: var(--status-warning);
    color: white;
}

.card-info {
    border: 2px solid var(--status-info);
    background: linear-gradient(135deg, var(--status-info-bg) 0%, #dbeafe 100%);
    margin-bottom: 24px;
}

/* ===== FORM HINTS ===== */

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: var(--status-danger);
}

.form-input.is-invalid ~ .invalid-feedback,
.form-input:invalid ~ .invalid-feedback {
    display: block;
}

.form-input.is-invalid {
    border-color: var(--status-danger);
}

.form-input.is-valid {
    border-color: var(--status-safe);
}

/* ===== LAYOUT UTILITIES ===== */

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-align-center {
    align-items: center;
}

.flex-justify-between {
    justify-content: space-between;
}

.flex-justify-end {
    justify-content: flex-end;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mt-8 {
    margin-top: 8px;
}

.mb-8 {
    margin-bottom: 8px;
}

.gap-24 {
    gap: 24px;
}

.grid {
    display: grid;
}

.font-weight-semibold {
    font-weight: 600;
}

/* ===== UTILITY CLASSES ===== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: #f59e0b; }

.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ===== COMPLIANCE SUMMARY COMPONENTS ===== */

.compliance-summary {
    position: relative;
    overflow: hidden;
}

.compliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.compliance-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.compliance-value {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.compliance-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
}

/* ===== RECENT ACTIONS COMPONENTS ===== */

.recent-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-action-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--color-blue-primary);
    transition: all 0.2s ease;
}

.recent-action-item:hover {
    background-color: #f3f4f6;
    transform: translateX(2px);
}

.recent-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--color-blue-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.recent-action-content {
    flex: 1;
    min-width: 0;
}

.recent-action-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.recent-action-details {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.recent-action-time {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* ===== BREADCRUMB COMPONENTS ===== */

.breadcrumb-nav {
    padding: 12px 24px;
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--color-blue-primary);
    background-color: rgba(76, 115, 159, 0.1);
}

.breadcrumb-item:last-child .breadcrumb-link {
    color: var(--text-primary);
    font-weight: 500;
    cursor: default;
}

.breadcrumb-item:last-child .breadcrumb-link:hover {
    background-color: transparent;
}

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

@media (max-width: 768px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .breadcrumb-nav {
        padding: 8px 16px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-link {
        padding: 2px 4px;
    }
}
/* HubSpot Style Dashboard CSS */
/* Removed Google Fonts import; using system Helvetica Neue stack */

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

:root {
    --hubspot-bg: var(--base-bg, #F2F3F5);
    --hubspot-sidebar: #1e293b;
    --hubspot-orange: var(--color-blue-primary); /* repurpose orange as ComplyEur blue */
    --hubspot-blue: var(--color-blue-primary);
    --text-primary: var(--color-text, #1f2937);
    --text-secondary: var(--color-grey, #6b7280);
    --border-color: var(--color-grey, #e5e7eb);
    --card-bg: var(--base-bg, #F2F3F5);
    --hover-bg: #f9fafb;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #1e1e1e;
    line-height: 1.5;
    letter-spacing: 0.01em;
    background-color: var(--hubspot-bg);
    /* Allow horizontal scrolling on pages that need it (calendar). A stricter
       overflow-x rule here was clipping horizontal scroll in the main content.
       Individual components can still control their own overflow. */
    overflow-x: visible;
}

/* Typography hierarchy */
h1, h2, h3 { font-weight: 600; }
h4, h5, h6 { font-weight: 500; }
p, td, li, button, input, label { font-weight: 400; }

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Enterprise Level Design */
.sidebar {
    background-color: #3182ce; /* Primary blue */
    background-image: url('../images/sideBarImageEurope.jpg?v=2'); /* Fixed path with cache buster */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    width: 250px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden; /* delegate scroll to .sidebar-nav */
    overscroll-behavior: contain;
}

/* Overlay to make background subtle */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(49, 130, 206, 0.8); /* Stronger blue overlay for better text readability */
    z-index: 1;
}

/* Ensure all sidebar content appears above the overlay */
.sidebar > * {
    position: relative;
    z-index: 2;
}

.sidebar.collapsed {
    width: 64px;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.brand-link:hover {
    opacity: 0.9;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sidebar-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS/macOS */
    overscroll-behavior: contain;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin: 0 16px 4px;
    font-size: 14px;
    border: none;
    background: none;
    cursor: pointer;
    width: calc(100% - 32px);
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-item:hover {
    background-color: #3E4A52;
}

.nav-item.active {
    background-color: rgba(255,255,255,0.15);
}

.icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-divider {
    margin: 16px 0 8px 0;
    padding: 0 24px;
}

.nav-section-label {
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sidebar.collapsed .sidebar-header {
    padding: 16px 8px;
    align-items: center;
}

.sidebar.collapsed .brand-link {
    align-items: center;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    position: static;
    margin-top: 8px;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 8px;
    margin: 0 8px 4px;
    width: calc(100% - 16px);
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-divider {
    display: none;
}

/* User Info Card Section */
.sidebar-user-section {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.sidebar-user-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sidebar-user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sidebar-user-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.sidebar-user-card:hover .sidebar-user-arrow {
    color: rgba(255, 255, 255, 0.9);
}

/* Collapsed state for user card */
.sidebar.collapsed .sidebar-user-section {
    padding: 16px 8px;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .sidebar-user-card {
    justify-content: center;
    padding: 8px;
    width: 48px;
    height: 48px;
}

.sidebar.collapsed .sidebar-user-info {
    display: none;
}

.sidebar.collapsed .sidebar-user-arrow {
    display: none;
}

.sidebar.collapsed .sidebar-user-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    pointer-events: none; /* don't block clicks when hidden */
}

.mobile-overlay.active {
    display: block;
    pointer-events: auto; /* only capture clicks when active */
}

/* Top Bar */
.topbar {
    background-color: var(--base-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-menu-btn:hover {
    background-color: var(--hover-bg);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    width: 300px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    padding: 4px 8px;
    font-size: 14px;
}

.search-bar .search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.user-menu {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.user-menu:hover,
.user-menu:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.16);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #eff3ff 100%);
}

.user-menu:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12) inset;
}

.user-menu::after {
    display: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.user-menu-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.user-menu[aria-expanded="true"] .user-menu-chevron {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    border-radius: 14px;
    padding: 10px 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
    min-width: 220px;
    list-style: none;
}

.user-menu-dropdown .dropdown-item {
    font-size: 14px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.user-menu-dropdown .dropdown-item:hover,
.user-menu-dropdown .dropdown-item:focus {
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
}

.user-menu-dropdown .dropdown-divider {
    opacity: 0.4;
    margin: 6px 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 256px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    overscroll-behavior: contain;
    overflow-x: visible; /* allow horizontal scrolling within nested containers */
}

.main-content.sidebar-collapsed {
    margin-left: 64px;
}

.content-header {
    background-color: var(--base-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
}

.content-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.content-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.content-body {
    padding: 24px;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-blue-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-blue-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-blue-primary);
    color: var(--color-blue-primary);
}

.btn-outline:hover {
    background-color: var(--color-blue-dark);
    color: #ffffff;
}

.btn-success {
    background-color: var(--color-success);
    color: white;
}

.btn-success:hover {
    background-color: #12863d;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background-color: var(--base-bg);
}

.form-input:focus {
    outline: none;
    border-color: var(--hubspot-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-inline {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-inline .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.form-inline .form-group .form-hint {
    margin-top: 4px;
    min-height: 16px; /* Ensure consistent height for alignment */
}

/* Button container alignment */
.form-group-buttons {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.form-buttons-container {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Tables */
.table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--hover-bg);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.table tbody tr:hover {
    background-color: var(--hover-bg);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-safe {
    background-color: #dcfce7;
    color: #166534;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Progress bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Login page specific */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3182ce; /* Primary blue */
    background-image: url('../images/sideBarImageEurope.jpg?v=2'); /* Same image as sidebar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    position: relative;
}

/* Overlay to make background subtle */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(49, 130, 206, 0.8); /* Stronger blue overlay for better text readability */
    z-index: 1;
}

/* Ensure all login content appears above the overlay */
.login-page > * {
    position: relative;
    z-index: 2;
}

/* Login Navigation */
.login-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.login-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-blue-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 115, 159, 0.2);
}

.login-nav-link:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--color-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 115, 159, 0.15);
}

.login-nav-link svg {
    flex-shrink: 0;
}

.login-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 16px;
}

.login-logo img {
    max-width: 180px;
    height: auto;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-blue-primary);
    text-align: center;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
}

.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        z-index: 1001;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }
    
    .user-menu {
        padding: 5px 10px;
        gap: 8px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .user-role {
        display: none;
    }
    
    .sidebar-title {
        font-size: 0.8rem;
    }
    
    .sidebar-user-section {
        padding: 12px 20px;
    }
    
    .sidebar-user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .sidebar-user-name {
        font-size: 13px;
    }
    
    .sidebar-user-role {
        font-size: 11px;
    }
    
    .nav-item {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .icon {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .content-body {
        padding: 12px 8px;
    }
    
    .card {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inline .form-group {
        min-width: auto;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .mobile-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        margin: 0 -8px;
        padding: 0 8px;
    }
    
    .mobile-scroll-hint {
        display: block !important;
    }
    
    .table {
        font-size: 12px;
        min-width: 600px; /* Ensure minimum width for horizontal scroll */
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Touch-friendly table scrolling on mobile */
    .mobile-table-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    
    .mobile-table-wrapper::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    
    .mobile-table-wrapper::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    
    .mobile-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    .modal-content {
        padding: 20px;
        margin: 12px;
    }
    
    /* Hide Help text on mobile, show only icon */
    .help-text {
        display: none;
    }
    
    .topbar-right .btn-outline {
        padding: 8px !important;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .content-subtitle {
        font-size: 14px;
    }
    
    /* Make buttons wrap on mobile */
    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .card-header h2 {
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .sidebar {
        width: 200px;
    }
    
    .sidebar-user-section {
        padding: 10px 16px;
    }
    
    .sidebar-user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .sidebar-user-name {
        font-size: 12px;
    }
    
    .sidebar-user-role {
        font-size: 10px;
    }
    
    .table {
        font-size: 11px;
    }
    
    .table th,
    .table td {
        padding: 6px 4px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .card {
        padding: 10px;
    }
    
    .content-body {
        padding: 8px 4px;
    }
    
    footer {
        margin-bottom: 60px !important; /* Account for mobile browser UI */
    }
    
    /* Hide table view on very small screens, force card view */
    #tableView {
        display: none !important;
    }
    
    #cardView {
        display: grid !important;
    }
    
    #tableBtn, #cardsBtn {
        display: none !important;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Hide view toggle buttons on mobile */
@media (max-width: 768px) {
    #tableBtn, #cardsBtn {
        display: none !important;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }

/* ===========================================
   PHASE 1 USABILITY FIXES - ENHANCED STYLES
   =========================================== */

/* 1. STANDARDIZED BUTTON SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
    min-height: 40px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px;
}

/* 2. ENHANCED FORM COMPONENTS */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    line-height: 1.4;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
    font-weight: 600;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error, .form-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:disabled, .form-select:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.3;
}

.form-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error::before {
    content: '⚠';
    font-size: 14px;
}

/* 3. ALERT/NOTIFICATION SYSTEM */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-dismiss {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-dismiss:hover {
    opacity: 1;
}

/* 4. ENHANCED MODAL SYSTEM */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-body {
    padding: 0 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 5. PROGRESS INDICATORS */
.progress-container {
    width: 100%;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
    margin: 12px 0;
}

.progress-bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 8px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progressIndeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

@keyframes progressDots {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* 6. ENHANCED TOOLTIP SYSTEM */
.tooltip {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip.show {
    opacity: 1;
}

.tooltip-enhanced {
    padding: 0;
    max-width: 350px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 600;
}

.tooltip-content {
    padding: 12px 16px 16px 16px;
    line-height: 1.5;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
}

/* Help icon styles */
.help-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-icon:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.help-icon:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Form field help positioning */
.form-group {
    position: relative;
}

.form-group .form-input,
.form-group .form-select {
    padding-right: 40px; /* Make room for help icon */
}

/* 7. ENHANCED TABLE STYLING */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #1f2937;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Sortable table headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
}

.sortable:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.sort-arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sort-arrow.active {
    color: #3b82f6;
    font-weight: bold;
    transform: scale(1.2);
}

.sortable:hover .sort-arrow {
    color: #3b82f6;
}

/* Table container for responsive scrolling */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 7. STANDARDIZED MODAL SYSTEM */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Modal overlay for confirmation dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Settings Panel Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.setting-group {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.setting-group h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.setting-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Theme and Color Scheme Support */
[data-theme="dark"] {
    --hubspot-bg: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --card-bg: #374151;
    --hover-bg: #4b5563;
}

[data-color-scheme="high-contrast"] {
    --hubspot-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
    --card-bg: #ffffff;
    --hover-bg: #f0f0f0;
}

[data-color-scheme="colorblind-friendly"] {
    --hubspot-orange: #1f77b4;
    --hubspot-blue: #ff7f0e;
}

/* Compact Mode */
.compact-mode .table th,
.compact-mode .table td {
    padding: 8px 12px;
    font-size: 13px;
}

.compact-mode .card {
    padding: 12px;
}

.compact-mode .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.compact-mode .form-input,
.compact-mode .form-select {
    padding: 8px 12px;
    font-size: 13px;
}

/* No Animations */
.no-animations * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* Filter Panel Styles */
.filter-panel {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    margin-top: 16px;
    display: none;
}

.filter-panel.active {
    display: block;
}

/* Results Count Display */
#resultsCount {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 6px;
    font-size: 14px;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* 8. STATUS BADGES */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-safe {
    background: #d1fae5;
    color: #065f46;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}
.country-header {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.country-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
  filter: brightness(90%);
  transition: transform 0.35s ease-in-out, filter 0.35s ease-in-out;
}

.country-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.00) 20%, rgba(0,0,0,0.45) 85%);
  pointer-events: none;
}

.country-meta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.country-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.country-subtitle {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.country-header:hover .country-image {
  transform: scale(1.02);
  filter: brightness(100%);
}


/**
 * EU Trip Tracker - Phase 3 Visual Enhancements
 * Comprehensive design system with consistent iconography and improved aesthetics
 */

/* ==========================================================================
   ICON SYSTEM
   ========================================================================== */

/* Icon system variables moved to :root for global access */

.icon {
    display: inline-block;
    width: var(--icon-size-sm);
    height: var(--icon-size-sm);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

.icon-sm { width: var(--icon-size-sm); height: var(--icon-size-sm); }
.icon-lg { width: var(--icon-size-lg); height: var(--icon-size-lg); }
.icon-xl { width: var(--icon-size-xl); height: var(--icon-size-xl); }

.icon-primary { color: var(--icon-color-primary); }
.icon-secondary { color: var(--icon-color-secondary); }
.icon-success { color: var(--icon-color-success); }
.icon-warning { color: var(--icon-color-warning); }
.icon-danger { color: var(--icon-color-danger); }
.icon-muted { color: var(--icon-color-muted); }

/* Icon animations */
.icon-spin {
    animation: icon-spin 1s linear infinite;
}

.icon-pulse {
    animation: icon-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.icon-bounce {
    animation: icon-bounce 1s infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes icon-bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0, -8px, 0); }
    70% { transform: translate3d(0, -4px, 0); }
    90% { transform: translate3d(0, -2px, 0); }
}

/* ==========================================================================
   ENHANCED BUTTON SYSTEM
   ========================================================================== */

.btn-enhanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-enhanced:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 115, 159, 0.25);
}

/* Button variants */
.btn-primary-enhanced {
    color: white;
    background: linear-gradient(135deg, #4C739F 0%, #5B6C8F 100%);
    border-color: #4C739F;
    box-shadow: 0 2px 4px rgba(76, 115, 159, 0.2);
}

.btn-primary-enhanced:hover {
    background: linear-gradient(135deg, #5B6C8F 0%, #4C739F 100%);
    box-shadow: 0 4px 8px rgba(76, 115, 159, 0.3);
    transform: translateY(-1px);
}

.btn-secondary-enhanced {
    color: #374151;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.btn-secondary-enhanced:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-success-enhanced {
    color: white;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-color: #16a34a;
}

.btn-success-enhanced:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    transform: translateY(-1px);
}

.btn-warning-enhanced {
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
}

.btn-warning-enhanced:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    transform: translateY(-1px);
}

.btn-danger-enhanced {
    color: white;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
}

.btn-danger-enhanced:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-1px);
}

/* Button sizes */
.btn-sm-enhanced {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg-enhanced {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-xl-enhanced {
    padding: 18px 36px;
    font-size: 18px;
}

/* ==========================================================================
   ENHANCED CARD SYSTEM
   ========================================================================== */

.card-enhanced {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: white;
    background-clip: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-enhanced:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-enhanced-header {
    padding: 20px 24px 16px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
}

.card-enhanced-body {
    flex: 1 1 auto;
    padding: 24px;
}

.card-enhanced-footer {
    padding: 16px 24px 20px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

/* Card variants */
.card-primary {
    border-color: #4C739F;
    box-shadow: 0 1px 3px rgba(76, 115, 159, 0.2);
}

.card-primary .card-enhanced-header {
    background: linear-gradient(135deg, #4C739F 0%, #5B6C8F 100%);
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.card-success {
    border-color: #16a34a;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.2);
}

.card-warning {
    border-color: #f59e0b;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.card-danger {
    border-color: #dc2626;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

/* ==========================================================================
   ENHANCED FORM SYSTEM
   ========================================================================== */

.form-group-enhanced {
    margin-bottom: 20px;
}

.form-label-enhanced {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input-enhanced {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
    background-color: white;
    background-clip: padding-box;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-input-enhanced:focus {
    color: #1f2937;
    background-color: white;
    border-color: #4C739F;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(76, 115, 159, 0.1);
}

.form-input-enhanced::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-input-enhanced:disabled {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Form validation states */
.form-input-enhanced.is-valid {
    border-color: #16a34a;
}

.form-input-enhanced.is-invalid {
    border-color: #dc2626;
}

.form-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
}

.form-feedback.valid-feedback {
    color: #16a34a;
}

.form-feedback.invalid-feedback {
    color: #dc2626;
}

/* ==========================================================================
   ENHANCED TABLE SYSTEM
   ========================================================================== */

.table-enhanced {
    width: 100%;
    margin-bottom: 1rem;
    color: #374151;
    background-color: transparent;
    border-collapse: collapse;
}

.table-enhanced th,
.table-enhanced td {
    padding: 16px;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

.table-enhanced thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e5e7eb;
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-enhanced tbody tr:hover {
    background-color: #f9fafb;
}

.table-enhanced tbody tr:last-child td {
    border-bottom: 0;
}

/* Table variants */
.table-striped-enhanced tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered-enhanced {
    border: 1px solid #e5e7eb;
}

.table-bordered-enhanced th,
.table-bordered-enhanced td {
    border: 1px solid #e5e7eb;
}

.table-hover-enhanced tbody tr:hover {
    background-color: #f0f9ff;
}

/* ==========================================================================
   ENHANCED STATUS INDICATORS
   ========================================================================== */

.status-indicator-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator-enhanced::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-safe {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-safe::before {
    background-color: #16a34a;
}

.status-caution {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-caution::before {
    background-color: #f59e0b;
}

.status-danger {
    background-color: #fecaca;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-danger::before {
    background-color: #dc2626;
}

.status-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-info::before {
    background-color: #3b82f6;
}

/* ==========================================================================
   ENHANCED LOADING STATES
   ========================================================================== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #4C739F;
    animation: spin 1s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 10px;
}

.loading-dots div {
    position: absolute;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4C739F;
    animation: loading-dots 1.4s infinite ease-in-out both;
}

.loading-dots div:nth-child(1) { left: 0; animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { left: 16px; animation-delay: -0.16s; }
.loading-dots div:nth-child(3) { left: 32px; animation-delay: 0s; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loading-dots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   ENHANCED MODAL SYSTEM
   ========================================================================== */

.modal-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: modal-fade-in 0.3s ease-out;
}

.modal-enhanced-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem;
    pointer-events: none;
    animation: modal-slide-in 0.3s ease-out;
}

.modal-enhanced-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: white;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    outline: 0;
}

.modal-enhanced-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
}

.modal-enhanced-title {
    margin: 0;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-enhanced-body {
    position: relative;
    flex: 1 1 auto;
    padding: 24px;
}

.modal-enhanced-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-slide-in {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   ENHANCED TOOLTIP SYSTEM
   ========================================================================== */

.tooltip-enhanced {
    position: relative;
    display: inline-block;
}

.tooltip-enhanced .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.tooltip-enhanced .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip-enhanced:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Tooltip positions */
.tooltip-enhanced.tooltip-top .tooltip-content {
    bottom: 125%;
    top: auto;
}

.tooltip-enhanced.tooltip-bottom .tooltip-content {
    top: 125%;
    bottom: auto;
}

.tooltip-enhanced.tooltip-bottom .tooltip-content::after {
    top: -5px;
    border-color: transparent transparent #1f2937 transparent;
}

.tooltip-enhanced.tooltip-left .tooltip-content {
    right: 125%;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-enhanced.tooltip-right .tooltip-content {
    left: 125%;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
}

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

.fade-in {
    animation: fade-in 0.5s ease-out;
}

.slide-in-up {
    animation: slide-in-up 0.5s ease-out;
}

.slide-in-down {
    animation: slide-in-down 0.5s ease-out;
}

.slide-in-left {
    animation: slide-in-left 0.5s ease-out;
}

.slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

.scale-in {
    animation: scale-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slide-in-left {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE ENHANCEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .btn-enhanced {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .card-enhanced-body {
        padding: 16px;
    }
    
    .table-enhanced th,
    .table-enhanced td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .modal-enhanced-dialog {
        margin: 0.5rem;
    }
    
    .modal-enhanced-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .btn-enhanced {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .card-enhanced-body {
        padding: 12px;
    }
    
    .table-enhanced th,
    .table-enhanced td {
        padding: 8px 4px;
        font-size: 12px;
    }
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid #4C739F;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-enhanced {
        border-width: 2px;
    }
    
    .btn-enhanced {
        border-width: 2px;
    }
    
    .form-input-enhanced {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Footer Styles */
#footer {
    background: #f9fafb;
    color: #333;
    text-align: center;
    font-size: 14px;
    padding: 12px 0;
    border-top: 1px solid #ddd;
    position: relative;
    width: 100%;
    margin-top: auto;
}

#footer p {
    margin: 0 0 4px 0;
}

#footer a {
    color: #4C739F;
    text-decoration: none;
    margin: 0 4px;
}

#footer a:hover {
    text-decoration: underline;
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.6s ease-in-out;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

#cookie-banner p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    margin-left: 8px;
    background: #00b37e;
    border: none;
    padding: 6px 12px;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.cookie-btn:hover {
    background: #00956c;
}

.cookie-btn:active {
    transform: scale(0.98);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    #cookie-banner p {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        margin-left: 0;
        width: 100%;
        max-width: 200px;
    }
    
    #footer {
        font-size: 12px;
        padding: 10px 0;
    }
    
    #footer a {
        display: inline-block;
        margin: 2px 4px;
    }
}

