:root {
    /* Light Mode (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-subtle: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-default: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-interactive: #94a3b8;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-disabled: #94a3b8;
    
    /* MudBlazor Compatible Variables */
    --mud-palette-surface: #ffffff;
    --mud-palette-background: #f8fafc;
    --mud-palette-background-grey: #f1f5f9;
    --mud-palette-text-primary: #1e293b;
    --mud-palette-text-secondary: #64748b;
    --mud-palette-divider: #e2e8f0;
    --mud-palette-primary: #3b82f6;
    --mud-palette-primary-darken: #1d4ed8;
    --mud-palette-primary-lighten: #dbeafe;
    --mud-palette-success: #10b981;
    --mud-palette-success-lighten: #ecfdf5;
    --mud-palette-warning: #f59e0b;
    --mud-palette-warning-lighten: #fffbeb;
    --mud-palette-error: #ef4444;
    --mud-palette-info: #0ea5e9;
    
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    /* Secondary Colors */
    --secondary-500: #6366f1;
    --secondary-600: #4f46e5;
    --tertiary-purple-900: #581c87;
    --tertiary-purple-500: #8b5cf6;
    --tertiary-purple-400: #9c69c7;
    --tertiary-purple-100: #f3e8ff;
    /* Semantic Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --error: #ef4444;
    --dark-error: #991c1b;
    --error-bg: #fef2f2;
    --info: #0ea5e9;
    --info-bg: #f0f9ff;
    --success-100: #d1fae5;
}

    :root[data-theme="dark"] {
        /* Foundation */
        --bg-primary: #0f0f0f;
        --bg-secondary: #1a1a1a;
        --bg-tertiary: #262626;
        --bg-hover: #404040;
        /* Borders */
        --border-subtle: #2a2a2a;
        --border-default: #3a3a3a;
        --border-strong: #525252;
        /* Text */
        --text-primary: #f4f4f5;
        --text-secondary: #e4e4e7;
        --text-muted: #a1a1aa;
        --text-disabled: #71717a;
        
        /* MudBlazor Compatible Variables - Dark Mode */
        --mud-palette-surface: #1a1a1a;
        --mud-palette-background: #0f0f0f;
        --mud-palette-background-grey: #262626;
        --mud-palette-text-primary: #f4f4f5;
        --mud-palette-text-secondary: #a1a1aa;
        --mud-palette-divider: #3a3a3a;
        --mud-palette-primary: #3b82f6;
        --mud-palette-primary-darken: #1e40af;
        --mud-palette-primary-lighten: #1e3a8a;
        --mud-palette-success: #10b981;
        --mud-palette-success-lighten: #064e3b;
        --mud-palette-warning: #f59e0b;
        --mud-palette-warning-lighten: #92400e;
        --mud-palette-error: #ef4444;
        --mud-palette-info: #06b6d4;
        
        /* Primary Colors */
        --primary-900: #1e3a8a;
        --primary-800: #1e40af;
        --primary-600: #2563eb;
        --primary-500: #3b82f6;
        --primary-400: #60a5fa;
        /* Secondary Colors */
        --secondary-900: #312e81;
        --secondary-700: #4338ca;
        --secondary-500: #6366f1;
        --secondary-400: #818cf8;
        /* Tertiary Colors */
        --tertiary-purple-900: #581c87;
        --tertiary-purple-500: #8b5cf6;
        --tertiary-cyan-500: #06b6d4;
        --tertiary-emerald-500: #10b981;
        --tertiary-amber-500: #f59e0b;
        --tertiary-red-500: #ef4444;
        /* Semantic Colors */
        --success: #10b981;
        --warning: #fffbeb;
        --error: #ef4444;
        --dark-error: #991c1b;
        --info: #06b6d4;
        --success-bg: #064e3b;
        --warning-bg: #f59e0b;
        --success-100: #d1fae5;
    }
    
        
:root[data-theme="dark"] .mud-input-helper-text {
    color: var(--text-muted) !important;
    background-color: transparent !important;
}
        
