html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}
.logon-main-container {
    background-image: url('../images/office.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* If the above doesn't work, try targeting the card class as well */
.logon-main.card {
    position: relative;
    top: -200px;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 180px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

/*.main-toolbar.py-3.px-2.px-sm-3 {
    display: none !important;
}*/


.image-wrapper {
    position: relative;
}

.image-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.image-wrapper img + .image-status {
    display: block;
}


.ailoading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh; /* Adjust to fit your needs */
}

.ailoading img {
        width: 400px; /* Adjust the size of the GIF */
        height: 144px; /* Adjust the size of the GIF */
}

.cw-300 {
    width: 300px;
}

.cw-320 {
    width: 100%;
}
/* Add this to your site's CSS or within a <style> tag in the Razor component */
.productive-row {
    background-color: lightgreen;
}

.unproductive-row {
    background-color: orangered;
}

.noa-row {
    background-color: yellow;
}

.resume-row {
    background-color: lightsteelblue;
}

.idle-row {
    background-color: yellowgreen;
}

.img-magnifier-glass {
    position: absolute;
    border: 3px solid #000;
    border-radius: 50%;
    cursor: none;
    /* Set the size of the magnifier glass: */
    width: 200px;
    height: 200px;
}
.notification {
    border: 1px solid #007bff; /* Blue border */
    background-color: #f0f8ff; /* Light blue background */
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.instructions-container {
    margin: 20px 0;
}

.instructions-textbox {
    width: 100%;
    height: 500px; /* Adjust height as necessary */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8; /* Light grey background to indicate read-only state */
    resize: none; /* Disable resizing */
}
.treeview-icon-folder {
    background-image: url("images/icons/folder-color.svg");
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    background-size: contain;
    background-position: center center;
}

/* Active Blazor app shared UI layer */
:root {
    --slatebrand-50: #eef4ff;
    --slatebrand-100: #dce8ff;
    --slatebrand-300: #98b6ff;
    --slatebrand-700: #2d3c75;
    --slatebrand-800: #1f2b56;
    --slatebrand-900: #112047;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border-soft: rgba(148, 163, 184, 0.24);
    --shadow-soft: 0 22px 48px rgba(15, 23, 42, 0.08);
}

html, body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 18%, #f8fafc 44%, #f8fafc 100%);
}

#blazor-error-ui {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 1rem 1.25rem;
    width: auto;
    height: auto;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.3);
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    color: #fff;
    margin-left: 0.75rem;
}

.bg-grid {
    position: relative;
}

.bg-grid::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0));
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.animate-fade-in {
    animation: fade-in 220ms ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-brand-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 15rem;
    padding-right: 1.75rem;
    border-right: 1px solid rgba(203, 213, 225, 0.65);
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: radial-gradient(circle at 38% 38%, #8df4d8 0%, #48c6cf 25%, #1b5b84 58%, #112047 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 16px 28px rgba(17, 32, 71, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-brand-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 0 18px rgba(255,255,255,0.65);
}

.nav-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-desktop-shell {
    min-width: 0;
    flex: 1;
}

.nav-primary-strip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    color: #475569;
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 700;
    transition: all 160ms ease;
    white-space: nowrap;
}

.nav-pill:hover {
    background: #f8fafc;
    color: var(--slatebrand-900);
}

.nav-pill.active {
    color: #fff;
    background: linear-gradient(135deg, #33427d 0%, #273566 100%);
    box-shadow: 0 12px 24px rgba(39, 53, 102, 0.22);
}

.nav-pill-icon,
.nav-workspace-trigger-icon,
.nav-panel-link-icon,
.nav-mobile-link-icon,
.nav-mobile-group-icon,
.nav-user-chip-icon,
.nav-auth-btn-icon,
.nav-mobile-btn-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--slatebrand-700);
    flex-shrink: 0;
}

.nav-pill.active .nav-pill-icon {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-menu-group {
    position: relative;
}

.nav-workspace-trigger,
.nav-auth-btn,
.nav-mobile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255,255,255,0.98);
    color: #334155;
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.nav-workspace-trigger:hover,
.nav-auth-btn:hover,
.nav-mobile-btn:hover {
    border-color: rgba(148, 163, 184, 0.9);
    color: var(--slatebrand-900);
}

.nav-menu-trigger-active {
    border-color: rgba(152, 182, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(152, 182, 255, 0.15);
}

.nav-menu-chevron {
    color: #64748b;
    display: inline-flex;
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255,255,255,0.95);
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
}

