/* ============================================
   Smart Locker - Main Styles
   Mobile-first responsive design for tablets/phones
   ============================================ */

:root {
    /* PoC Brand Colors - Premium */
    --brand-blue: #2563eb;
    --brand-green: #10b981;
    --brand-orange: #f59e0b;
    --brand-red: #ef4444;

    /* Slate Palette (Greys) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Theme Aliases */
    --theme-primary: var(--brand-blue);
    --theme-success: var(--brand-green);
    --theme-warning: var(--brand-orange);
    --theme-danger: var(--brand-red);

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */
    --spacing-xl: 3rem;
    /* 48px */

    /* Border Radius - Rounded PoC Style */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-2xl: 1rem;
    /* 16px - Inputs */
    --radius-3xl: 1.5rem;
    /* 24px - Cards/Buttons */
    --radius-full: 9999px;

    /* Shadows - Soft PoC Style */
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --poc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --poc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --poc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --poc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Base Styles & Reset
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--slate-900);
    background-color: var(--slate-50);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Theme Classes
   ============================================ */

.theme-pickup {
    --theme-primary: var(--pickup-primary);
    --theme-primary-dark: var(--pickup-primary-dark);
    --theme-primary-light: var(--pickup-primary-light);
    --theme-bg: var(--pickup-bg);
}

.theme-drop-blue {
    --theme-primary: var(--drop-blue-primary);
    --theme-primary-dark: var(--drop-blue-primary-dark);
    --theme-primary-light: var(--drop-blue-primary-light);
    --theme-bg: var(--drop-blue-bg);
}

.theme-drop-orange {
    --theme-primary: var(--drop-orange-primary);
    --theme-primary-dark: var(--drop-orange-primary-dark);
    --theme-primary-light: var(--drop-orange-primary-light);
    --theme-bg: var(--drop-orange-bg);
}

/* ============================================
   New Premium Floating Header (PoC Parity)
   ============================================ */

.locker-header-wrapper {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 1.5rem;
    pointer-events: none;
}

.locker-header-content {
    max-width: 36rem;
    /* max-w-xl */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-glass-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.header-pill {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-full);
    box-shadow: var(--poc-shadow-lg);
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.header-pill:active {
    transform: scale(0.95);
}

.header-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--brand-blue);
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-text {
    font-size: 0.625rem;
    /* 10px */
    font-weight: 900;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: -0.025em;
    display: inline;
}

.header-cabinet-badge {
    background-color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.header-cabinet-badge.empty {
    background-color: #fef2f2;
    /* bg-red-50 */
    border: 1px solid #fecaca;
    /* border-red-200 */
    color: #dc2626;
    /* text-red-600 */
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes pulse-attention {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.lang-selector-wrapper {
    position: relative;
    pointer-events: auto;
}

.lang-badge {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--slate-100);
    color: var(--slate-600);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 900;
}

.header-pill:hover .lang-badge {
    background-color: var(--brand-blue);
    color: white;
}

.header-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-2xl);
    box-shadow: var(--poc-shadow-xl);
    padding: 0.5rem;
    min-width: 120px;
    display: none;
}

.header-dropdown.show {
    display: block;
    animation: dropIn 0.2s ease-out;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.625rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-item.active {
    background-color: var(--brand-blue);
    color: white;
}

.dropdown-item:not(.active):hover {
    background-color: var(--slate-50);
}

/* Base Layout Adjustments */
.locker-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--slate-50);
}

.locker-content {
    flex-grow: 1;
    padding-top: 5rem;
    /* Space for the floating header */
    display: flex;
    flex-direction: column;
}

/* ============================================
   Location Modal (Exit Cabinet) - REFINED
   ============================================ */

.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    /* slate-900 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.location-modal {
    background-color: white;
    border-radius: var(--radius-3xl);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--poc-shadow-xl);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.locker-logo-icon {
    background: linear-gradient(to bottom right, #2563eb, #1d4ed8);
    border-radius: 0.75rem;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.locker-logo-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.locker-logo-text {
    display: flex;
    flex-direction: column;
}

.locker-logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.locker-logo-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.2;
}

/* Header Right Section */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* User Menu Button */
.user-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.user-menu-btn:active {
    transform: translateY(0);
}

.user-menu-btn svg {
    width: 20px;
    height: 20px;
}