html, body {
    font-family: "Manrope", Arial, serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

a, .btn-link {
    color: #006bb7;
}

.mud-drawer-mini .mud-nav-link {
    justify-content: center !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.tab-item {
    background: #ffffff;
    padding-right: 20px;
    padding-left: 20px;
}

.tab-content {
    background: #ffffff !important;
    padding-top: 3px;
    margin-top: 30px;
}

.submit-btn.mud-disabled {
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: rgba(0, 0, 0, 0.5) !important;
}

.mud-tabs-tabbar {
    border-bottom: solid #E9E9E9 !important;
    border-bottom-width: 0.4px !important;
    box-shadow: 0px 3px 3.5px -2px rgba(0, 0, 0, 0.12) !important;
}

.mud-tabs .mud-tab-active {
    transition: none !important;
    z-index: 20;
}

/*.mud-tabs .mud-tabs-toolbar .mud-tooltip-root .mud-tab-active {*/
/*    color: #940000 !important;*/
/*}*/

.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.profile-btn {
    box-shadow: 0px 0px 1.5px 0px rgba(0, 0, 0, 0.12) !important;
}

    .profile-btn .mud-button {
        text-transform: none !important;
    }

.client-active .profile-btn .mud-button {
    text-transform: none !important;
}

.profile-btn, .profile-btn * {
    border: none !important;
    outline: none !important;
}

    .profile-btn .mud-button-icon-end svg {
        fill: #1c1c1c !important;
    }

.questionnaire-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.save-btn {
    min-width: 125px;
}

.save-btn-preview {
    min-width: 75px;
}

    .save-btn-preview .mud-typography {
        font-size: 11px !important;
    }


@media (min-width: 600px) {
    .header .mud-toolbar-gutters {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 1503px) {
    .header {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}

.header .mud-toolbar-gutters {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 1504px) {
    .header {
        width: 1400px !important;
    }
}

.responsive-logo {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.active-row {
    font-weight: bold;
    border-left: 5px solid #28a745;
    transition: background-color 0.3s ease;
}

.active-client {
    border: 1px solid #28a745;
}

.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    padding-left: 15px !important;
}

.navbar-item a {
    margin: 8px 15px;
}

button.mud-nav-link:focus {
    background-color: transparent !important;
}

button.mud-nav-link:hover {
    background-color: transparent !important;
}

.navbar-item .mud-nav-link {
    padding: 7px 10px;
    border-radius: 8px;
}

    .navbar-item .mud-nav-link.active {
        border-inline-end: none !important;
    }

.mud-nav-link:hover {
    color: inherit !important;
}

.upload-logo-button {
    width: 250px;
    height: 130px;
    border: 1px solid #616161;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 4px;
}

    .upload-logo-button:hover {
        background-color: #f8f9fa;
        transform: scale(1.05);
        cursor: pointer;
    }

.upload-logo-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.upload-logo-button .mud-icon {
    font-size: 48px;
    color: #940000;
}

.grid-item-description {
    margin-top: 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.app-bar {
    background-color: #eeeeee88;
    width: 100%;
    margin: 0 auto;
    padding-top: 12px;
    display: flex;
}

.mud-list-item-text p {
    font-size: 14px !important;
}

.centered-items {
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width-tooltip .mud-tooltip-root {
    width: 100% !important;
}

.full-width-tooltip .mud-button-label {
    justify-content: flex-start !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.stat-name {
    text-transform: uppercase;
    font-size: 10px;
    width: 100%;
}
.error-badge {
    z-index: 999 !important;
    color: #e50000 !important;
    background-color: transparent !important;
}

.error-badge svg {
    width: 20px;
    height: 20px;
    z-index: 999 !important;
    
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.placeholder-image {
    background-color: #f5f5f5;
    display: flex;
    width: 100%;
    height: 80px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #888;
    border-radius: 10px;
    object-fit: contain;
}

.questionnaire-tree .mud-treeview-item-arrow {
    display: none !important;
}

.filter-input .mud-select {
    display: flex !important;
    align-items: flex-end !important;
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    justify-content: center;
    border-radius: 4px;
}

.icon-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

    .icon-item:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .icon-item.selected {
        background-color: rgba(0, 0, 0, 0.2);
    }

.actions-title {
    font-size: 14px;
    font-weight: 600;
    color: #940000;
    margin-bottom: 4px;
}

.page-container.mud-grid-spacing-xs-6 {
    width: 100% !important;
}

.mud-divider.bolder-divider {
    opacity: 1 !important;
    height: 2px;
}

.multi-line-textfield .mud-input textarea {
    overflow-y: auto !important;
    resize: vertical;
    max-height: 200px;
}

.label-question {
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 15px;
}

.fixed-appbar {
    border-bottom: 0.5px #e9ebee solid;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .fixed-appbar.dark {
        border-color: var(--border-subtle) !important;
    }

.email-menu-container {
    border: 0.5px solid var(--border-default) !important;
    border-radius: 8px;
}

.change-password-btn .mud-tooltip-inline {
    width: 100% !important;
}

.gradient.mud-picker-static {
    min-width: 200px !important;
    max-width: 250px !important;
}

.drawer {
    border-color: #e9ebee !important;
    transition: background-color 0.3s ease;
}

    .drawer.dark {
        border-color: var(--border-subtle) !important;
    }

.delete-dialog .mud-dialog-actions {
    width: 100% !important;
}

.delete-dialog .mud-dialog-title {
    display: none;
}

.mud-table .mud-table-container .mud-table-root thead tr {
    background-color: var(--bg-tertiary) !important;
}

    .mud-table .mud-table-container .mud-table-root thead tr th {
        font-weight: 600 !important;
        font-size: 11px !important;
        color: var(--text-muted) !important;
    }

.mud-table-toolbar {
    border-bottom: 0.5px var(--border-default) solid;
}

.mud-table-body:first-child {
    border-top: none !important;
}

.thick-bars .mud-chart-bar {
    width: 80% !important;
}

.sanction-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

.entity-selector {
    position: relative;
}

.entity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.entity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

    .entity-tag:hover {
        background-color: #f1f5f9;
        border-color: #d1d5db;
    }

    .entity-tag.selected {
        background-color: #dbeafe;
        border-color: #3b82f6;
        color: #1e40af;
    }

        .entity-tag.selected::before {
            content: '✓';
            margin-right: 4px;
            font-size: 11px;
        }

.activity-card {
    /*border: 1px var(--border-default) solid;*/
    /*border-radius: 12px;*/
    padding: 10px;
    margin-bottom: 24px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-default);
}

.date-chip {
    font-weight: 600;
}

.timeline-item .time {
    opacity: .75;
    white-space: nowrap;
}

.timeline-item .row {
    display: flex;
    align-items: center;
}

.mud-timeline-item-dot-inner {
    width: 10px !important;
    height: 10px !important;
}

.grid-stack-item-content {
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 8px;
    height: 100%;
    bottom: 40px !important;
    position: relative !important;
}

.gs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.drag-handle {
    cursor: move;
    user-select: none;
}

.branding-side {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

    .branding-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23475569' fill-opacity='0.04'%3E%3Cpath d='M20 20h40v40H20V20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        animation: float 30s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateX(-8px) translateY(-8px);
    }

    50% {
        transform: translateX(8px) translateY(8px);
    }
}

.brand-content {
    text-align: center;
    z-index: 1;
    max-width: 400px;
}

.brand-logo {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}


.brand-subtitle {
    font-size: 20px;
    color: #475569;
    margin-bottom: 60px;
    font-weight: 500;
}

.brand-description {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
}

.login-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

    .login-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 75% 25%, rgba(220, 38, 38, 0.04) 0%, transparent 50%), radial-gradient(circle at 25% 75%, rgba(31, 41, 55, 0.02) 0%, transparent 50%), radial-gradient(circle at 60% 60%, rgba(220, 38, 38, 0.02) 0%, transparent 40%);
        pointer-events: none;
    }

    .login-side::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23475569' fill-opacity='0.02'%3E%3Ccircle cx='50' cy='50' r='4'/%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='80' cy='80' r='3'/%3E%3Ccircle cx='80' cy='20' r='2'/%3E%3Ccircle cx='20' cy='80' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        animation: floatPattern 25s ease-in-out infinite;
        opacity: 0.6;
    }

@keyframes floatPattern {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-5px) translateY(-8px);
    }

    50% {
        transform: translateX(8px) translateY(-5px);
    }

    75% {
        transform: translateX(-3px) translateY(8px);
    }
}

.floating-shapes-right {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape-right {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatRight 20s ease-in-out infinite;
}

    .shape-right:nth-child(1) {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), rgba(220, 38, 38, 0.1));
        top: 20%;
        right: 15%;
        animation-delay: 0s;
    }

    .shape-right:nth-child(2) {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, rgba(71, 85, 105, 0.2), rgba(71, 85, 105, 0.1));
        bottom: 30%;
        right: 25%;
        animation-delay: -7s;
    }

    .shape-right:nth-child(3) {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(31, 41, 55, 0.1));
        top: 60%;
        right: 8%;
        animation-delay: -14s;
    }

