/* Shared CSS */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --text-color: #2b2d42;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --sidebar-width: 220px;
}
.alert-warning {
    color: #664d03;
    background: linear-gradient(to right, #fff3cd, #ffecb5);
    border-left: 4px solid #ffc107;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    margin: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    height: 300%;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    height: 300vh;

}

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--light-gray);
}

/* Navigation styles */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: aqua;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.nav-item:hover {
    color: wheat;
}

.nav-item.active {
    background-color: wheat;
    color: var(--primary-color);
    font-weight: 500;
    border-left: 3px solid var(--primary-color);
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.25rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Form styles */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(72, 149, 239, 0.25);
}

/* Utility classes */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
}

.blazor-error-boundary {
    background: #dc3545;
    color: white;
    padding: 1rem;
    border-radius: 4px;
}
.main-heading {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 2rem;
    font-weight: 700;
    background: none;
    padding: 0;
    text-shadow: none;
}
/* Keep all your existing styles exactly as provided */
.user-management {
    font-family: 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.user-table-container {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

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

.header-row th {
    padding: 12px 15px;
    text-align: left;
    background-color: #f5f5f5;
    font-weight: 600;
}

.divider-row td {
    height: 1px;
    padding: 0;
    background-color: #e0e0e0;
}

.user-row td {
    padding: 12px 15px;
    vertical-align: top;
}

.user-row:hover {
    background-color: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-badge.active {
    color: #2e7d32;
}

.status-badge.banned {
    color: #c62828;
}

.ban-info div {
    margin-bottom: 4px;
    font-size: 0.9em;
}

.ban-info div:last-child {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
}

.ban-btn {
    background-color: #ffebee;
    color: #c62828;
}

.unban-btn {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.edit-btn {
    background-color: #e3f2fd;
    color: #1565c0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    width: 400px;
    max-width: 90%;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    background-color: #f5f5f5;
}

.confirm-btn {
    background-color: #1565c0;
    color: white;
}

.validation-error {
    color: #dc3545;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

.form-control:invalid {
    border-color: #dc3545;
}
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.user-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.list-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.add-btn {
    background-color: #e3f2fd;
    color: #1565c0;
    margin-top: 8px;
}

.remove-btn {
    background-color: #ffebee;
    color: #c62828;
}

/* Make sure form controls look consistent */
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}
.loading-indicator {
    padding: 20px;
    text-align: center;
    color: #666;
}

.no-users {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.user-management {
    position: relative;
    min-height: 200px;
}

.dot-pulse-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 60px;
}

.dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f46e5; /* Vibrant indigo */
    animation: pulse 1.4s infinite ease-in-out both;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
     0%, 80%, 100% {
         transform: scale(0.8);
         opacity: 0.7;
     }
     40% {
         transform: scale(1.2);
         opacity: 1;
         background: #6366f1; /* Lighter blue on pulse */
     }
 }






.kim {
    font-size: 2.0rem;
}
/* Temporary fallback until Font Awesome loads */
.fas::before {
    content: "▶"; /* Fallback character */
    font-family: initial; /* Reset font family */
}

/* Specific icon fallbacks */
.fa-chevron-left::before { content: "←"; }
.fa-chevron-right::before { content: "→"; }
.fa-angle-double-left::before { content: "«"; }
.fa-angle-double-right::before { content: "»"; }
.fa-trash-alt::before { content: "🗑"; }
.fa-times::before { content: "×"; }


@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .main-content {
        padding: 1rem;
    }
}