/* Locker Location Badge (Clickable) */
.locker-location-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.locker-location-badge.no-location {
    background-color: #fff3cd;
    border-color: #ffc107;
    animation: pulse-attention 2s ease-in-out infinite;
}

.scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-blue);
    box-shadow: 0 0 10px var(--brand-blue);
    animation: scan 3s linear infinite;
    z-index: 10;
}

@keyframes scan {

    0%,
    100% {
        top: 0%;
    }

    50% {
        top: 100%;
    }
}

@keyframes pulse-attention {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.locker-location-badge.no-location .location-icon {
    color: #ff9800;
}

.locker-location-badge.no-location .location-text {
    color: #856404;
    font-weight: 700;
}

.locker-location-badge:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.locker-location-badge:active {
    transform: translateY(0);
    background-color: #d1d5db;
}

.location-icon {
    color: #2563eb;
    flex-shrink: 0;
}

.location-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.language-selector {
    display: flex;
    gap: var(--spacing-xs);
}

.language-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-btn.active,
.language-btn:hover {
    background-color: var(--theme-primary, var(--gray-800));
    color: var(--white);
    border-color: var(--theme-primary, var(--gray-800));
}

/* Mobile Header Responsive */
@media (max-width: 767px) {
    .locker-header {
        padding: 1rem;
    }

    .locker-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .locker-logo-container {
        width: 100%;
    }

    .locker-logo-icon svg {
        width: 24px;
        height: 24px;
    }

    .locker-logo-name {
        font-size: 1.25rem;
    }

    .locker-logo-subtitle {
        font-size: 0.75rem;
    }

    .header-right-section {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .locker-location-badge {
        flex: 1;
        justify-content: center;
    }

    .location-text {
        font-size: 0.8125rem;
    }

    .language-selector {
        flex-shrink: 0;
    }
}

.locker-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   Cards & Containers
   ============================================ */

.locker-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.locker-card-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--theme-primary, var(--gray-800));
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.locker-card-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    width: 100%;
    touch-action: manipulation;
}

.btn-primary {
    background-color: var(--theme-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--theme-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-300);
}

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

.btn-outline:hover:not(:disabled) {
    background-color: var(--theme-primary);
    color: var(--white);
}

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

.btn-lg {
    font-size: var(--font-size-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    min-height: 80px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-lg);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background-color: var(--white);
    min-height: 60px;
}

.form-control:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

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

.form-error {
    color: var(--danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 20px;
    padding-right: calc(var(--spacing-md) * 3);
}

/* ============================================
   Code Input (6-digit)
   ============================================ */

.code-input-container {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.code-input {
    width: 60px;
    height: 80px;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    border: 3px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.code-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
    transform: scale(1.05);
}

.code-input.filled {
    background-color: var(--theme-bg);
    border-color: var(--theme-primary);
}

/* ============================================
   Lists & Cards
   ============================================ */

.recipient-list {
    display: grid;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.recipient-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.recipient-card:hover {
    border-color: var(--theme-primary);
    background-color: var(--theme-bg);
    transform: translateX(4px);
}

.recipient-card.selected {
    border-color: var(--theme-primary);
    background-color: var(--theme-bg);
    box-shadow: var(--shadow-md);
}

.recipient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--theme-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-right: var(--spacing-md);
}

.recipient-info {
    flex: 1;
}

.recipient-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.recipient-email {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

/* ============================================
   Size Selector
   ============================================ */

.size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.size-option {
    padding: var(--spacing-lg);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.size-option:hover {
    border-color: var(--theme-primary);
    background-color: var(--theme-bg);
}

.size-option.selected {
    border-color: var(--theme-primary);
    background-color: var(--theme-bg);
    box-shadow: var(--shadow-md);
}

.size-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xs);
}

.size-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
}

/* ============================================
   QR Code Scanner
   ============================================ */

.qr-scanner-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: var(--spacing-lg) auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--black);
}

#qr-video {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Modern Success Modal (Glassmorphism)
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    animation: modal-backdrop-in 0.2s ease-out;
    border-radius: inherit;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    padding: 1.5rem;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: modal-content-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #22c55e, #10b981);
}

.modal-icon-container {
    width: 70px;
    height: 70px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #10b981;
    font-size: 2.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.35rem;
    letter-spacing: -0.025em;
}

