/* Desktop-first dashboard styles for LaClinica */
:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --muted: #6b7280;
    --brand: #0f766e;
    --accent: #06b6d4;
    --card-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    --radius: 10px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --muted: #94a3b8;
    --brand: #0f4d4a;
    --accent: #06b6d4;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Dark theme specific overrides */
[data-theme="dark"] body {
    color: #f1f5f9;
}



[data-theme="dark"] .nav-item {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-item.active {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .log-container,
[data-theme="dark"] .results-container,
[data-theme="dark"] .detail-content {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .log-text {
    color: #cbd5e1;
}

[data-theme="dark"] .info-box {
    background: var(--brand);
    border-left-color: var(--accent);
}

[data-theme="dark"] .info-box h3 {
    color: #ffffff;
}

[data-theme="dark"] .req-card {
    background: var(--surface);
    border-color: #475569;
}

[data-theme="dark"] .req-card-header {
    border-bottom-color: #475569;
}

[data-theme="dark"] .req-detail .material-symbols-outlined {
    color: #9ca3af;
}

[data-theme="dark"] .req-detail {
    color: #d1d5db;
}

/* Dark theme border adjustments */
[data-theme="dark"] .overview-card,
[data-theme="dark"] .req-card,
[data-theme="dark"] .autocomplete-dropdown {
    border-color: #475569;
}

[data-theme="dark"] .tabs {
    border-bottom-color: #475569;
}

[data-theme="dark"] .tab-btn {
    border-bottom-color: transparent;
}

[data-theme="dark"] .tab-btn.active {
    border-bottom-color: var(--brand);
}

[data-theme="dark"] .req-grid th,
[data-theme="dark"] .req-grid td {
    border-bottom-color: #475569;
}

[data-theme="dark"] .req-grid input,
[data-theme="dark"] .req-grid select {
    border-color: #475569;
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .req-grid input::placeholder,
[data-theme="dark"] .req-grid select {
    color: #94a3b8;
}

/* Dark theme for all form elements */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #94a3b8;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: #0f172a
}

.app-root {
    display: none; /* Hidden by default - shown after authentication */
    height: 100vh;
    margin: 0;
    padding: 0
}

.main>* {
    margin-top: 0 !important
}

.main>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important
}

.sidebar {
    width: 220px;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.page-title h1 {
    margin: 0;
    font-size: 20px
}

.subtitle {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center
}

.site-select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e6eef6
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.brand .logo {
    width: 218px;
    height: 78px;
    border-radius: 6px;
    object-fit: cover
}

.brand h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 700
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background 0.2s ease;
    background: transparent;
    margin: 4px 8px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-item .material-symbols-outlined {
    font-size: 20px;
    opacity: 0.9;
}

.panel h2 {
    margin: 0 0 8px 0;
    font-size: 16px
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    font-weight: 500;
}

.nav-item.active .material-symbols-outlined {
    opacity: 1;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 12px;
    opacity: 0.85;
    text-align: center;
    margin-bottom: 8px
}

.sidebar-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.main {
    flex: 1;
    padding: 0 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-width: none !important;
    border: none !important;
    margin: 0 !important;
    background: var(--bg);
}

.container {
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 14px;
    display: flex;
    flex-direction: column
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.search input {
    width: 540px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e6eef6;
    background: var(--surface)
}

.btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
    cursor: pointer
}

.btn.primary {
    background: var(--brand);
    color: #fff;
    border: none
}

.panel {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow)
}

.top-cards {
    display: flex;
    gap: 12px
}

.top-cards .card {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--surface), var(--bg));
    box-shadow: var(--card-shadow)
}

.card-title {
    font-size: 13px;
    color: var(--muted)
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 6px
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px
}

.item {
    padding: 10px;
    border-radius: 8px;
    background: #fbfdff;
    border: 1px solid #eef6fb
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px
}

.req-table th,
.req-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left
}

/* keyboard focus */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 3px solid rgba(6, 182, 212, 0.12);
    outline-offset: 2px
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5)
}

.modal-dialog {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e6eef6
}

.modal-header h2 {
    margin: 0;
    font-size: 18px
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e6eef6;
    display: flex;
    gap: 12px;
    justify-content: flex-end
}

/* Requisition Grid */
.req-grid {
    width: 100%;
    border-collapse: collapse
}

.req-grid th,
.req-grid td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #e6eef6
}

.req-grid th {
    font-weight: 600;
    font-size: 13px;
    color: var(--muted)
}

.req-grid input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e6eef6;
    border-radius: 6px;
    font-size: 14px
}

.req-grid select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e6eef6;
    border-radius: 6px;
    font-size: 14px
}

.req-grid input:read-only {
    background: #f9fafb;
    color: var(--muted)
}

.req-grid .delete-row {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid #e6eef6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6
}

.autocomplete-item:last-child {
    border-bottom: none
}

.autocomplete-item:hover {
    background: #f9fafb
}

.autocomplete-item:focus {
    background: #e5e7eb;
    outline: 2px solid #3b82f6;
    outline-offset: -2px
}

.autocomplete-item.selected {
    background: #dbeafe;
    color: #1e40af;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e6eef6;
    margin-bottom: 20px
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px
}

.tab-btn:hover {
    color: var(--brand);
    background: rgba(15, 118, 110, 0.05)
}

