/* =====================================================
   APP.CSS
   Layout & App-Specific Styles
   ===================================================== */

/*#region BASE RESET */
html, body {
    height: 100%;
    margin: 0;
    font-family: Inter, Segoe UI, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--mud-palette-primary);
    text-decoration: none;
}
/*#endregion */

/*#region APP ROOT */
#app {
    min-height: 100vh;
}

.page-container {
    padding: 16px;
}

@media (max-width: 960px) {
    .page-container {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 8px;
    }
}
/*#endregion */

/*#region MUDBLAZOR TUNING */
.mud-button-root {
    line-height: 1 !important;
}

.mud-input-control > label {
    font-size: 0.8rem;
}

.mud-input {
    font-size: 0.9rem;
}
/*#endregion */

/*#region SIDEBAR CONTENT */
.sidebar-menu {
    padding-top: 12px;
}

.sidebar-brand {
    font-weight: 600;
    font-size: 0.9rem;
}

.brand-text {
    margin-left: 8px;
}

.sidebar-user-chip {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}
/*#endregion */

/*#region FORM VALIDATION */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--mud-palette-success);
}

.invalid {
    outline: 1px solid var(--mud-palette-error);
}

.validation-message {
    color: var(--mud-palette-error);
    font-size: 0.75rem;
}
/*#endregion */

/*#region LOADING */
.loading-progress {
    position: absolute;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: auto;
}
/*#endregion */

/*#region BANNERS */
.elearning-banner {
    height: 320px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.banner-overlay {
    background: rgba(0,0,0,0.45);
    color: white;
    padding-left: 32px;
}
/*#endregion */

/*#region SNACKBAR */
.mud-snackbar-provider,
.mud-snackbar-container {
    z-index: 5000 !important;
}

.mud-snackbar-location-top-right,
.mud-snackbar-location-top-left,
.mud-snackbar-location-top-center {
    top: calc(var(--topbar-height) + 12px) !important;
}
/*#endregion */

/* #region TABLER-STYLE TABLES (MudBlazor)*/ 

/* Table container */
.mud-table {
    background-color: transparent;
}

    /* Header */
    .mud-table thead th {
        background-color: transparent;
        color: var(--mud-palette-text-secondary);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1px solid var(--mud-palette-divider);
        padding: 12px 16px;
    }

    /* Rows */
    .mud-table tbody tr {
        background-color: transparent;
        transition: background-color 0.15s ease;
    }

        /* Hover (Tabler subtle hover) */
        .mud-table tbody tr:hover {
            background-color: color-mix( in srgb, var(--mud-palette-surface) 96%, white );
        }

    /* Cells */
    .mud-table tbody td {
        border-bottom: 1px solid var(--mud-palette-divider);
        padding: 12px 16px;
    }

/* Zebra striping (VERY subtle) */
.mud-table-striped tbody tr:nth-child(even) {
    background-color: color-mix( in srgb, var(--mud-palette-surface) 98%, white );
}

/* Dense tables */
.mud-table-dense tbody td {
    padding: 8px 12px;
}
/*#endregion */