.modal-message {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.locker-details-card {
    background: #f9fafb;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid #f3f4f6;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.detail-icon {
    font-size: 1.25rem;
    padding-top: 0.125rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-instructions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
}

.btn-modal-close {
    background: #111827;
    color: white !important;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-weight: 700;
    width: 100%;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
}

.btn-modal-close:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@keyframes modal-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-content-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Loading Spinner
   ============================================ */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-lg);
    color: var(--gray-600);
}

/* ============================================
   Home Page - Start Screen
   ============================================ */

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1rem 1rem;
}

.home-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-options {
    display: grid;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 600px;
    margin-bottom: 0;
}

.home-option-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.home-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Pickup Card - Green Theme */
.pickup-card .card-header {
    background: linear-gradient(to bottom right, #22c55e, #16a34a);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.pickup-card .card-icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.pickup-card .card-icon-circle svg {
    width: 50px;
    height: 50px;
    color: white;
}

.pickup-card .card-action-btn {
    background-color: #22c55e;
    color: white;
}

.pickup-card .card-action-btn:hover {
    background-color: #16a34a;
}

/* Drop Card - Blue Theme */
.drop-card .card-header {
    background: linear-gradient(to bottom right, #2563eb, #1d4ed8);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.drop-card .card-icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.drop-card .card-icon-circle svg {
    width: 45px;
    height: 45px;
    color: white;
}

.drop-card .card-action-btn {
    background-color: #3b82f6;
    color: white;
}

.drop-card .card-action-btn:hover {
    background-color: #2563eb;
}

/* Card Typography */
.card-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: white;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Card Body */
.card-body {
    padding: 1.25rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #4b5563;
}

/* Card Action Button */
.card-action-btn {
    display: block;
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem 1.25rem;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive adjustments for cards */
@media (max-width: 767px) {
    .home-options {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-subtitle {
        font-size: 1rem;
    }

    .pickup-card .card-icon-circle,
    .drop-card .card-icon-circle {
        width: 70px;
        height: 70px;
    }

    .pickup-card .card-icon-circle svg {
        width: 40px;
        height: 40px;
    }

    .drop-card .card-icon-circle svg {
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 768px) {
    .home-options {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }

    .card-header {
        padding: 1.5rem !important;
    }

    .pickup-card .card-icon-circle,
    .drop-card .card-icon-circle {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   Features Section - Why Choose SmartLocker?
   ============================================ */

.features-section {
    background-color: var(--white);
    padding: 1.5rem 2rem 3rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon-circle.blue {
    background-color: #dbeafe;
}

.feature-icon-circle.blue svg {
    color: #2563eb;
}

.feature-icon-circle.green {
    background-color: #d1fae5;
}

.feature-icon-circle.green svg {
    color: #10b981;
}

.feature-icon-circle.orange {
    background-color: #fed7aa;
}

.feature-icon-circle.orange svg {
    color: #ea580c;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */

.locker-footer {
    background-color: #111827;
    color: white;
    padding: 2rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Features Section */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .features-title {
        font-size: 2rem;
    }
}

/* ============================================
   QR Scan Page - Manual Input / Scan
   ============================================ */

.qr-scan-body {
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    min-height: 100vh;
}

.qr-scan-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.qr-scan-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

/* QR Header with Language Selector */
.qr-header {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qr-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.qr-header-icon {
    background-color: white;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qr-header-icon svg {
    color: #2563eb;
}

.qr-header-text h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.qr-header-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

/* Language Selector */
.qr-language-selector {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.qr-language-selector form {
    display: flex;
    gap: 0.5rem;
}

.qr-lang-btn {
    background-color: rgba(37, 99, 235, 0.1);
    color: #475569;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-lang-btn:hover {
    background-color: rgba(37, 99, 235, 0.15);
    color: #1e293b;
    border-color: rgba(37, 99, 235, 0.3);
}

.qr-lang-btn.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* QR Content */
.qr-content {
    padding: 3rem;
}

/* Welcome Section */
.qr-welcome {
    text-align: center;
    margin-bottom: 2.5rem;
}

.qr-welcome-icon {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.qr-welcome-icon svg {
    color: #2563eb;
}

.qr-welcome-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.qr-welcome-message {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto;
}

/* QR Display / Camera */
.qr-display {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.qr-frame {
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
    border: 4px solid #bfdbfe;
    padding: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.qr-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 1rem;
    background-color: #000;
    object-fit: cover;
    display: block;
}

/* Manual Input */
.qr-manual-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

.qr-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #bfdbfe;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.qr-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Instructions */
.qr-instructions {
    background: linear-gradient(to bottom right, #eff6ff, #f0f9ff);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.qr-instructions-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qr-instructions-title svg {
    color: #2563eb;
    flex-shrink: 0;
}

.qr-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qr-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.qr-step-number {
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.qr-step p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Layout Utilities */
.flex {
    display: flex;
}

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

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

.justify-center {
    justify-content: center;
}

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

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-24 {
    margin-bottom: 6rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pb-24 {
    padding-bottom: 6rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md-flex-row {
        flex-direction: row;
    }
}

/* Typography Utilities */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-slate-500 {
    color: var(--slate-500);
}

.text-slate-400 {
    color: var(--slate-400);
}

.text-brand-blue {
    color: var(--brand-blue);
}

.text-brand-green {
    color: var(--brand-green);
}

/* Action Buttons */
.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qr-btn-primary {
    width: 100%;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.3);
    font-size: 1.125rem;
}

.qr-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

.qr-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qr-btn-primary svg {
    width: 1.5rem;
    height: 1.5rem;
}

.qr-btn-secondary {
    width: 100%;
    background-color: white;
    color: #2563eb;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px solid #bfdbfe;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.qr-btn-secondary:hover {
    background-color: #eff6ff;
}

.qr-btn-secondary svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Help Section */
.qr-help {
    margin-top: 2rem;
    text-align: center;
}

.qr-help-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.qr-help-btn:hover {
    color: #1d4ed8;
}

.qr-help-icon {
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* QR Footer */
.qr-footer {
    background-color: #f9fafb;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.qr-footer p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qr-footer svg {
    color: #9ca3af;
    width: 1rem;
    height: 1rem;
}

/* QR Scan Responsive */
@media (max-width: 767px) {
    .qr-scan-page {
        padding: 1rem;
    }

    .qr-header {
        flex-direction: column;
        gap: 1rem;
    }

    .qr-header-content {
        width: 100%;
    }

    /* Wrapper for user button + language selector in mobile */
    .qr-header>div:last-child {
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .qr-language-selector {
        flex: 0 0 auto;
        justify-content: center;
    }

    /* User profile button in mobile - ensure correct size */
    .user-menu-btn {
        flex: 0 0 auto;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
    }

    .user-menu-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    .qr-content {
        padding: 1.5rem;
    }

    .qr-welcome-title {
        font-size: 1.5rem;
    }

    .qr-welcome-message {
        font-size: 1rem;
    }

    .qr-welcome-icon {
        width: 5rem;
        height: 5rem;
    }

    .qr-welcome-icon svg {
        width: 48px;
        height: 48px;
    }

    .qr-frame {
        padding: 0.75rem;
        max-width: 320px;
    }

    .qr-instructions {
        padding: 1.5rem;
    }

    .qr-btn-primary,
    .qr-btn-secondary {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
}

/* ============================================
   Responsive - Tablet & Desktop
   ============================================ */

@media (min-width: 768px) {
    /* ... existing tablet/desktop styles ... */
}

/* ============================================
   Pickup Page - Modern Card Design
   ============================================ */

.pickup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

.pickup-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
}

/* Pickup Header - Green Gradient */
.pickup-header {
    background: linear-gradient(to bottom right, #22c55e, #16a34a);
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.pickup-header-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pickup-header-icon svg {
    color: white;
}

/* Pickup Content */
.pickup-content {
    padding: 2rem;
}

.pickup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pickup-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pickup-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Code Input Grid */
.code-input-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.code-digit {
    width: 100%;
    aspect-ratio: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background-color: white;
}

.code-digit:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    transform: scale(1.05);
}

.code-digit:not(:placeholder-shown) {
    background-color: #f0fdf4;
    border-color: #22c55e;
}

/* Pickup Buttons */
.pickup-btn-primary {
    width: 100%;
    background-color: #22c55e;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.pickup-btn-primary:hover:not(:disabled) {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(34, 197, 94, 0.3);
}

.pickup-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pickup-btn-primary svg {
    width: 1.25rem;
    height: 1.25rem;
}

.pickup-btn-secondary {
    width: 100%;
    background-color: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pickup-btn-secondary:hover {
    background-color: #f3f4f6;
}

/* Security Notice */
.pickup-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pickup-notice-icon {
    flex-shrink: 0;
    color: #22c55e;
}

.pickup-notice-content {
    flex: 1;
}

.pickup-notice-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.25rem;
}

.pickup-notice-text {
    font-size: 0.75rem;
    color: #15803d;
    margin: 0;
}

/* Pickup Responsive - Mobile */
@media (max-width: 767px) {
    .pickup-container {
        padding: 1rem;
    }

    .pickup-card {
        max-width: 100%;
    }

    .pickup-content {
        padding: 1.5rem;
    }

    .pickup-title {
        font-size: 1.25rem;
    }

    .code-input-grid {
        gap: 0.375rem;
    }

    .code-digit {
        font-size: 1.25rem;
    }

    .pickup-btn-primary,
    .pickup-btn-secondary {
        font-size: 0.9375rem;
    }
}

/* ============================================
   End of Pickup Page Styles
   ============================================ */

/* ============================================
   Drop Page - Modern Card Design
   ============================================ */

.drop-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

.drop-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
}

/* Drop Header - Blue Gradient */
.drop-header {
    background: linear-gradient(to bottom right, #2563eb, #1d4ed8);
    padding: 1.5rem 2rem;
}

.drop-header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.drop-header-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.drop-header-close {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.drop-header-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.drop-header-icon {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.drop-header-icon svg {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1rem;
    color: white;
}

/* Drop Content */
.drop-content {
    padding: 2rem;
}

.drop-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-align: center;
    margin-bottom: 0.5rem;
}

.drop-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.5rem;
}

.drop-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Drop Header Title */
.drop-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.drop-header-title h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Drop Logout Button */
.drop-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.drop-logout-btn:hover {
    color: #1d4ed8;
}

.drop-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.drop-form-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Drop Textarea */
.drop-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background-color: white;
    font-family: inherit;
    resize: none;
}

.drop-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.drop-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Drop Recipient Selected */
.drop-recipient-selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #bfdbfe;
    border-radius: 0.75rem;
    background-color: #eff6ff;
}

.drop-recipient-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.drop-recipient-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.drop-recipient-email {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Drop Size Grid */
.drop-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.drop-size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-size-btn svg {
    color: #6b7280;
    transition: color 0.3s ease;
}

.drop-size-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.drop-size-btn:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.drop-size-btn.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.drop-size-btn.selected svg {
    color: #2563eb;
}

.drop-size-btn.selected span {
    color: #2563eb;
}

/* Drop Checkbox */
.drop-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.drop-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.drop-checkbox:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.drop-checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

/* Drop Info Notice */
.drop-info-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.drop-info-icon {
    flex-shrink: 0;
    color: #2563eb;
}

.drop-info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.drop-info-text {
    font-size: 0.75rem;
    color: #1e40af;
    margin: 0;
}

/* Drop Form Groups */
.drop-form-group {
    margin-bottom: 1rem;
}

.drop-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.drop-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background-color: white;
}

.drop-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.drop-input::placeholder {
    color: #9ca3af;
}

/* Drop Select/Dropdown */
.drop-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'%3E%3Cpath fill='%236b7280' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
}

.drop-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Drop Buttons */
.drop-btn-primary {
    width: 100%;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.drop-btn-primary:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.3);
}

.drop-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.drop-btn-primary svg {
    width: 1.25rem;
    height: 1.25rem;
}

.drop-btn-secondary {
    width: 100%;
    background-color: white;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #2563eb;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.drop-btn-secondary:hover {
    background-color: #eff6ff;
}

.drop-btn-back {
    width: 100%;
    background-color: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.drop-btn-back:hover {
    background-color: #f3f4f6;
}

/* Drop Link Container */
.drop-link-container {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.drop-link {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.drop-link:hover {
    color: #1d4ed8;
}

/* Drop Divider */
.drop-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem;
}

.drop-divider::before,
.drop-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.drop-divider span {
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.drop-register-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Drop Responsive - Mobile */
@media (max-width: 767px) {
    .drop-container {
        padding: 1rem;
    }

    .drop-card {
        max-width: 100%;
    }

    .drop-content {
        padding: 1.5rem;
    }

    .drop-title {
        font-size: 1.25rem;
    }

    .drop-btn-primary,
    .drop-btn-secondary,
    .drop-btn-back {
        font-size: 0.9375rem;
    }
}

/* ============================================
   Drop Success Screen - Locker Assigned
   ============================================ */

.success-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
}

.success-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 28rem;
    padding: 3rem 2rem;
    text-align: center;
}

.success-icon-circle {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(to bottom right, #22c55e, #16a34a);
    border-radius: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px rgba(34, 197, 94, 0.3);
}

.success-icon-circle svg {
    color: white;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-info-card {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.success-info-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.success-locker-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.5rem;
}

.success-detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.success-detail-value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 600;
}

.success-notification-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #dbeafe;
    border-radius: 0.5rem;
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 500;
}

.success-notification-notice svg {
    flex-shrink: 0;
}

.success-btn-primary {
    width: 100%;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.3);
    margin-bottom: 1rem;
}

.success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

.success-warning-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.success-warning-notice svg {
    flex-shrink: 0;
    color: #f59e0b;
}

/* Success Screen Responsive */
@media (max-width: 767px) {
    .success-screen {
        padding: 1rem;
    }

    .success-card {
        padding: 2rem 1.5rem;
    }

    .success-title {
        font-size: 1.75rem;
    }

    .success-locker-number {
        font-size: 2.5rem;
    }

    .success-icon-circle {
        width: 5rem;
        height: 5rem;
    }

    .success-icon-circle svg {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   End of Drop Success Screen Styles
   ============================================ */

/* Drop Register Grid - First/Last Name */
.drop-register-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .drop-register-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Header-specific overrides for QR language buttons (light header background) */
.locker-header .qr-language-selector,
.locker-header .qr-language-selector form {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Error Alert Component (for validation errors)
   ============================================ */

.error-alert {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.1), 0 2px 4px -1px rgba(239, 68, 68, 0.06);
    animation: slideDown 0.3s ease-out;
}

.error-alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.error-alert-icon svg {
    width: 24px;
    height: 24px;
}

.error-alert-content {
    flex: 1;
}

.error-alert-title {
    font-size: 1rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 0.25rem 0;
}

.error-alert-message {
    font-size: 0.9375rem;
    color: #7f1d1d;
    margin: 0;
    line-height: 1.5;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Alert variant */
.success-alert {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.success-alert .error-alert-icon {
    background: #10b981;
}

.success-alert .error-alert-title {
    color: #065f46;
}

.success-alert .error-alert-message {
    color: #064e3b;
}

/* Warning Alert variant */
.warning-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.warning-alert .error-alert-icon {
    background: #f59e0b;
}

.warning-alert .error-alert-title {
    color: #92400e;
}

.warning-alert .error-alert-message {
    color: #78350f;
}

/* ============================================
   BIOMETRIC AUTHENTICATION STYLES
   ============================================ */

/* Biometric Login Button */
.drop-btn-biometric {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3),
        0 2px 4px -1px rgba(139, 92, 246, 0.2);
}

.drop-btn-biometric:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.4),
        0 4px 6px -2px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.drop-btn-biometric:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
}

.drop-btn-biometric:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.drop-btn-biometric svg {
    flex-shrink: 0;
}

/* Biometric Hint Text */
.drop-biometric-hint {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Biometric Status Badge */
.biometric-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.biometric-status-badge.inactive {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
}

/* Biometric Credentials List */
.biometric-credentials-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.biometric-credential-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.biometric-credential-item:hover {
    border-color: #8b5cf6;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.biometric-credential-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.biometric-credential-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 0.5rem;
}

.biometric-credential-details h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.biometric-credential-details p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.biometric-credential-remove {
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.biometric-credential-remove:hover {
    background: #fecaca;
    border-color: #dc2626;
}

/* Biometric Setup Container */
.biometric-setup-container {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #3b82f6;
    border-radius: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.biometric-setup-container h4 {
    color: #1e40af;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.biometric-setup-container p {
    color: #1e3a8a;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.biometric-setup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.biometric-setup-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .biometric-credential-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .biometric-credential-info {
        flex-direction: column;
    }

    .biometric-credential-remove {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .error-alert {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .error-alert-icon {
        width: 40px;
        height: 40px;
    }

    .error-alert-icon svg {
        width: 20px;
        height: 20px;
    }
}

.qr-language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.locker-header .qr-language-selector .qr-lang-btn {
    /* Make visible on a light/white header */
    background-color: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.locker-header .qr-language-selector .qr-lang-btn:hover {
    background-color: var(--gray-100);
}

.locker-header .qr-language-selector .qr-lang-btn.active {
    /* Active uses theme color so it's consistent with the layout */
    background-color: var(--theme-primary, #2563eb);
    color: var(--white);
    border-color: var(--theme-primary, #2563eb);
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.08);
}

.locker-header .qr-language-selector .qr-lang-btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.12);
    outline-offset: 2px;
}

/* Inline success version for within existing cards */
.success-card.inline {
    box-shadow: none !important;
    padding: 1.5rem !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Location Modal (Exit Cabinet)
   ============================================ */

.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.location-modal-overlay.show {
    opacity: 1;
}

.location-modal {
    background: white;
    border-radius: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.location-modal-overlay.show .location-modal {
    transform: scale(1) translateY(0);
}

.location-modal-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px solid #f1f5f9;
}

.location-modal-header svg {
    color: #2563eb;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.2));
}

.location-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.location-modal-body {
    padding: 2rem;
    text-align: center;
}

.current-location-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.location-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.location-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.location-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.location-modal-message {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.location-modal-actions {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-modal-actions form {
    width: 100%;
}

.location-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-btn-stay {
    background: #f1f5f9;
    color: #475569;
}

.location-btn-stay:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.location-btn-leave {
    background: #1e293b;
    color: white;
}

.location-btn-leave:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.location-btn-leave svg {
    color: #ef4444;
}

@media (max-width: 480px) {
    .location-modal-overlay {
        padding: 1rem;
        overflow-y: auto;
        align-items: center;
    }

    .location-modal {
        border-radius: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
        margin: auto;
    }

    .location-modal-overlay.show .location-modal {
        transform: scale(1) translateY(0);
    }

    .location-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .location-modal-header h3 {
        font-size: 1.25rem;
    }

    .location-modal-body {
        padding: 1.5rem;
    }

    .location-modal-actions {
        padding: 0 1.5rem 1.5rem;
    }

    .current-location-display {
        padding: 1rem;
    }

    .location-icon-circle {
        width: 48px;
        height: 48px;
    }

    .location-value {
        font-size: 1.125rem;
    }
}

/* ============================================
   PWA Install Banner Styles
   ============================================ */

#pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#pwa-install-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#pwa-install-banner .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

#pwa-install-banner .col-md-8 {
    flex: 1;
    min-width: 0;
}

#pwa-install-banner .col-md-4 {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#pwa-install-banner h6 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#pwa-install-banner small {
    font-size: 0.875rem;
    opacity: 0.95;
}

#pwa-install-banner .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

#pwa-install-banner .btn-light {
    background: white;
    color: #1e40af;
}

#pwa-install-banner .btn-light:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#pwa-install-banner .btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#pwa-install-banner .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

#pwa-install-banner.slide-down {
    animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Adjust body padding when PWA banner is visible */
body.pwa-banner-visible {
    padding-bottom: 5rem;
}

/* Mobile responsive for PWA banner */
@media (max-width: 767px) {
    #pwa-install-banner {
        padding: 1rem;
    }

    #pwa-install-banner .row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    #pwa-install-banner .col-md-8,
    #pwa-install-banner .col-md-4 {
        width: 100%;
    }

    #pwa-install-banner .col-md-4 {
        justify-content: center;
    }

    #pwa-install-banner h6 {
        font-size: 0.9375rem;
    }

    #pwa-install-banner small {
        font-size: 0.8125rem;
    }
}

/* ============================================
   Profile Menu Styles
   ============================================ */

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    cursor: pointer;
}

.profile-menu-item:hover {
    background: #f9fafb;
}

.profile-menu-item:first-of-type {
    border-radius: 8px 8px 0 0;
}

.profile-menu-item:last-of-type {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.profile-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.profile-menu-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile-menu-subtitle {
    font-size: 0.875rem;
    color: #666;
}