﻿:root {
    --DarkHightlight: #000000cc;
    --DarkHighlight: #000000cc;
    --LightBackgroundGradient: radial-gradient(circle,rgba(191, 191, 191, 1) 7%, rgba(219, 219, 219, 1) 39%, rgba(140, 140, 140, 1) 100%);
    --DarkBackgroundGradient: linear-gradient(137deg,rgba(64, 64, 64, 1) 6%, rgba(48, 48, 48, 1) 46%, rgba(56, 56, 56, 1) 80%);
}

html.light-gradient {
    background: var(--LightBackgroundGradient);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    body {
        background: none;
    }
}
html.dark-gradient {
    background: var(--DarkBackgroundGradient);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    body {
        background: none;
    }
}

.dark-gradient {
    .mud-link {
        color: var(--mud-palette-success-lighten) !important;
    }
}

/* MudToolWindow Styles */

.tool-window {
    padding: 4px 0 1rem !important;
    position: relative;
}

.tool-window-container {
    position: relative;
    padding: 1rem;
    padding-bottom: 55px !important;
    background-color: var(--DarkHightlight);
    border-bottom: 2px solid var(--mud-palette-table-striped);
    min-height: 15vh;
    
    .white-input {
        .mud-input, .mud-input-label {
            color: var(--mud-palette-white) !important;    
        }
    }    
}

.tool-window-footer {
    position: absolute;
    background-color:var(--DarkHighlight);
    bottom: 18px;
    left: 1px;
    padding: 0.75vh;
    width: 100%;

    h6 {
        font-size: 1.2rem;
        color: var(--mud-palette-white) !important;
        
        .mud-icon-root {
            color: var(--mud-palette-white) !important;
        }
    }
}

/* Media for small screens */
@media (max-width: 768px) {
    .tool-window {
        padding-top: 0 !important;
    }
    
    .tool-window-footer {
        h6 {
            font-size: 1.0rem;
            color: var(--mud-palette-white) !important;

            .mud-icon-root {
                color: var(--mud-palette-white) !important;
            }
        }
    }
}

/* ======= Base Layout Styling ======== */

/* Nav drawer is theme-aware: MudDrawer paints itself from the active palette's
   DrawerBackground/DrawerText/DrawerIcon slots (white in Light, warm near-black in
   Dark, brand walnut in Lumber), and the link styling lives in NavMenu.razor.css.
   This block only adds what the drawer's own root needs — a flat, modern hairline
   edge instead of a shadow (the drawer renders Elevation="0"). The old wood-plank
   background image + Bevan "engraved" text treatment was removed 2026-08-26; its
   `!important` text color was also what kept the active-link color from ever
   rendering. */
#nav-drawer {
    border-right: 1px solid var(--mud-palette-divider);
}

/* When the mini rail is collapsed to icons, ease the nav's side padding so the
   48px icon buttons stay centered inside the narrow rail. */
#nav-drawer.mud-drawer-mini.mud-drawer--closed .nav-menu {
    padding-left: 4px;
    padding-right: 4px;
}

.background-gradient-light {
    background: linear-gradient(to right, #2b5db3, #15151a);
}

.background-gradient-dark {
    background: linear-gradient(to right, #1a1a27, #2b5db3);
}

/* ======= End Base Layout Styling ======== */
/* - MudList
   Theme-aware (was hardcoded true-black bg + true-white text, which painted every
   dropdown/select list as a black panel even in the Light and Lumber themes). */
.mud-list {
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}
.mud-list-item-icon {
    color: var(--mud-palette-action-default);
}

/* - Mud Tab Panel */
.mud-tabs {
    background-color: var(--mud-palette-background);
}

.mud-tabs-tabbar {
    background-color: var(--mud-palette-background);
    .mud-tab.mud-tab-active {
        color: var(--mud-palette-primary-lighten);
    }
}

/* - Mud Expand Panels */
.mud-expand-panel {
    background-color: var(--mud-palette-background-gray);
}

/* - Mud Dialog */
.mud-dialog {
    background-color: var(--mud-palette-background);
}


.mud-dialog-title:not(.simple-header) {
    background-color: var(--mud-palette-primary);
    border-bottom: black 1px solid;

    .mud-typography {
        .mud-icon-root {
            vertical-align: sub;
            margin-right: 0.25rem;
        }
    }

    .mud-button-close .mud-icon-root {
        color: white;
    }
}

/* - Mud Card Styling */

.mud-card.mud-paper {
    background-color: var(--mud-palette-background);
}

.mud-card-header {
    background-color: var(--mud-palette-primary);
    border-bottom: black 1px solid;
    color: white;
}

.mud-card-header {

    background-color: var(--mud-palette-primary);
    border-bottom: black 1px solid;
    
    .mud-typography {
        .mud-icon-root {
            vertical-align: sub;
            margin-right: 0.25rem;
        }
    }
    
    .mud-button-close .mud-icon-root {
        color: white;
    }
}

.mud-dialog-title {
    margin-bottom: 0.5vh !important;
}

/* - Mud Button */
.mud-button-root {
    .mud-button-label {
        line-height: 1.25;
        align-items:center;
    }
}

/* - Mud Input */
.mud-input-control.mud-input-text-with-label.mud-input-input-control {
    margin-top: 5px;
}
.mud-input-control.mud-input-outlined-with-label.mud-input-input-control {
    margin-top: 12px;
}





/* - Mud Table

   Inherited from the "PRO" template this project was scaffolded from. It used to also set
   `.mud-table-root .mud-table-head .mud-table-cell { color: var(--mud-palette-white) !important }`
   directly alongside a `background-color: var(--mud-palette-surface)` header — i.e. white text on
   a white band, which made the header row of every MudTable in the app invisible. Removed
   2026-08-22 when the first real table (the /quotes list) was built and hit it.

   The `!important` flags are gone too: these are app-wide defaults, and a page that wants to
   style its own table (as /quotes does) should be able to win with ordinary specificity rather
   than having to escalate to !important itself. */
.mud-table {
    background-color: var(--mud-palette-background-gray);
}

.mud-table-head .mud-table-row th {
    background-color: var(--mud-palette-surface);
}



.mud-divider.gap {
    margin-top: .25rem;
    margin-bottom: .4rem;
}

