/* =========================================
   SOV Manager – MudBlazor Compatible Styles
   ========================================= */

/* --- Base --- */
html,
body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- Login Page --- */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #42A5F5 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: #1565C0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
    background: #ffffff;
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1565C0;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    margin-top: 8px;
}

.login-btn:hover {
    background: #0D47A1;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.login-btn:disabled {
    background: #90CAF9;
    cursor: not-allowed;
}

/* --- Page Header (used inside MudMainContent) --- */
.page-header {
    margin-bottom: 24px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* --- Blazor Error UI --- */
#blazor-error-ui {
    background: #fef2f2;
    color: #dc2626;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    z-index: 1000;
    border-top: 1px solid #fecaca;
    display: none;
}

/* --- Table Inline Edit Styling --- */
.mud-table-cell .mud-input-root {
    font-size: 0.875rem !important; /* Match default table cell font-size (Typo.body2) */
}

.mud-table-cell .mud-input-slot {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: 1.5em !important;
}

.mud-table-cell .mud-input-control {
    margin-top: 0 !important;
}