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

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    box-shadow: 0 0 0 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

.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, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLj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Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* SidebarMenu.razor - Base structure */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    /* background-color: #343a40;*/
    background: linear-gradient(180deg, #23272b, #343a40) !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.3s;
    z-index: 1000;
}

    .sidebar-menu.collapsed {
        width: 60px;
    }

    .sidebar-menu .sidebar-header {
        padding: 1rem;
        text-align: center;
        background-color: #23272b;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar-menu .collapse-button {
        background: none;
        border: none;
        color: #0ea5e9;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .sidebar-menu .nav {
        flex-grow: 1;
        padding-top: 1rem;
    }

    /* Menu Items - Telerik 9.1 compatibility */
    /* Target all menu links */
    .sidebar-menu .k-menu .k-menu-link,
    .sidebar-menu .k-menu .k-link,
    .sidebar-menu .k-menu-item > .k-menu-link {
        display: flex;
        align-items: center;
        padding: 0.5rem 1.25rem; /* Tighter padding for proper spacing */
        color: #0ea5e9 !important; /* Force blue color for all items */
        text-decoration: none;
        margin: 0; /* Remove any margins */
    }

        /* Active item styling */
        .sidebar-menu .k-menu .k-menu-link.active,
        .sidebar-menu .k-menu .k-link.active,
        .sidebar-menu .k-menu .k-menu-link.k-state-active,
        .sidebar-menu .k-menu-item > .k-menu-link.active {
            background-color: #495057 !important;
            color: #fff !important;
        }

        /* Hover styling */
        .sidebar-menu .k-menu .k-menu-link:hover,
        .sidebar-menu .k-menu .k-link:hover,
        .sidebar-menu .k-menu-item > .k-menu-link:hover {
            background-color: #495057 !important;
            color: #fff !important;
        }

    /* Icon styling */
    .sidebar-menu .nav .bi {
        margin-right: 0.5rem;
    }

    .sidebar-menu.collapsed .nav .bi {
        margin-right: 0;
    }

    .sidebar-menu.collapsed .k-menu-link,
    .sidebar-menu.collapsed .k-menu .k-menu-link {
        justify-content: center;
    }

    /* Submenu styling */
    .sidebar-menu .k-menu .k-group {
        background-color: #343a40;
    }

    .sidebar-menu.collapsed .k-menu .k-group {
        min-width: 200px !important;
        left: 60px !important;
    }

        /* Force submenu items to always show text when sidebar is collapsed */
        .sidebar-menu.collapsed .k-menu .k-group .k-menu-item .k-menu-link span:not(.bi) {
            display: inline-block !important;
            opacity: 1 !important;
            width: auto !important;
        }

    /* Footer styling */
    .sidebar-menu .sidebar-footer {
        padding: 1rem;
        background-color: #23272b;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-menu.collapsed .sidebar-footer .user-email {
        display: none;
    }

    .sidebar-menu .user-email {
        font-size: 0.9rem;
    }

/* Main content layout */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 1rem;
    transition: margin-left 0.3s, width 0.3s;
    overflow-x: hidden;
}

.sidebar-menu.collapsed ~ .main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

.page-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sidebar-menu {
        width: 60px;
    }

        .sidebar-menu.collapsed {
            width: 0;
        }

    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .sidebar-menu.collapsed ~ .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* NotificationBell Component */
.notification-container {
    position: relative;
}

.notification-button {
    position: relative;
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.2rem;
}

    .notification-button .badge {
        position: absolute;
        top: 0;
        right: -5px;
        font-size: 0.7rem;
    }

.notifications-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    width: 300px;
    background-color: #fff;
    color: #000;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 1rem;
    z-index: 1000;
}

    .notifications-dropdown h6 {
        margin-bottom: 1rem;
    }

    .notifications-dropdown .list-group-item {
        border: none;
        padding: 0.5rem 0;
    }
/* Fix for wide spacing between menu items */
.sidebar-menu .k-menu .k-menu-item {
    margin: 0;
    padding: 0;
}

/* Target parent menu items specifically (ones with children) */
.sidebar-menu .k-menu .k-menu-item.k-menu-has-children > .k-menu-link {
    background-color: transparent !important; /* Remove grey background */
    color: #0ea5e9 !important; /* Same blue color as regular items */
}

/* Override background-color for all menu items to ensure consistency */
.sidebar-menu .k-menu .k-menu-item > .k-menu-link {
    background-color: transparent;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Arrow indicator for parent items should match text color */
.sidebar-menu .k-menu .k-menu-expand-arrow::before {
    color: #0ea5e9 !important;
}

/* Fix for submenu items when collapsed */
.sidebar-menu.collapsed .k-menu .k-menu-group .k-menu-link {
    padding-left: 1rem !important;
}

/* Fix padding for better spacing */
.sidebar-menu .k-menu .k-menu-link {
    padding: 0.5rem 1.25rem !important;
}
/* Toast notifications - global styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    min-width: 300px;
    max-width: 500px;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    background-color: white;
    border-left: 4px solid;
    pointer-events: auto;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
}

.toast-notification.closing {
    animation: slideOut 0.3s ease-in forwards;
}

.toast-success {
    border-left-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.toast-error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.toast-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.toast-info {
    border-left-color: #17a2b8;
    background-color: #d1ecf1;
    color: #0c5460;
}

.toast-notification .k-svg-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast-notification .toast-content {
    flex: 1;
    line-height: 1.4;
    font-weight: 500;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toast-notification .toast-close:hover {
        opacity: 1;
    }

    .toast-notification .toast-close .k-svg-icon {
        width: 16px;
        height: 16px;
    }
/* Add at the end of your app.css file */

/* ===== Notification Bell Styles ===== */
.notification-bell {
    position: relative;
    display: inline-block;
}

/* Blue icon color */
.notification-bell .k-button .k-svg-icon {
    color: #0d6efd !important;
}

/* Animate when there are unread notifications */
.notification-bell.has-unread .k-button .k-svg-icon {
    animation: bell-ring 2s ease-in-out infinite;
    transform-origin: top center;
}

/* Bell ringing animation */
@keyframes bell-ring {
    0% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(15deg);
    }

    10% {
        transform: rotate(-15deg);
    }

    15% {
        transform: rotate(10deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    25% {
        transform: rotate(5deg);
    }

    30% {
        transform: rotate(-5deg);
    }

    35% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Badge styling */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #0078d4;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badge-pulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Remove button transitions */
.notification-bell .k-button {
    transition: none !important;
    background: transparent !important;
}

/* Hover effect */
.notification-bell .k-button:hover .k-svg-icon {
    color: #0a58ca !important;
}