@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
}

/* ?? Layout ?? */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: #1e2a3a;
    color: #cdd6e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    font-size: 1.1rem;
    color: #fff;
    border-bottom: 1px solid #2d3f52;
}

.sidebar-nav {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav .nav-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7f93;
    padding: 0.75rem 1rem 0.25rem;
}

.sidebar-nav .nav-link {
    color: #b0bec5;
    padding: 0.5rem 1rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff;
    background-color: #2d3f52;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ?? Topbar ?? */
.topbar {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1e2a3a;
}

.topbar-user {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
}

.btn-topbar-user {
    color: #495057;
    background: none;
    border: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
}

.btn-topbar-user:hover,
.btn-topbar-user:focus,
.btn-topbar-user.show {
    color: #1e2a3a;
    background-color: #f0f2f5;
    border-radius: 0.375rem;
}

.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.topbar-user .dropdown-menu {
    z-index: 1001;
}

/* ?? Stat Cards ?? */
.stat-card {
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card__label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.stat-card--blue   { background-color: #1b6ec2; }
.stat-card--green  { background-color: #28a745; }
.stat-card--orange { background-color: #fd7e14; }
.stat-card--purple { background-color: #6f42c1; }

/* ?? Misc ?? */
.btn-xs {
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
}

h1:focus { outline: none; }

a, .btn-link { color: #1b6ec2; }

.content { padding-top: 1.1rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid red; }
.validation-message { color: red; }

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

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

/* ?? Status-Timeline ?? */
.status-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

.status-timeline__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    color: #adb5bd;
    font-size: 0.875rem;
    text-align: center;
}

.status-timeline__item::before {
    content: '';
    position: absolute;
    top: 9px;
    left: -50%;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.status-timeline__item:first-child::before { display: none; }

.status-timeline__item--done { color: #212529; }

.status-timeline__item--done::before { background-color: #28a745; }

.status-timeline__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dee2e6;
    border: 3px solid #dee2e6;
    z-index: 1;
    margin-bottom: 0.4rem;
}

.status-timeline__item--done .status-timeline__dot {
    background-color: #28a745;
    border-color: #28a745;
}

/* ?? Login ?? */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e2a3a;
}

.login-box {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.login-logo {
    text-align: center;
    font-size: 1.5rem;
    color: #1e2a3a;
}

/* ?? Google Sign-In Button ?? */
.btn-google {
    background-color: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #c6c6c6;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #adb5bd;
    font-size: 0.85rem;
    margin: 1rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.login-divider span {
    padding: 0 0.75rem;
}
