/* ========================================
   UX IMPROVEMENTS - Modern Professional Design
   ======================================== */

/* ============ SIDEBAR IMPROVEMENTS ============ */
.sidebar {
    background: linear-gradient(180deg, #1A202C 0%, #2D3748 100%);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Logo area */
.sidebar-logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
    transition: opacity 0.2s ease;
}

.sidebar-logo a:hover img {
    opacity: 0.85;
}

/* Navigation sections */
.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

/* Navigation links */
.sidebar .nav-link {
    border-radius: 0.5rem;
    margin: 2px 0;
    padding: 0.7rem 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.75) !important;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: #3B82F6;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.sidebar .nav-link:hover i {
    opacity: 1;
}

.sidebar .nav-link.active {
    background-color: rgba(59, 130, 246, 0.2);
    color: #fff !important;
}

.sidebar .nav-link.active::before {
    opacity: 1;
}

.sidebar .nav-link.active i {
    opacity: 1;
    color: #3B82F6;
}

/* Sidebar footer - user profile */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.sidebar-user:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-user.active {
    background-color: rgba(59, 130, 246, 0.2);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
}

.sidebar-user-avatar i {
    font-size: 1.25rem;
    color: #3B82F6;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.sidebar-user-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.sidebar-user:hover .sidebar-user-arrow {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(2px);
}

/* ============ NAVBAR IMPROVEMENTS ============ */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 1040;
}

.navbar .form-control {
    border: 1px solid #E2E8F0;
    background-color: #F7FAFC;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    width: 300px;
}

.navbar .form-control:focus {
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
    width: 400px;
}

.navbar .dropdown-toggle {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.navbar .dropdown-toggle:hover {
    background-color: #F7FAFC;
}

.navbar .dropdown-menu {
    border: none;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 9999;
    position: absolute;
}

.navbar .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    transition: all 0.15s ease;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: #F7FAFC;
    color: #1E3A5F;
}

/* ============ CARD IMPROVEMENTS ============ */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E2E8F0;
    background: #fff;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #F7FAFC;
    border-bottom: 1px solid #E2E8F0;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #F7FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 1rem 1.5rem;
}

/* ============ BUTTON IMPROVEMENTS ============ */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

/* ============ FORM IMPROVEMENTS ============ */
.form-control,
.form-select {
    transition: all 0.2s ease;
    border: 1px solid #E2E8F0;
    padding: 0.625rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-text {
    color: #718096;
    font-size: 0.875rem;
}

.invalid-feedback {
    display: block;
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* ============ TABLE IMPROVEMENTS ============ */
.table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.table thead th {
    background-color: #F7FAFC;
    border-bottom: 2px solid #E2E8F0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #4A5568;
    padding: 1rem 1.25rem;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #F7FAFC;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #F7FAFC;
    box-shadow: -3px 0 0 0 #3B82F6 inset;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #F7FAFC;
}

/* ============ CARD TABLE COMBINATION ============ */
.card .table-responsive {
    margin: 0;
    border-radius: 0;
}

.card .table {
    margin: 0;
}

.card .table thead th:first-child {
    border-top-left-radius: 0;
}

.card .table thead th:last-child {
    border-top-right-radius: 0;
}

.card .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.5rem;
}

.card .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.5rem;
}

/* Table in card with no padding */
.card > .table-responsive,
.card > .table {
    margin: 0;
}

.card-body.p-0 {
    padding: 0 !important;
}

.card-body.p-0 .table thead th:first-child {
    padding-left: 1.5rem;
}

.card-body.p-0 .table thead th:last-child {
    padding-right: 1.5rem;
}

.card-body.p-0 .table tbody td:first-child {
    padding-left: 1.5rem;
}

.card-body.p-0 .table tbody td:last-child {
    padding-right: 1.5rem;
}

/* Striped table enhancement */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(247, 250, 252, 0.5);
}

