h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

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

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Modern Form Styling */
.form-control {
    border-radius: var(--bs-border-radius, 12px) !important;
    border: 2px solid var(--color-border, #e2e8f0) !important;
    background: var(--color-surface, #f8fafc) !important;
    padding: 1rem 0.75rem !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.form-control:focus {
    border-color: var(--color-primary, #4c6ab3) !important;
    background: var(--color-surface, white) !important;
    box-shadow: 0 0 0 3px rgba(76, 106, 179, 0.1) !important;
    transform: translateY(-1px) !important;
}

.form-control::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Form Labels */
.form-label {
    color: var(--color-muted, #6b7280) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    position: absolute !important;
    top: -0.5rem !important;
    left: 0.75rem !important;
    background: var(--color-surface, white) !important;
    padding: 0 0.25rem !important;
    z-index: 1 !important;
    transform: none !important;
    transition: all 0.2s ease !important;
}

/* Form Control with Label Above */
.form-floating .form-control {
    padding: 1rem 0.75rem !important;
    border-radius: 12px !important;
    border: 2px solid var(--color-border, #e2e8f0) !important;
    background: var(--color-surface, #f8fafc) !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.form-floating .form-control:focus {
    border-color: var(--color-primary, #4c6ab3) !important;
    background: var(--color-surface, white) !important;
    box-shadow: 0 0 0 3px rgba(76, 106, 179, 0.1) !important;
    transform: translateY(-1px) !important;
}

.form-floating .form-control:focus + .form-label {
    color: var(--color-primary, #4c6ab3) !important;
    font-weight: 600 !important;
}

/* Buttons */
.btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.btn-primary {
    background: var(--color-primary, #4c6ab3) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(76, 106, 179, 0.2) !important;
}

.btn-primary:hover {
    background: var(--color-primary-dark, #3f589c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(76, 106, 179, 0.3) !important;
}

.btn-outline {
    background: transparent !important;
    color: var(--color-primary, #4c6ab3) !important;
    border: 2px solid var(--color-primary, #4c6ab3) !important;
}

.btn-outline:hover {
    background: var(--color-primary, #4c6ab3) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Checkboxes */
.form-check-input {
    border-radius: 8px !important;
    border: 2px solid var(--color-border, #e2e8f0) !important;
    background: var(--color-surface, #f8fafc) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.form-check-input:checked {
    background-color: var(--color-primary, #4c6ab3) !important;
    border-color: var(--color-primary, #4c6ab3) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(76, 106, 179, 0.1) !important;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    margin-top: 1rem !important;
}

/* Form Floating */
.form-floating {
    position: relative !important;
    margin-bottom: 1.5rem !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    margin-top: 0.5rem !important;
}

/* Modal Content Spacing */
.auth-modal-content {
    padding: 2rem 1rem 2rem 1rem !important;
    box-sizing: border-box !important;
}

/* First Form Group Extra Spacing */
.form-group:first-of-type {
    margin-top: 2rem !important;
}

/* Social Login Grid */
.social-login-grid {
    padding: 0 1rem !important;
    margin: 1rem 0 !important;
    box-sizing: border-box !important;
}

/* Form Check */
.form-check {
    padding: 0 1rem !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
}

/* Validation Messages */
.validation-message {
    color: #e50000 !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
    display: block !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

.validation-summary {
    background: #fed7d7 !important;
    color: #c53030 !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    border: 1px solid #feb2b2 !important;
    margin: 1rem !important;
    box-sizing: border-box !important;
}

/* Text Center Links */
.text-center {
    padding: 0 1rem !important;
    margin: 1rem 0 !important;
    box-sizing: border-box !important;
}

/* Auth Divider */
.auth-divider {
    margin: 1rem !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

/* Theme Variables - Default Fallbacks */
:root {
    --color-primary: #4c6ab3;
    --color-primary-dark: #3f589c;
    --color-secondary: #6c757d;
    --color-accent: #17a2b8;
    --color-surface: #ffffff;
    --color-muted: #6b7280;
    --color-border: #e2e8f0;
    --color-text: #1a202c;
    --gradient-hero: linear-gradient(135deg, #d9ecff 0%, #f5fbff 100%);
    --gradient-cta: linear-gradient(135deg, #4c6ab3 0%, #2c5282 100%);
    --gradient-page-bg: linear-gradient(135deg, #e6f2ff 0%, #f7fbff 100%);
}

/* Units Page Filter Styles */
.units-page {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: var(--color-text, #1a202c);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-muted, #718096);
    font-size: 1.125rem;
}

.search-filters {
    background: var(--color-surface, white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary, #4c6ab3);
    box-shadow: 0 0 0 3px rgba(76, 106, 179, 0.1);
}

.search-btn {
    padding: 0.875rem 2rem;
    background: var(--color-primary, #4c6ab3);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--color-primary-dark, #3f589c);
    transform: translateY(-1px);
}

.basic-filters h3 {
    color: var(--color-text, #2d3748);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: var(--color-text, #4a5568);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: var(--color-surface, white);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary, #4c6ab3);
    box-shadow: 0 0 0 3px rgba(76, 106, 179, 0.1);
}

/* Date input styling */
input[type="date"].filter-select {
    color: var(--color-text, #4a5568);
    font-family: inherit;
}

input[type="date"].filter-select::-webkit-calendar-picker-indicator {
    color: var(--color-muted, #6b7280);
    cursor: pointer;
}

input[type="date"].filter-select::-webkit-calendar-picker-indicator:hover {
    color: var(--color-primary, #4c6ab3);
}

.advanced-filters-toggle {
    text-align: center;
    margin: 2rem 0;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--color-muted, #6b7280);
    border: 2px solid var(--color-border, #d1d5db);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: var(--color-surface, #f9fafb);
    border-color: var(--color-muted, #9ca3af);
    color: var(--color-text, #374151);
}

.advanced-filters {
    background: var(--color-surface, #f8fafc);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--color-border, #e2e8f0);
}

.advanced-filters h4 {
    color: var(--color-text, #2d3748);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text, #4a5568);
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--color-border, #d1d5db);
    border-radius: 4px;
    background: var(--color-surface, white);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--color-primary, #4c6ab3);
    border-color: var(--color-primary, #4c6ab3);
}

.filter-actions {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.btn-secondary {
    background: var(--color-secondary, #6b7280);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-muted, #4b5563);
    transform: translateY(-1px);
}

.results-summary {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-muted, #6b7280);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.loading-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border, #e2e8f0);
    border-top: 4px solid var(--color-primary, #4c6ab3);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-muted, #6b7280);
}

.no-results h3 {
    color: var(--color-text, #4a5568);
    margin-bottom: 0.5rem;
}

.load-more-section {
    text-align: center;
    margin: 2rem 0;
}

.btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border, #d1d5db);
    background: var(--color-surface, white);
    color: var(--color-text, #374151);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-surface, #f3f4f6);
    border-color: var(--color-muted, #9ca3af);
}

.pagination-btn.active {
    background: var(--color-primary, #4c6ab3);
    color: white;
    border-color: var(--color-primary, #4c6ab3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .units-page {
        padding: 1rem;
    }
    
    .search-filters {
        padding: 1.5rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Admin Page Styles */
.admin-page {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--gradient-page-bg, #f8fafc);
    min-height: 100vh;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--color-surface, white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    color: var(--color-text, #1a202c);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--color-muted, #718096);
    font-size: 1.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--color-surface, white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: 12px;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text, #1a202c);
    margin: 0;
}

.stat-content p {
    color: var(--color-muted, #718096);
    margin: 0;
    font-size: 0.875rem;
}

.admin-tabs {
    display: flex;
    background: var(--color-surface, white);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--color-muted, #6b7280);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--color-surface, #f3f4f6);
    color: var(--color-text, #374151);
}

.tab-button.active {
    background: var(--color-primary, #4c6ab3);
    color: white;
}

.tab-content {
    background: var(--color-surface, white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.tab-header h2 {
    color: var(--color-text, #1a202c);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-primary, #4c6ab3);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark, #3f589c);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary, #4c6ab3);
    border: 1px solid var(--color-primary, #4c6ab3);
}

.btn-outline:hover {
    background: var(--color-primary, #4c6ab3);
    color: white;
}

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

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

.btn-secondary {
    background: var(--color-secondary, #6b7280);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-muted, #4b5563);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    font-size: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.admin-table th {
    background: var(--color-surface, #f8fafc);
    font-weight: 600;
    color: var(--color-text, #374151);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    color: var(--color-text, #4a5568);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

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

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

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

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

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

.overview-card {
    background: var(--color-surface, #f8fafc);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border, #e2e8f0);
}

.overview-card h3 {
    color: var(--color-text, #1a202c);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.activity-list {
    space-y: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

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

.activity-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface, white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-content p {
    margin: 0;
    color: var(--color-text, #374151);
    font-weight: 500;
}

.activity-content small {
    color: var(--color-muted, #6b7280);
    font-size: 0.75rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--color-surface, white);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--color-text, #374151);
}

.action-btn:hover {
    background: var(--color-surface, #f8fafc);
    border-color: var(--color-primary, #4c6ab3);
    transform: translateY(-1px);
}

.action-icon {
    font-size: 1.5rem;
}

.status-list {
    space-y: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.success {
    background: #10b981;
}

.status-indicator.warning {
    background: #f59e0b;
}

.status-indicator.error {
    background: #ef4444;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: var(--color-surface, #f8fafc);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border, #e2e8f0);
}

.analytics-card h3 {
    color: var(--color-text, #1a202c);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-placeholder {
    background: var(--color-surface, white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    color: var(--color-muted, #6b7280);
    border: 2px dashed var(--color-border, #d1d5db);
}

.revenue-stats {
    space-y: 1rem;
}

.revenue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

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

.revenue-label {
    color: var(--color-muted, #6b7280);
    font-size: 0.875rem;
}

.revenue-value {
    font-weight: 600;
    color: var(--color-text, #1a202c);
}

.revenue-value.positive {
    color: #10b981;
}

.revenue-value.negative {
    color: #ef4444;
}

.popular-units {
    space-y: 0.75rem;
}

.popular-unit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-surface, white);
    border-radius: 8px;
    border: 1px solid var(--color-border, #e2e8f0);
}

.unit-name {
    font-weight: 500;
    color: var(--color-text, #374151);
}

.unit-count {
    color: var(--color-muted, #6b7280);
    font-size: 0.875rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: var(--color-surface, #f8fafc);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border, #e2e8f0);
}

.settings-card h3 {
    color: var(--color-text, #1a202c);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.setting-item {
    margin-bottom: 1.5rem;
}

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

.setting-item label {
    display: block;
    color: var(--color-text, #374151);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.setting-item .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.setting-item .form-control:focus {
    outline: none;
    border-color: var(--color-primary, #4c6ab3);
    box-shadow: 0 0 0 3px rgba(76, 106, 179, 0.1);
}

.setting-item .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.text-center {
    text-align: center;
    color: var(--color-muted, #6b7280);
    padding: 2rem;
}

/* Responsive Design for Admin */
@media (max-width: 768px) {
    .admin-page {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: center;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .overview-grid,
    .analytics-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Admin Navigation Item */
.dropdown-item.admin-item {
    background: var(--gradient-cta, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    font-weight: 600;
    border-radius: 6px;
    margin: 0.25rem 0;
}

.dropdown-item.admin-item:hover {
    background: var(--gradient-hero, linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%));
    color: white;
    transform: translateX(2px);
}

.dropdown-item.admin-item .icon {
    filter: brightness(0) invert(1);
}