.nav-workspace-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 1rem);
    width: min(34rem, 88vw);
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.16);
    z-index: 60;
}

.nav-workspace-section + .nav-workspace-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-workspace-section-trigger,
.nav-mobile-group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
}

.nav-workspace-head,
.nav-mobile-group-copy {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.nav-workspace-section-title,
.nav-mobile-group-title,
.nav-panel-link-title,
.nav-mobile-link-title {
    display: block;
    color: var(--slatebrand-900);
    font-weight: 700;
}

.nav-workspace-section-text,
.nav-mobile-group-text,
.nav-panel-link-text,
.nav-mobile-link-text {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.35;
}

.nav-menu-grid,
.nav-workspace-links {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.nav-panel-link,
.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: background-color 140ms ease, transform 140ms ease;
}

.nav-panel-link:hover,
.nav-mobile-link:hover,
.nav-panel-link.active,
.nav-mobile-link.active {
    background: #f8fafc;
    transform: translateY(-1px);
}

@media (max-width: 1279px) {
    .nav-brand-shell {
        min-width: auto;
        padding-right: 0;
        border-right: 0;
    }
}

.text-slatebrand-900 {
    color: var(--slatebrand-900);
}

.border-slatebrand-300 {
    border-color: var(--slatebrand-300);
}

.dashboard-page {
    position: relative;
}

.dashboard-surface {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.dashboard-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1rem;
    background: #fff;
}

.dashboard-card-muted {
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.dashboard-metric {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.dashboard-modal {
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.99);
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.22);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    padding: 0.68rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(152, 182, 255, 0.18);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    border-color: #112047;
    background: linear-gradient(135deg, #112047 0%, #273566 100%);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    border-color: #1f2b56;
    background: linear-gradient(135deg, #1f2b56 0%, #33427d 100%);
}

.btn-secondary {
    border-color: rgba(148, 163, 184, 0.4);
    background: #fff;
    color: #334155;
}

.btn-secondary:hover:not(:disabled) {
    border-color: rgba(148, 163, 184, 0.7);
    background: #f8fafc;
    color: #0f172a;
}

.btn-ghost {
    border-color: transparent;
    background: rgba(248, 250, 252, 0.8);
    color: #334155;
}

.btn-ghost:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-danger {
    border-color: rgba(251, 113, 133, 0.35);
    background: #fff1f2;
    color: #be123c;
}

.btn-danger:hover:not(:disabled) {
    border-color: rgba(244, 63, 94, 0.45);
    background: #ffe4e6;
    color: #9f1239;
}

.btn-success {
    border-color: rgba(74, 222, 128, 0.35);
    background: #ecfdf3;
    color: #166534;
}

.btn-success:hover:not(:disabled) {
    border-color: rgba(34, 197, 94, 0.42);
    background: #dcfce7;
    color: #14532d;
}

.btn-warning {
    border-color: rgba(251, 191, 36, 0.35);
    background: #fffbeb;
    color: #92400e;
}

.btn-warning:hover:not(:disabled) {
    border-color: rgba(245, 158, 11, 0.42);
    background: #fef3c7;
    color: #78350f;
}

.btn-sm {
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
}

.btn-xs {
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.77rem;
    border-radius: 0.75rem;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.95rem;
    background: #fff;
    color: #0f172a;
    padding: 0.72rem 0.9rem;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.65), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.form-control:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(100, 116, 139, 0.55);
}

.form-control::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(152, 182, 255, 0.95);
}

.form-textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-check {
    accent-color: var(--slatebrand-900);
}

.table-shell {
    overflow-x: auto;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1rem;
    background: #fff;
}

.table-base {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.92rem;
    color: #475569;
}

.table-head {
    background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.table-row td {
    border-top: 1px solid rgba(241, 245, 249, 0.95);
}

.table-row:hover td {
    background: rgba(248, 250, 252, 0.82);
}

.segmented-control {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.94);
}

.segmented-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.segmented-button:hover {
    background: rgba(255,255,255,0.9);
    color: #0f172a;
}

.segmented-button.active {
    background: linear-gradient(135deg, #112047 0%, #273566 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(17, 32, 71, 0.18);
}

@media (max-width: 768px) {
    .dashboard-surface,
    .dashboard-modal {
        padding: 1.1rem;
        border-radius: 1.15rem;
    }

    .btn {
        width: 100%;
    }
}
