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

.vh-100 {
    height: 100vh !important;
}

.main-px {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

a, .btn-link {
    color: #006bb7;
}

.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYx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An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.login-width {
    width: 400px;
}
.full-width {
    width: 100%;
}
.mud-container--gutters {
    padding-left: 2px;
    padding-right: 2px;
}
.course-card {
    min-height: 150px;
}
.v-center {
    display: flex;
    align-items: center;
}
.label-row {
    min-height: 52px;
}
.dialog-form .mud-typography-subtitle2 {
    white-space: normal !important;
    word-break: break-word;
}
.finance-form .mud-input textarea {
    min-height: 120px !important;
}
.mud-tooltip-inline .mud-icon-button {
    padding: 5px !important;
}
.error-list {
    list-style-type: none;
}
    .error-list li {
        margin-bottom: 5px;
    }

.mud-file-upload input {
    cursor:pointer;
}
@media only screen and (min-width: 576px) {
    .main-px {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
@media only screen and (min-width: 768px) {
    
}
@media only screen and (min-width: 992px) {
    
}
@media only screen and (min-width: 1280px) {
    .mud-container--gutters {
        padding-left: 8px;
        padding-right: 8px;
    }
    .mud-container-maxwidth-lg {
        max-width: 100%;
    }
}
@media only screen and (min-width: 1400px) {
    .mud-container--gutters {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.chart-container-fixed {
    padding-bottom: 16px !important;
    margin-top: -16px !important;
    min-height: calc(100vh - 276px);
}

.main-px .landing-page {
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .chart-container-fixed {
        padding-bottom: 8px !important;
        margin-top: -8px !important;
        min-height: calc(100vh - 224px);
    }
}

.popper-tooltip {
    background: #333;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    display: none;
}

    .popper-tooltip[data-show] {
        display: block;
    }

.popper-arrow,
.popper-arrow::before {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
}

.popper-arrow {
    visibility: hidden;
}

    .popper-arrow::before {
        visibility: visible;
        content: '';
        transform: rotate(45deg);
    }

.popper-tooltip[data-popper-placement^='top'] > .popper-arrow {
    bottom: -4px;
}

.popper-tooltip[data-popper-placement^='bottom'] > .popper-arrow {
    top: -4px;
}

.popper-tooltip[data-popper-placement^='left'] > .popper-arrow {
    right: -4px;
}

.popper-tooltip[data-popper-placement^='right'] > .popper-arrow {
    left: -4px;
}
.report-frame {
    width: 100%;
    height: 80vh;
    border: none;
}
.report-container .mud-selected-item,
.report-container .mud-list-item:hover {
    border-left: 3px solid #6262E2 !important;
    background-color: #E7ECFD !important;
}
.report-container .mud-list-item {
    border-left: 3px solid transparent;
    padding: 15px 8px !important;
}
.report-container .mud-list-item-icon {
    min-width: 32px !important;
}
.report-header-bg {
    background-color: #f5f5f5;
    border-top-left-radius: var(--mud-default-borderradius);
    border-top-right-radius: var(--mud-default-borderradius);
    padding: 10px;
}
.report-container .mud-list-item-text > .mud-typography-body1 {
    font-weight: 500;
    font-size: var(--mud-typography-default-size) !important;
}
.report-container .mud-typography-h6 {
    font-size: 1.15rem !important;
}
/*For landing page*/

/* Header */
.header {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1300 !important;
}

.header-left {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
}

.logo {
    width: 48px !important;
    height: 48px !important;
    background: transparent !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

.logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.header-title h1 {
    font-size: 1.25rem !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

.header-title p {
    font-size: 0.875rem !important;
    color: #666 !important;
}

.login-btn{
    background: #2196F3 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3) !important;
}

.login-btn:hover {
    background: #1976D2 !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Layout */
.dashboard-container {
    display: flex !important;
    min-height: calc(100vh - 73px) !important;
}

/* Sidebar */
.sidebar {
    width: 240px !important;
    background: white !important;
    top: 96px !important;
    box-shadow: 2px 0 12px rgba(0,0,0,0.08) !important;
    padding: 1.5rem !important;
    height: auto !important;
}

.sidebar.mud-drawer--open {
    position: sticky !important;
}

    .sidebar.mud-drawer--open + .mud-main-content {
        margin-left: 0 !important;
    }

/* Sidebar toggle */
.sidebar-toggle {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    color: #1a1a1a !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-right: 0 !important;
}
.sidebar-toggle:hover {
    background: #f5f5f5 !important;
}

/* Collapsed sidebar state */
.sidebar {
    transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease !important;
}

/* Keep mobile behavior: sidebar remains hidden under 768px */

.menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
}

.nav-link-blue .mud-nav-link-icon-default {
    background-color: rgba(33, 150, 243, 0.15) !important;
    border-radius: 8px;
    padding: 8px;
}

.nav-link-blue .mud-icon-root {
    color: #2196F3 !important;
}

.nav-link-purple .mud-nav-link-icon-default {
    background-color: rgba(156, 39, 176, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px !important;
}

.nav-link-purple .mud-icon-root {
    color: #9C27B0 !important;
}

.nav-link-green .mud-nav-link-icon-default {
    background-color: rgba(76, 175, 80, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px !important;
}
.nav-link-green .mud-icon-root {
    color: #4CAF50 !important;
}
.nav-link-red .mud-nav-link-icon-default {
    background-color: rgba(244, 67, 54, 0.15) !important;
    border-radius: 8px;
    padding: 8px;
}
.nav-link-red .mud-icon-root {
    color: #F44336 !important;
}
.menu-item:hover {
    background: #f5f5f5 !important;
    transform: translateX(4px) !important;
}

.menu-item.active {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2) !important;
    transform: scale(1.02) !important;
}

.menu-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    margin-right: 20px !important;
    transition: all 0.3s ease !important;
}

.menu-item.active .menu-icon {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.menu-text {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    flex: 1 !important;
}

.menu-indicator {
    width: 4px !important;
    height: 32px !important;
    border-radius: 2px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.menu-item.active .menu-indicator {
    opacity: 1 !important;
}

/* Main Content */
.main-content {
    flex: 1 !important;
    padding: 2rem !important;
    overflow-y: auto !important;
}

.chart-card {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    transition: all 0.3s ease !important;
}

.chart-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

.chart-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
}

.chart-container {
    height: 400px !important;
    position: relative !important;
}

/* Key Insights */
.insights-box {
    margin-top: 2rem !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, #E3F2FD 0%, #E8EAF6 100%) !important;
    border-radius: 12px !important;
}

.insights-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
}

.insights-content {
    display: flex !important;
    gap: 0.75rem !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

.insights-icon {
    color: #2196F3 !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

/* Resources Section */
.section-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
}

.resources-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
}

.resource-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.resource-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.resource-image {
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 64px !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
}

.resource-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.resource-card:hover .resource-overlay {
    opacity: 1 !important;
}

.overlay-btn {
    width: 48px !important;
    height: 48px !important;
    background: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.overlay-btn:hover {
    background: #f5f5f5 !important;
    transform: scale(1.1) !important;
}

.resource-content {
    padding: 1.5rem !important;
}

.resource-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.5rem !important;
}

.resource-subtitle {
    font-size: 0.875rem !important;
    color: #666 !important;
}

/* Footer */
.footer {
    background: white !important;
    border-top: 1px solid #e0e0e0 !important;
    padding: 2rem !important;
}

.footer-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
}

.footer-section h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.75rem !important;
}

.footer-section p,
.footer-section li {
    font-size: 0.875rem !important;
    color: #666 !important;
    line-height: 1.8 !important;
}

.footer-section ul {
    list-style: none !important;
}

.footer-section li {
    cursor: pointer !important;
    transition: color 0.3s ease !important;
}

.footer-section li:hover {
    color: #2196F3 !important;
}

@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }

    .resources-grid {
        grid-template-columns: 1fr !important;
    }
}