@keyframes floatRight {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.15;
    }

    33% {
        transform: translateY(-15px) translateX(-10px) rotate(120deg);
        opacity: 0.08;
    }

    66% {
        transform: translateY(10px) translateX(8px) rotate(240deg);
        opacity: 0.2;
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

    .login-header::after {
        content: '';
        position: absolute;
        bottom: -16px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #dc2626, transparent);
    }

.login-subtitle {
    font-size: 16px;
    color: #64748b;
    padding: 4px;
}

.footer-links {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.support-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

    .support-link:hover {
        color: #b91c1c;
    }

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: #64748b;
}

.security-icon {
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px;
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.forgot-password {
    color: var(--error);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: #b91c1c;
    }

.detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.detail-value {
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
}

    .detail-value.large {
        font-size: 20px;
        font-weight: 600;
    }

    .detail-value.link {
        color: var(--text-secondary);
        text-decoration: none;
        word-break: break-all;
    }

        .detail-value.link:hover {
            text-decoration: underline;
        }

.highlight-box {
    padding: 16px;
    margin: 16px 0;
    margin-left: 0px !important;
    padding-left: 0px !important;
}

.remark-section {
    background: var(--bg-secondary);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.remark-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.remark-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}


.fuzzy-section.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.fuzzy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fuzzy-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #374151;
}

.fuzzy-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.fuzzy-controls {
    display: none;
    animation: slideDown 0.3s ease;
}

    .fuzzy-controls.active {
        display: block;
    }

.preset-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

    .preset-btn:hover, .preset-btn.active {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }


.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}


