:root {
    /* PRIMARY COLORS - Lys skyblå */
    --primary: #63B4FF;
    --primary-hover: #4BA5F7;
    --primary-dark: #1F7FD1;
    
    /* SECONDARY COLORS */
    --secondary: #F3F6FA;
    --secondary-border: #DDE4EE;
    
    /* BACKGROUNDS */
    --bg-white: #FFFFFF;
    --bg-muted: #F9FBFD;
    --bg-light: #F3F6FA;
    
    /* TEXT COLORS */
    --text-primary: #1A1A1A;
    --text-secondary: #606A7A;
    
    /* STATUS COLORS */
    --success: #4CAF50;
    --error: #E53935;
    --warning: #FFB300;
    
    /* SPACING UNITS */
    --spacing-xs: 4px;
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* SHADOWS */
    --shadow-sm: 0px 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0px 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0px 8px 24px rgba(0, 0, 0, 0.12);
    
    /* BORDERS */
    --border-color: #E5EAF1;
    --border-radius: 10px;
    --border-radius-sm: 8px;
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

html, body {
    font-family: 'Inter', system-ui, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 16px;
    font-weight: 400;
}

/* Text color improvements */
.text-muted {
    color: var(--text-secondary) !important;
}

/* TYPOGRAFI - Inter font med specifik skala */
h1 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: var(--spacing-m);
}

h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: var(--spacing-m);
}

h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: var(--spacing-s);
}

h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-s);
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

p {
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: var(--spacing-m);
}

small {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

/* Links - forbedret hover og focus states */
a, .btn-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

a:hover, .btn-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:focus, .btn-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* PRIMARY BUTTON - Standardiseret */
.btn-primary {
    color: #FFFFFF;
    background: var(--primary);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    line-height: 1.5;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    background: var(--primary-dark);
}

.btn-primary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* SECONDARY BUTTON - Standardiseret */
.btn-secondary, .btn-outline-primary, .btn-outline-secondary {
    background: var(--secondary);
    border: 1px solid var(--secondary-border);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-weight: 400;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    line-height: 1.5;
}

.btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover {
    background: #E9EFF5;
    border-color: var(--secondary-border);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active, .btn-outline-primary:active, .btn-outline-secondary:active {
    transform: translateY(0);
    background: var(--secondary);
}

/* Outline primary - kan også bruge primærfarve */
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* DESTRUCTIVE BUTTON */
.btn-danger, .btn-outline-danger {
    background: var(--error);
    border-color: var(--error);
    color: #FFFFFF;
    transition: all 0.2s ease;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
}

.btn-danger:hover {
    background: #C62828;
    border-color: #C62828;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-danger {
    background: transparent;
    color: var(--error);
}

.btn-outline-danger:hover {
    background: var(--error);
    color: #FFFFFF;
}

/* SUCCESS BUTTON */
.btn-success {
    background: var(--success);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    color: #FFFFFF;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
}

.btn-success:hover {
    background: #45a049;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-success:active {
    transform: translateY(0);
    background: #3d8b40;
}

.btn-sm {
    font-size: 14px;
    padding: 8px 16px;
    font-weight: 400;
    border-radius: var(--border-radius-sm);
}

/* Focus outlines */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

/* Content spacing */
.content {
    padding-top: 1.1rem;
}

/* Table improvements - tydeligere rækker, bedre spacing */
.table {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 0;
}

.table th {
    white-space: nowrap;
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding: var(--spacing-m) var(--spacing-l);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    vertical-align: middle;
    padding: var(--spacing-m) var(--spacing-l);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    line-height: 1.55;
}

.table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

.table tbody tr:nth-child(even) {
    background-color: var(--bg-muted);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-light) !important;
    cursor: pointer;
}

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

/* CARDS / PANELER - Standardiseret */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-border);
    transform: translateY(-2px);
}

.card-header {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    padding: var(--spacing-l);
    font-size: 16px;
}

.card-header h5 {
    color: #FFFFFF;
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

.card-body {
    padding: var(--spacing-l);
    background: var(--bg-white);
    color: var(--text-primary);
}

/* Ensartet spacing i cards */
.card-body > *:first-child {
    margin-top: 0;
}

.card-body > *:last-child {
    margin-bottom: 0;
}

/* Stat cards - forbedret spacing og visuelt hierarki */
.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-l);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-width: 5px;
}

.stat-card h2 {
    color: var(--primary);
    font-weight: 700;
    margin: var(--spacing-s) 0;
    font-size: 32px;
    line-height: 1.2;
}

.stat-card h5 {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-s);
    font-weight: 600;
}

/* Form improvements */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--secondary-border);
    padding: 12px 16px;
    transition: all 0.2s ease;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.55;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 180, 255, 0.1);
    background: var(--bg-white);
    color: var(--text-primary);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-s);
    font-size: 16px;
}

/* Alert improvements - bedre spacing og kontrast */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-m) var(--spacing-l);
    margin-bottom: var(--spacing-l);
    font-size: 16px;
    line-height: 1.55;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Badge improvements */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Navbar improvements */
