﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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+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;
}






.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

.loader-logo {
    width: 150px;
    animation: glow 2s ease-in-out infinite, zoomIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px #8B4513);
    }

    50% {
        filter: drop-shadow(0 0 20px #8B4513);
    }

    100% {
        filter: drop-shadow(0 0 5px #8B4513);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
.table-responsive.loading {
    pointer-events: none;
    opacity: 0.5;
}

.campaign-container {
    padding: 20px;
}

.table-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

select[multiple] {
    min-height: 120px;
    padding: 6px;
}

    select[multiple] option {
        padding: 4px;
        margin: 2px 0;
    }

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-top: 0.2em;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.modal-backdrop {
    opacity: 0.5;
}

.table-responsive {
    margin-top: 20px;
}

.disabled-radio-group {
    opacity: 0.6;
    pointer-events: none;
}

/* Enhanced Reports UI Styles */
.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.parameter-group {
    transition: all 0.2s ease;
}

.parameter-group:focus-within {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

/* Modern gradient buttons */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-success:hover {
    background: linear-gradient(135deg, #4a9028 0%, #96d4bd 100%);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    color: white;
}

/* Improved form controls */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Enhanced cards */
.card {
    transition: all 0.3s ease;
}

.card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Loading animations */
.spinner-grow-custom {
    animation: spinner-grow 0.75s linear infinite;
    width: 2rem;
    height: 2rem;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

/* Dark theme support for better visual hierarchy */
.bg-primary-dark {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.bg-success-dark {
    background: linear-gradient(135deg, #134e13 0%, #2d5a2d 100%);
}

.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced pagination */
.pagination .page-link {
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced alerts */
.alert {
    border-left: 4px solid transparent;
}

.alert-success {
    border-left-color: #198754;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-info {
    border-left-color: #0dcaf0;
}
.page {
    display: grid;
    min-height: 100vh;
}

    .page.with-sidebar {
        grid-template-columns: 260px 1fr; /* sidebar + main */
    }

    .page.no-sidebar {
        grid-template-columns: 1fr; /* full width main */
    }

.sidebar {
    grid-column: 1;
}

.main {
    grid-column: 2;
}

.page.no-sidebar .main {
    grid-column: 1 / -1; /* stretch main across full width */
}

.page { display: grid; min-height: 100vh; }
.page.with-sidebar { grid-template-columns: 260px 1fr; }
.page.no-sidebar { grid-template-columns: 1fr; }

.sidebar { grid-column: 1; }
.main { grid-column: 2; }
.page.no-sidebar .main { grid-column: 1 / -1; }

.avatar-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.9rem; background: #e9ecef;
}

/* Report Category Styles */
.category-section {
    margin-bottom: 2rem;
}

.category-header {
    padding: 1rem 0;
    border-bottom: 2px solid #f8f9fa;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.1);
}

.report-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, #6c757d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-card:hover::before {
    opacity: 1;
}

/* Responsive category styles */
@media (max-width: 768px) {
    .category-header h4 {
        font-size: 1.1rem;
    }
    
    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* Modal backdrop fix for Blazor */
.modal.show {
    z-index: 1050;
}

.modal-backdrop.show {
    z-index: 1040;
    opacity: 0.5;
}

.modal-dialog {
    z-index: 1060;
    position: relative;
    pointer-events: auto;
}

.modal.show {
    pointer-events: none;
}

.modal.show .modal-dialog {
    pointer-events: auto;
}

/* Reports Table Styles */
.report-row {
    transition: all 0.2s ease;
}

.report-row:hover {
    background-color: rgba(0, 123, 255, 0.05) !important;
    transform: translateX(2px);
}

/* Modern Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed:hover {
    width: 260px;
}

/* Animation Control Classes */
.sidebar.no-transition {
    transition: none !important;
    animation: none !important;
}

.sidebar.no-transition * {
    transition: none !important;
    animation: none !important;
}

.sidebar.no-transition .nav-item {
    animation: none !important;
}

 

.logo-name {
    display: flex;
    align-items: center;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .logo-name {
    opacity: 0;
}

.sidebar.collapsed:hover .logo-name {
    opacity: 1;
}

.logo-icon {
    font-size: 28px;
    margin-right: 12px;
    min-width: 40px;
    text-align: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #ecf0f1;
    margin-left: 8px;
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    padding-top: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    min-height: 0; /* Important for flex scroll */
}

/* Custom Scrollbar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Navigation Menu */
.nav-menu {
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 2px 8px;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #bdc3c7;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    z-index: 1;
}

.nav-link * {
    cursor: inherit;
}

.nav-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    transform: translateX(3px);
    text-decoration: none;
}

.nav-link.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Navigation Item Content */
.nav-item-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-item-content i {
    font-size: 18px;
    min-width: 40px;
    text-align: center;
}

.nav-text {
    margin-left: 12px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
}

.sidebar.collapsed:hover .nav-text {
    opacity: 1;
}

 

.nav-item.dropdown .nav-link.nav-dropdown-toggle {
    pointer-events: auto;
    cursor: pointer;
}

/* Remove any pseudo-elements that might create extra pointers */
.nav-item.dropdown .nav-link.nav-dropdown-toggle::after,
.nav-item.dropdown .nav-link.nav-dropdown-toggle::before {
    display: none !important;
    content: none !important;
}

.nav-item.dropdown .nav-link.nav-dropdown-toggle * {
    pointer-events: none;
    cursor: pointer;
}

.nav-item.dropdown .nav-link.nav-dropdown-toggle .dropdown-arrow {
    pointer-events: none;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 1;
}

.sidebar.collapsed .dropdown-arrow {
    opacity: 0;
}

.sidebar.collapsed:hover .dropdown-arrow {
    opacity: 1;
}

.nav-link[data-expanded="true"] .dropdown-arrow {
    transform: rotate(90deg);
}

/* Submenu Styles */
.nav-submenu {
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin-left: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 0;
    padding: 0;
}

.nav-submenu[data-expanded="true"] {
    max-height: 500px;
    padding: 10px 0;
}

.nav-item.submenu-item .nav-link {
    padding: 8px 15px;
    font-size: 14px;
    margin-left: 15px;
    position: relative;
}

.nav-item.submenu-item .nav-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #7f8c8d;
    border-radius: 50%;
    transform: translateY(-50%);
}

.nav-item.submenu-item .nav-link:hover::before,
.nav-item.submenu-item .nav-link.active::before {
    background: #3498db;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-sidebar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-sidebar:hover {
    background: rgba(52, 152, 219, 0.4);
    transform: scale(1.1);
}

.toggle-sidebar i {
    color: #3498db;
    font-size: 18px;
}

/* Main Content Adjustments */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* Top Row Styles */
.top-row {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Content Area */
.content {
    flex: 1;
    /* padding: 20px; */
    background: #f8f9fa;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Mobile Menu Button - Enhanced */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: #34495e;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn i {
    font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .top-row {
        padding: 15px 15px 15px 60px;
    }
    
    .content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .top-row {
        padding: 10px 10px 10px 50px;
    }
    
    .content {
        padding: 15px 10px;
    }
}

/* Animation Control - Global - Enhanced */
.no-sidebar-animations,
.no-sidebar-animations *,
.no-sidebar-animations *::before,
.no-sidebar-animations *::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

.no-sidebar-animations .sidebar,
.no-sidebar-animations .sidebar *,
.no-sidebar-animations .sidebar *::before,
.no-sidebar-animations .sidebar *::after,
.no-sidebar-animations .main-content,
.no-sidebar-animations .nav-item,
.no-sidebar-animations .nav-link,
.no-sidebar-animations .logo,
.no-sidebar-animations .logo-name,
.no-sidebar-animations .nav-text,
.no-sidebar-animations .dropdown-arrow {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation-iteration-count: 0 !important;
}

/* Force disable all keyframe animations during navigation */
.no-sidebar-animations .nav-item {
    animation-name: none !important;
}

/* Additional safety net - disable all animations globally when needed */
.no-animations-global,
.no-animations-global * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* Tooltip styles for collapsed sidebar */
.nav-link[title] {
    position: relative;
}

.nav-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed:not(:hover) .nav-link[title]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Animation Keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item {
    animation: slideIn 0.3s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