/* Table with border */
.table-bordered {
    border: 1px solid #E2E8F0;
}

.table-bordered thead th {
    border-bottom-width: 2px;
}

/* Responsive table improvements */
.table-responsive {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Empty state in tables */
.table tbody tr.empty-state {
    background-color: #F7FAFC;
}

.table tbody tr.empty-state:hover {
    background-color: #F7FAFC;
    transform: none;
    box-shadow: none;
}

/* ============ BADGE IMPROVEMENTS ============ */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* ============ PRIMARY BACKGROUND TEXT COLOR ============ */
.bg-primary,
.bg-primary *:not(.btn):not(.badge):not(.alert),
.card-header.bg-primary,
.card-header.bg-primary *,
.table-primary,
.table-primary *,
.list-group-item-primary,
.list-group-item-primary * {
    color: #ffffff !important;
}

/* Ensure links on primary background are also white */
.bg-primary a:not(.btn),
.card-header.bg-primary a:not(.btn) {
    color: #ffffff !important;
    text-decoration: underline;
}

.bg-primary a:not(.btn):hover,
.card-header.bg-primary a:not(.btn):hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============ TOAST/FLASH IMPROVEMENTS ============ */
.toast {
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
    z-index: 9999999 !important;
}

.toast-container {
    z-index: 9999999 !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============ LOADING STATES ============ */
.spinner-border {
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ UTILITY CLASSES ============ */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #1E3A5F 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blur-bg {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
}

/* ============ ANIMATIONS ============ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

/* ============ SCROLLBAR STYLING ============ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F7FAFC;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

/* ============ RESPONSIVE IMPROVEMENTS ============ */
@media (max-width: 768px) {
    .navbar .form-control {
        width: 100%;
    }

    .navbar .form-control:focus {
        width: 100%;
    }

    .sidebar {
        position: fixed;
        z-index: 1000;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

/* ============ FOCUS STATES FOR ACCESSIBILITY ============ */
*:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* ============ TASK CHECK BUTTON ============ */
.btn-link.p-0 i {
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-link.p-0:hover i {
    transform: scale(1.2);
}

.btn-link.p-0:hover .bi-circle {
    color: #059669 !important;
}

.btn-link.p-0:hover .bi-circle-fill {
    color: #059669 !important;
}

/* ============ PAGE CONTENT Z-INDEX ============ */
main {
    position: relative;
    z-index: 1;
}

/* ============ PRINT STYLES ============ */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #E2E8F0;
    }
}

/* ============ DROPZONE STYLES ============ */
.dropzone-container {
    position: relative;
    border: 2px dashed #CBD5E0;
    border-radius: 0.75rem;
    background-color: #F7FAFC;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dropzone-container:hover {
    border-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.05);
}

.dropzone-container.dragover {
    border-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.dropzone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dropzone-placeholder {
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
}

.dropzone-placeholder::before {
    content: '📁';
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.dropzone-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.dropzone-preview-item {
    position: relative;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    transition: all 0.2s ease;
}

.dropzone-preview-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropzone-preview-button {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    z-index: 3;
}

.dropzone-preview-button::before {
    content: '×';
    font-size: 1.25rem;
}

.dropzone-preview-button:hover {
    background: #B91C1C;
    transform: scale(1.1);
}

.dropzone-preview-filename {
    font-size: 0.875rem;
    color: #2D3748;
    font-weight: 500;
    word-break: break-word;
}

.dropzone-preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Multiple files mode */
.dropzone-container[data-symfony--ux-dropzone--dropzone-multiple="true"] .dropzone-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Loading state */
.dropzone-container.loading {
    pointer-events: none;
    opacity: 0.6;
}

.dropzone-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #E2E8F0;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============ GLIGHTBOX FILE VIEWER STYLES ============ */
/* Custom overrides for GLightbox multi-type media viewer */

/* Lightbox description panel */
.glightbox-clean .gslide-description {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    padding: 1rem 1.5rem;
}

.glightbox-clean .gslide-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.glightbox-clean .gslide-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Audio player in lightbox */
.gslide-media audio {
    width: 100%;
    min-width: 320px;
    max-width: 500px;
}

/* Video player sizing */
.gslide-media video {
    max-height: 80vh;
    max-width: 90vw;
}

/* PDF iframe in lightbox */
.gslide-media iframe {
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Image zoom improvements */
.glightbox-clean .gslide-image img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Navigation arrows */
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: scale(1.1);
}

/* Close button */
.glightbox-clean .gclose {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.glightbox-clean .gclose:hover {
    background: rgba(220, 38, 38, 0.8);
    transform: scale(1.1);
}

/* Counter styling */
.glightbox-clean .gslide-counter {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

/* Loading indicator */
.glightbox-loading {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #3B82F6;
}

/* File thumbnail hover effect in evidence page */
.hover-shadow {
    transition: all 0.2s ease !important;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px) !important;
    border-color: #3B82F6 !important;
}

/* File type icons colors */
.file-icon-pdf { color: #DC2626; }
.file-icon-video { color: #3B82F6; }
.file-icon-audio { color: #059669; }
.file-icon-image { color: #8B5CF6; }
.file-icon-default { color: #6B7280; }

/* ============ TIMELINE STYLES ============ */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-date {
    margin: 30px 0 20px 0;
    padding-left: 60px;
}

.timeline-date:first-child {
    margin-top: 0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px #e9ecef;
}

.timeline-content {
    margin-left: 10px;
}

/* ============ STATISTICS CARDS STYLES ============ */
.stat-card {
    border: none !important;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-card-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.stat-card-gradient-green {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%) !important;
}

.stat-card-gradient-purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.stat-card-gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin: 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: none;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    backdrop-filter: blur(10px);
}

/* ============ TABLE ROW HOVER STYLES ============ */
.table-hover-custom tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.table-hover-custom tbody tr:hover {
    background-color: rgba(30, 58, 95, 0.05);
}

/* ============ MODAL Z-INDEX FIX ============ */
/* Bootstrap 5 modal fix - ensure modal content is above backdrop */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

/* Ensure modal content is properly layered */
.modal.show .modal-dialog {
    z-index: 1061 !important;
}

/* Fix for stacking context issues */
.modal.show {
    background: transparent !important;
}

/* Ensure the modal content is clickable */
.modal-content {
    position: relative;
    z-index: 1062 !important;
    pointer-events: auto !important;
}

/* ============ DASHBOARD STYLES ============ */

/* Dashboard cards */
.dashboard-card {
    transition: all 0.2s ease;
    border-radius: 0.75rem !important;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Dashboard icon */
.dashboard-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-icon i {
    font-size: 1.5rem;
    line-height: 1;
}

/* Case avatar in table */
.case-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Empty state icon */
.dashboard-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: var(--bs-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--bs-gray-400);
}

/* Task list styles */
.task-list .task-item {
    transition: background-color 0.15s ease;
}

.task-list .task-item:hover {
    background-color: var(--bs-gray-100);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.5rem;
}

.task-checkbox {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.task-checkbox:hover {
    transform: scale(1.1);
}

/* Hearing list styles */
.hearing-item {
    transition: all 0.15s ease;
    border-radius: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.hearing-item:hover {
    background-color: var(--bs-gray-100);
}

.hearing-date {
    width: 45px;
    padding: 0.25rem;
    background: var(--bs-primary);
    background: linear-gradient(135deg, var(--bs-primary) 0%, #2C5282 100%);
    border-radius: 0.5rem;
}

.hearing-day {
    font-size: 1.25rem;
    line-height: 1.2;
    color: white !important;
}

.hearing-month {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Min width helper */
.min-width-0 {
    min-width: 0;
}

/* Progress bar styling */
.progress {
    background-color: var(--bs-gray-200);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    border-radius: 1rem;
}