.navbar {
    box-shadow: var(--shadow-md);
    background: var(--primary) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Logo styling */
.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo-small {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.logo-large {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.navbar-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Header improvements - Overskriv kun hvis ikke .af-header */
header:not(.af-header) {
    background: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Footer improvements */
footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl);
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 180, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Form validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blazor error UI */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDki...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 0.75rem;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Checkbox border */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Page header - forbedret spacing og hierarki */
.page-header {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
}

.page-header h1 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0 0 var(--spacing-s) 0;
    font-size: 32px;
    line-height: 1.2;
}

.page-header .text-muted {
    color: var(--text-secondary) !important;
    font-size: 16px;
    margin-top: 0;
    font-weight: 400;
    line-height: 1.55;
}

.page-header .logo {
    filter: none;
}

/* List group improvements */
.list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-m) var(--spacing-l);
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: var(--bg-light);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* AlsoFlow Header - Let og moderne med primærfarve */
.af-header {
    height: 64px !important;
    max-height: 64px !important;
    min-height: 64px;
    background: var(--primary) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.af-header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    background: none !important;
    background-image: none !important;
}

/* Venstre side: Logo + Navigation */
.af-header-left {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    background: none !important;
    background-image: none !important;
}

.af-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    margin-right: var(--spacing-l);
    display: block !important;
    flex-shrink: 0;
    object-fit: contain;
    background: none !important;
    background-image: none !important;
    background-size: auto !important;
    padding: 0 !important;
    border: none !important;
}

.af-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.af-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin: 0;
}

.af-nav-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(99, 180, 255, 0.5);
}

.af-nav-link.active,
a.af-nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Højre side: Sprog, Email, Logout */
.af-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.af-language-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.af-language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.af-user-email {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.af-logout-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

.af-logout-btn:active {
    background: var(--primary-dark);
}

/* Dropdown menu styling */
.af-header-right .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 140px;
}

.af-header-right .dropdown-item {
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    color: #374151;
    font-size: 14px;
    transition: all 0.15s ease;
}

.af-header-right .dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Responsive */
@media (max-width: 991px) {
    .af-header-inner {
        padding: 0 1rem;
    }
    
    .af-nav-link {
        font-size: 14px;
        padding: 0.5rem 0.75rem;
    }
    
    .af-user-email {
        display: none;
    }
    
    .af-header-right {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .af-header {
        height: 56px;
        max-height: 56px;
    }
    
    .af-logo {
        height: 40px !important;
        max-height: 40px !important;
        margin-right: var(--spacing-m);
    }
    
    .af-nav-link {
        font-size: 13px;
        padding: 0.5rem 0.625rem;
    }
    
    .af-language-btn,
    .af-logout-btn {
        font-size: 13px;
        padding: 0.375rem 0.75rem;
    }
}

/* Logo container for better visibility */
.logo-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-container .logo {
    height: 32px;
    width: auto;
}

/* Main container improvements - ensartet spacing */
main.container {
    background: transparent;
    border-radius: 0;
    padding: var(--spacing-xl) var(--spacing-l);
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
    box-shadow: none;
    border: none;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensartet spacing mellem sektioner */
.row {
    margin-bottom: var(--spacing-l);
}

.row:last-child {
    margin-bottom: 0;
}

/* Forbedret spacing i formularer */
.form-group {
    margin-bottom: var(--spacing-l);
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Alert improvements for better contrast */
.alert {
    border-left: 4px solid;
    font-weight: 500;
}

.alert-danger {
    border-left-color: #dc3545;
    background: #fff5f5;
    color: #721c24;
}

.alert-success {
    border-left-color: #28a745;
    background: #f0fff4;
    color: #155724;
}

.alert-info {
    border-left-color: #17a2b8;
    background: #f0f9ff;
    color: #0c5460;
}

/* RESPONSIVE IMPROVEMENTS */
@media (max-width: 991px) {
    /* Tablet - typografi skalerer 1 step ned */
    h1 {
        font-size: 24px; /* h2 størrelse */
    }
    
    h2 {
        font-size: 20px; /* h3 størrelse */
    }
    
    h3 {
        font-size: 18px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .card-body {
        padding: var(--spacing-m);
    }
    
    main.container {
        padding: var(--spacing-l) var(--spacing-m);
    }
}

@media (max-width: 768px) {
    /* Mobil - typografi skalerer 1 step ned */
    h1 {
        font-size: 24px; /* h2 størrelse */
    }
    
    h2 {
        font-size: 20px; /* h3 størrelse */
    }
    
    h3 {
        font-size: 18px;
    }
    
    .card {
        margin-bottom: var(--spacing-l);
        border-radius: var(--border-radius);
    }
    
    .stat-card {
        margin-bottom: var(--spacing-l);
    }
    
    main.container {
        padding: var(--spacing-l) var(--spacing-m);
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-header {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: var(--spacing-l);
        padding-bottom: var(--spacing-m);
        margin-bottom: var(--spacing-xl);
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    /* Tabeller skal kunne scrolles horisontalt på mobil */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: var(--border-radius);
    }
    
    .table {
        min-width: 600px; /* Minimum bredde for at undgå for smalle kolonner */
    }
    
    /* Cards skal fylde 100% i bredden på mobil */
    .card {
        width: 100%;
    }
    
    /* Knapper skal være nemme at trykke på mobil */
    .btn {
        min-height: 44px; /* Touch target size */
        padding: 12px 20px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 8px 16px;
    }
}

/* Success Animation Overlay */
.success-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

.success-animation-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90%;
}

.success-checkmark {
    color: var(--success);
    animation: checkmarkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Check-in button animation */
.check-in-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.check-in-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.check-in-button:active:not(:disabled) {
    transform: translateY(0);
}

.check-in-button.checking-in {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading state improvements */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}