.tab-btn.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 600
}

.tab-content {
    animation: fadeIn 0.3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Icon buttons for terminal controls */
.icon-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.95);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Theme-aware icon buttons for main content areas */
.terminal-controls .icon-btn {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--btn-color);
}

.terminal-controls .icon-btn:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-border);
    color: var(--btn-color);
}

.icon-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Modal Dialog Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-buttons .btn {
    min-width: 80px;
    flex: 1;
    min-height: 44px; /* iOS touch target minimum */
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: 16px;
        max-height: 95vh;
    }
    
    .theme-customizer {
        padding: 16px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

/* Desktop-only note: no responsive rules required per request */

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.overview-card {
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.overview-card h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--muted);
}

.overview-card canvas {
    max-height: 300px;
}

.status-chart-container {
    max-width: 300px;
    margin: 0 auto;
}

/* Coming Soon Panels */
.coming-soon-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.coming-soon-content {
    text-align: center;
}

.coming-soon-title {
    color: #6b7280;
    font-size: 32px;
    margin-bottom: 12px;
}

.coming-soon-text {
    color: #9ca3af;
    font-size: 18px;
}

/* Maintenance View */
.margin-20 {
    margin: 20px 0;
}

.margin-left-12 {
    margin-left: 12px;
}

.status-text {
    margin-left: 24px;
    font-weight: 600;
}

.log-container {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
}

.log-text {
    color: #6b7280;
}

.info-box {
    margin-top: 20px;
    padding: 12px;
    background: #eff6ff;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
}

.info-box h3 {
    margin-top: 0;
    color: #1e40af;
}

.info-box p {
    margin: 8px 0;
}

.info-box code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.grid-200 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.metric-card {
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
}

.metric-label {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 20px;
    font-weight: 600;
}

.metric-value.small {
    font-size: 14px;
}

.log-container-large {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
}

.margin-bottom-12 {
    margin-bottom: 12px;
}

.reindex-section {
    margin: 20px 0;
}

.reindex-btn {
    margin: 20px 0;
}

.reindex-status {
    margin-left: 12px;
}

/* Terminal View */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-container {
    background: var(--brand);
    padding: 8px;
    border-radius: 6px;
    min-height: 200px;
    height: auto;
}

/* Requisitions View */
.date-filters {
    display: flex;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
}

.field select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e6eef6;
    min-width: 180px;
}

.status-message {
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.results-container {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    min-height: 200px;
}

.detail-header {
    margin-bottom: 16px;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.detail-content {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
}

.new-req-header {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.new-req-field {
    margin-right: auto;
}

.new-req-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
}

.new-req-field select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e6eef6;
}

/* Theme Customizer Modal */
.theme-customizer {
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    padding: 20px;
}

.theme-customizer h3 {
    margin-top: 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
}

.theme-customizer p {
    color: #374151;
    margin-bottom: 20px;
    font-size: 14px;
}

.color-picker-group {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.color-input {
    text-align: center;
    position: relative; /* allow absolutely positioned hidden inputs to anchor near the button */
}

.color-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0f172a; /* Dark color for labels */
    font-size: 16px;
}

.color-input input[type="color"] {
    width: 100px;
    height: 60px;
    border: 3px solid #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hidden color inputs used for programmatic color picker anchoring */
.color-input input[type="color"].hidden-color-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.color-input input[type="color"]:hover {
    border-color: #9ca3af;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.color-input input[type="color"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.color-input span {
    display: block;
    margin-top: 8px;
    font-family: monospace;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Login Modal Styles */
.login-modal {
    max-width: 400px;
    width: 100%;
}

.login-modal h3 {
    margin-top: 0;
    color: #0f172a;
    font-weight: 600;
    text-align: center;
}

.login-modal p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.password-input-container {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.toggle-password-btn:hover {
    color: #374151;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.req-card {
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.req-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: var(--brand);
}

.req-card.status-approved {
    border-left: 4px solid #10b981;
}

.req-card.status-pending {
    border-left: 4px solid #f59e0b;
}

.req-card.status-rejected {
    border-left: 4px solid #ef4444;
}

.req-card.status-neutral {
    border-left: 4px solid #6b7280;
}

.req-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.req-title {
    margin: 0;
    color: var(--brand);
    font-size: 18px;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.req-card-content {
    padding: 16px 20px;
}

.req-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.req-detail:last-child {
    margin-bottom: 0;
}

.req-detail .material-symbols-outlined {
    font-size: 18px;
    color: #9ca3af;
    flex-shrink: 0;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

#loginModal {
    z-index: 1001;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        justify-content: center;
        padding-top: 20px;
    }
    
    .brand {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .brand .logo {
        width: 32px;
        height: 32px;
    }
    
    .nav-item span:not(.material-symbols-outlined) {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 4px 0;
        margin: 1px 8px;
    }
    
    .sidebar-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-top: 10px;
        margin-bottom: 8px;
    }
    
    .sidebar-controls .icon-btn {
        width: 44px;
        height: 32px;
        justify-content: center;
        padding: 0;
    }
    
    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .terminal-controls {
        align-self: flex-end;
    }
}

@media (max-width: 700px) {
  .sidebar-username-label {
    display: none;
  }
}

/* Login Loading Overlay */
.login-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}