/* Loading Screen */
.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

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

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Custom Styles */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 8px;
}

/* Card Styles */
.stat-card {
    text-align: center;
    padding: 16px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--mud-palette-primary);
}

.stat-label {
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

/* Form Styles */
.form-section {
    margin-bottom: 24px;
}

.form-section-title {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.required-indicator {
    color: var(--mud-palette-error);
    margin-left: 2px;
}

/* Table Styles */
.table-actions {
    display: flex;
    gap: 4px;
}

/* Status Colors */
.status-active { color: var(--mud-palette-success); }
.status-pending { color: var(--mud-palette-warning); }
.status-inactive { color: var(--mud-palette-text-secondary); }
.status-error { color: var(--mud-palette-error); }

/* Money Display */
.money-positive { color: var(--mud-palette-success); }
.money-negative { color: var(--mud-palette-error); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--mud-palette-text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 16px;
}

/* Auth Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title {
    text-align: center;
    margin-bottom: 24px;
}

/* Dashboard Widgets */
.dashboard-widget {
    height: 100%;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Navigation */
.nav-brand {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.nav-brand h6 {
    margin: 0;
    color: var(--mud-palette-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        gap: 16px;
    }

    .page-actions {
        width: 100%;
        justify-content: stretch;
    }

    .page-actions .mud-button {
        flex: 1;
    }
}
