body {font-family: 'Inter', 'Nunito', 'Open Sans', sans-serif;}
.dropdown-menu {
    background-color: #fff;
    color: #1f2937;
}
.dropdown-menu .dropdown-item {
    color: #1f2937;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d3b8e;
}
.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    background-image: none !important;
    color: #0f1f3d;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.75;
    cursor: pointer;
    appearance: none;
    transition: opacity 0.2s ease;
}
.btn-close::before {
    content: '\00d7';
    font-family: inherit;
}
.btn-close:hover,
.btn-close:focus {
    opacity: 1;
    outline: none;
}
.person-picker { position: relative; width: 100%; }
.person-picker-input { position: relative; }
.person-picker-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 1051;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.6rem;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.15);
}
.person-picker-dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.person-picker-dropdown-item:hover {
    background: rgba(13,110,253,0.08);
}
.person-picker-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.person-picker-selected .badge {
    font-weight: 600;
    background: rgba(13,110,253,0.15);
    color: #0d3b8e;
}
.person-picker {
    width: 100%;
}
.person-picker-list {
    border: 1px solid #dee2e6;
    border-radius: 0.6rem;
    max-height: 220px;
    overflow-y: auto;
    background-color: #fff;
    padding: 0.4rem;
}
.person-picker-option {
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    border-radius: 0.45rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.person-picker-option:not(.active):hover {
    background: rgba(13, 110, 253, 0.08);
}
.person-picker-option.active {
    background: rgba(13, 110, 253, 0.18);
}
.person-picker-option .form-check-input {
    margin-top: 0;
}
.person-picker-list::-webkit-scrollbar {
    width: 6px;
}
.person-picker-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
}
.person-picker-list::-webkit-scrollbar-track {
    background: transparent;
}
.person-picker-summary .table td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    font-size: 0.85rem;
}
.person-picker-summary .card-header {
    background: #f8f9fa;
}
/* Manager dashboard styles */
.manager-hero {
    background: linear-gradient(135deg, #0d6efd, #143b6b);
    border-radius: 18px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.manager-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08), transparent 25%),
                radial-gradient(circle at 90% 10%, rgba(255,255,255,0.06), transparent 20%);
    pointer-events: none;
}

#addFileModal .form-label {
    font-weight: 600;
    color: #0f1f3d;
}
#addFileModal .dropdown-menu {
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
    padding: 0.25rem;
}
#addFileModal .dropdown-item {
    border-radius: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    color: #1f2937;
}
#addFileModal .dropdown-item:hover,
#addFileModal .dropdown-item:focus {
    background: rgba(13,110,253,0.08);
    color: #0d3b8e;
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.35rem;
}
.hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.chip-light {
    background: rgba(255,255,255,0.18);
    color: #0b2342;
}
.hero-sub {
    color: rgba(255,255,255,0.88);
    max-width: 720px;
}
.hero-stats-card {
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.hero-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.hero-stat__label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.hero-stat__value {
    font-size: 2rem;
    font-weight: 800;
}
.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.hero-stat__value-sm {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
}
.hero-stat__value-tag {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.16);
    font-weight: 600;
}
.glass-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.04);
    backdrop-filter: blur(4px);
}
.hero-stat-grid div {
    padding: 0.6rem 0.55rem;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

.summary-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.summary-meta h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.focus-card {
    padding: 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}
.focus-card__badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #e9f0ff;
    color: #0d6efd;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.manager-pills .nav-link {
    margin-right: 0.5rem;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: #f5f7fb;
    color: #0b2342;
    border: 1px solid transparent;
}
.manager-pills .nav-link.active {
    background: linear-gradient(135deg, #0d6efd, #143b6b);
    color: #fff;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.25);
}

.law-panel.compact {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.team-list {
    margin: 0;
    padding: 0;
}
.team-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.team-item:last-child {
    border-bottom: none;
}
.timeline-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.timeline-item:last-child {
    border-bottom: none;
}
.timeline-date {
    font-weight: 700;
    color: #0a2a7a;
    width: 50px;
}
.timeline-content strong {
    display: block;
    font-weight: 600;
}
.alert .btn-close {
    position: relative;
    width: 1rem;
    height: 1rem;
    padding: 0.25rem;
    background: transparent;
    border: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.alert .btn-close:hover {
    opacity: 1;
}
.alert.auto-dismiss {
    animation: fadeOutAlert 0.5s ease forwards;
    animation-delay: 5s;
}
@keyframes fadeOutAlert {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