.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.coverage-tag {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    margin: 1px;
}

.error-chip {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.dashboard-grid {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.flex-item {
    flex: 1;
    margin: 3px;
}

.dashboard-card {
    border: 1px solid var(--border-default);
    border-radius: 8px !important;
    background: var(--bg-secondary);
    height: 140px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 12px !important;
    /*    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;*/
}

.metric-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(20px, -20px);
    z-index: 1;
}

    .metric-bg.success {
        background-color: #475569;
    }

    .metric-bg.warning {
        background-color: #f59e0b;
    }

    .metric-bg.info {
        background-color: #1f2937;
    }

    .metric-bg.error {
        background-color: #dc2626;
    }

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.card-value {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 32px;
}

.card-label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.card-trend {
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .card-trend.positive {
        color: var(--success);
    }

    .card-trend.negative {
        color: var(--error);
    }

    .card-trend.neutral {
        color: var(--text-muted);
    }

.status-card {
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.875rem;
}

.card-header {
    align-items: center;
    margin-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .dot.green {
        background: var(--success);
    }

    .dot.orange {
        background: var(--warning);
    }

.card-title {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-body {
    flex: 1;
}

.card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.caption {
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.75rem;
}

.datatable-container {
    display: flex;
    flex-direction: column;
    margin: 24px auto;
    width: 100%;
    max-width: 1400px;
}

.mud-table-row:hover {
    background-color: var(--bg-tertiary) !important;
    transition: background-color 0.2s ease-in-out;
}

.datatable-container .mud-table-cell div[style*="border-radius: 50%"] {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.datatable-container .mud-chip {
    border-radius: 16px;
    font-size: 12px;
    height: 24px;
}

.datatable-container .mud-button-outlined:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
}

.datatable-container .mud-table-head .mud-table-cell {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-subtle) 100%);
    border-bottom: 2px solid var(--border-default);
}

.mud-data-grid.no-toolbar .mud-table-toolbar {
    display: none !important;
}

.instruction-text {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.status-label {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: var(--text-secondary);
}

.grid-stack > .grid-stack-item {
    padding: 6px;
}

.grid-stack-item-content.gs-card {
    height: 100%;
    border-radius: 10px;
}

.grid-stack .ui-resizable-handle,
.grid-stack .gs-resize-handle {
    display: none !important;
    pointer-events: none !important;
}

.data-monitor-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.data-monitor-header {
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 6px !important; 
}

.title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    color: #28a745 !important;
    font-size: 24px !important;
}

.header-title {
    color: #495057 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.sanction-date {
    flex-shrink: 0;
}

.date-text {
    color: #6c757d !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.comment-box .mud-input-adornment-start{
    align-items: flex-end !important;
    margin-top: 5px;
    
}
.remark-box .mud-input-adornment-start{
    align-items: flex-end !important;
    margin-top: -8px;
}