/* ========================================
   SGT FLOW - MAIN STYLES
   Modern, Fluid, and Polished
   ======================================== */

/* ========================================
   BASE STYLES & FONTS
   ======================================== */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Audiowide', cursive;
}

body {
    font-family: var(--font-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========================================
   SITE TITLE - SGT FLOW BRANDING
   ======================================== */
.site-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    background: linear-gradient(135deg, #2EC4B6 0%, #C5D93D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-title:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Subtle glow effect for title */
.site-title::after {
    content: 'SGT Flow';
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, #2EC4B6 0%, #C5D93D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.5;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */
#sidebar-wrapper {
    min-height: 100vh;
    width: 260px;
    margin-left: -260px;
    transition: margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.3rem;
}

#sidebar-wrapper .list-group {
    width: 260px;
    overflow: visible;
}

#sidebar-wrapper .list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 0.875rem 1.25rem;
    margin: 2px 0;
    font-weight: 500;
    letter-spacing: 0.3px;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
}

/* Remove focus outline on nav tabs */
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:focus-visible,
.nav-link:focus,
.nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.sidebar-divider {
    border-top: 1px solid rgba(46, 196, 182, 0.2);
    margin: 1rem 0.5rem;
}

.sidebar-subheading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    padding: 0.75rem 1.25rem 0.5rem;
    color: var(--accent-color) !important;
}

/* ========================================
   PAGE CONTENT WRAPPER
   ======================================== */
#page-content-wrapper {
    min-width: 100vw;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

.content-container {
    padding: 24px;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.required label::after {
    content: " *";
    color: #dc3545;
}

/* ========================================
   CARD STYLES WITH ANIMATIONS
   ======================================== */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 26, 77, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 26, 77, 0.12);
}

.card-header {
    font-weight: 600;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

/* ========================================
   REQUEST LIST STYLES
   ======================================== */
.request-list .request-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.request-list .request-item::before {
    display: none;
}

.request-list .request-item td:first-child {
    position: relative;
}

.request-list .request-item td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.request-list .request-item:hover td:first-child::before {
    transform: scaleY(1);
}

.request-list .request-item:hover::before {
    display: none;
}

.request-list .request-item:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 26, 77, 0.15);
    background-color: rgba(46, 196, 182, 0.05) !important;
}

/* Row highlighting for specific statuses */
.request-list .request-item[data-status="completed"],
.request-list .request-item.row-completed {
    background: linear-gradient(90deg, rgba(46, 196, 182, 0.1) 0%, transparent 100%) !important;
}

.request-list .request-item[data-status="awaiting_info"],
.request-list .request-item.row-awaiting_info {
    background: linear-gradient(90deg, rgba(197, 217, 61, 0.15) 0%, transparent 100%) !important;
}

/* Dark theme adjustments */
body.dark-theme .request-list .request-item[data-status="completed"] {
    background: linear-gradient(90deg, rgba(46, 196, 182, 0.15) 0%, transparent 100%) !important;
}

body.dark-theme .request-list .request-item[data-status="awaiting_info"] {
    background: linear-gradient(90deg, rgba(197, 217, 61, 0.2) 0%, transparent 100%) !important;
}

body.dark-theme .request-list .request-item:hover {
    background-color: rgba(46, 196, 182, 0.1) !important;
}

/* ========================================
   STATUS BADGES
   ======================================== */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status colors - updated to match SGT Flow palette */
.status-in_review {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.status-accepted {
    background: linear-gradient(135deg, #2EC4B6 0%, #26a89c 100%);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.status-in_progress {
    background: linear-gradient(135deg, #5DD3D0 0%, #4bc4c1 100%);
    color: #001A4D;
}

.status-awaiting_info {
    background: linear-gradient(135deg, #C5D93D 0%, #a8c41a 100%);
    color: #001A4D;
}

.status-info_added {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, #2EC4B6 0%, #28a745 100%);
    color: white;
}

.status-incomplete {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
}

.status-visa_awaiting {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.status-visa_accepted {
    background: linear-gradient(135deg, #e83e8c 0%, #c71f6e 100%);
    color: white;
}

.status-visa_rejected {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.status-duplicate {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
}

.status-cancelled {
    background: linear-gradient(135deg, #9370DB 0%, #7b5fc7 100%);
    color: white;
}

/* ========================================
   MESSAGES STYLING
   ======================================== */
.message-list {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    scroll-behavior: smooth;
}

.message-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
    animation: messageSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item:hover {
    transform: scale(1.01);
}

.message-sent {
    background: linear-gradient(135deg, #2EC4B6 0%, #5DD3D0 100%);
    color: white;
    margin-left: 3rem;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

.message-received {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-right: 3rem;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 26, 77, 0.08);
}

.message-timestamp {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ========================================
   REFERENCE DOCS STYLING
   ======================================== */
.doc-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 26, 77, 0.15);
}

/* ========================================
   REQUEST LOGS STYLING
   ======================================== */
.request-logs {
    max-height: 300px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.log-entry {
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 0.75rem;
    border-radius: 0 8px 8px 0;
    background: rgba(46, 196, 182, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-entry:hover {
    background: rgba(46, 196, 182, 0.1);
    transform: translateX(4px);
    border-left-width: 5px;
}

.log-timestamp {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ========================================
   SLA BREACH STYLES
   ======================================== */
.sla-breach-badge {
    animation: slaPulse 2s infinite;
}

@keyframes slaPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.sla-breach-alert {
    border-left: 4px solid #dc3545;
    animation: slaGlow 2s infinite;
}

@keyframes slaGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    }
}

.request-list .request-item.sla-breached {
    border-left: 4px solid #dc3545;
    animation: slaBreachPulse 3s infinite;
}

@keyframes slaBreachPulse {
    0%, 100% {
        background-color: rgba(220, 53, 69, 0.05);
    }
    50% {
        background-color: rgba(220, 53, 69, 0.1);
    }
}

.request-list .request-item.sla-breached:hover {
    border-left-width: 6px;
}

body.light-theme .badge.sla-breach-badge,
body.dark-theme .badge.sla-breach-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    font-weight: bold;
    padding: 0.35rem 0.75rem;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */
.dashboard-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 26, 77, 0.08);
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 26, 77, 0.15);
}

.icon-box {
    padding: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(46, 196, 182, 0.4);
}

.status-count-item {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(46, 196, 182, 0.05);
    border-left: 3px solid transparent;
}

.status-count-item:hover {
    transform: translateX(8px);
    background: rgba(46, 196, 182, 0.1);
    border-left-color: var(--accent-color);
}

/* Filter form styles */
.filter-form {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-form:focus-within {
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.15);
    border-color: var(--accent-color);
}

.filter-form .form-control,
.filter-form .form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.15);
}

/* Dark theme icon box and dashboard cards */
body.dark-theme .icon-box {
    background: var(--gradient-primary) !important;
}

body.dark-theme .dashboard-card .card-body {
    background-color: var(--card-bg);
}

body.dark-theme .dashboard-card .card-subtitle.text-muted {
    color: var(--text-muted) !important;
}

body.dark-theme .dashboard-card .card-title {
    color: var(--text-color) !important;
}

body.dark-theme .dashboard-card .card-link {
    color: var(--accent-color) !important;
}

body.dark-theme .dashboard-card .icon-box {
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

body.dark-theme .dashboard-card .icon-box i {
    color: white !important;
}

/* Purple badge */
.bg-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%) !important;
    color: white !important;
}

body.dark-theme .bg-purple {
    background: linear-gradient(135deg, #7e57c2 0%, #6941b0 100%) !important;
}

/* Urgent rows in dark mode */
body.dark-theme .table-danger,
body.dark-theme tr.table-danger td {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.25) 0%, transparent 100%) !important;
    color: #fff !important;
    font-weight: 500;
}

/* Dashboard table */
.dashboard-table thead th {
    background: var(--gradient-navy);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 1rem;
}

.user-stats-table tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-stats-table tr:hover td {
    background: rgba(46, 196, 182, 0.08);
}

/* SLA breached rows */
.sla-breached td {
    font-weight: 500 !important;
}

body.dark-theme .sla-breached td {
    color: #f8b4b4 !important;
}

/* ========================================
   VISA STATUS STYLES
   ======================================== */
.visa-status {
    position: relative;
}

.visa-status::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    animation: visaPulse 2s infinite;
}

@keyframes visaPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.visa-followup-container {
    border-left: 4px solid #ff9800;
    padding-left: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 152, 0, 0.05);
}

.visa-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visa-status-pending {
    background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
    color: #ff6f00;
}

.visa-status-approved {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #2e7d32;
}

.visa-status-rejected {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #c62828;
}

.snooze-badge {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #616161;
}

/* Status counts */
.status-count {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visa-awaiting-count { color: #ff9800; }
.visa-accepted-count { color: #e83e8c; }
.visa-rejected-count { color: #f44336; }
.incomplete-count { color: #dc3545; }

.flagged-incorrect {
    border-left: 4px solid #dc3545 !important;
}

/* ========================================
   PROGRESS BAR STYLES
   ======================================== */
.progress {
    position: relative;
    height: 24px !important;
    border-radius: 12px;
    overflow: hidden !important;
    background: rgba(46, 196, 182, 0.1);
}

.progress-bar, .countdown-bar {
    position: relative;
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar::after, .countdown-bar::after {
    display: none !important;
}

.progress-bar.bg-success, .countdown-bar.bg-success {
    background: linear-gradient(135deg, #2EC4B6 0%, #28a745 100%) !important;
}

.progress-bar.bg-warning, .countdown-bar.bg-warning {
    background: linear-gradient(135deg, #C5D93D 0%, #ff9800 100%) !important;
}

.progress-bar.bg-danger, .countdown-bar.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* SLA breached progress bars */
.progress-bar.sla-breached,
.countdown-bar.sla-breached {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
    background-size: 20px 20px !important;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    ) !important;
    animation: progressStripes 1s linear infinite, slaPulse 2s infinite !important;
}

@keyframes progressStripes {
    from { background-position: 20px 0; }
    to { background-position: 0 0; }
}

.operations-sla-cell {
    min-width: 150px;
    max-width: 200px;
}

body.dark-theme .progress {
    background: rgba(46, 196, 182, 0.15);
}

.sla-breached-indicator {
    animation: slaIndicatorPulse 2s infinite;
}

@keyframes slaIndicatorPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

/* ========================================
   HIDE SLA FROM SALES USERS
   ======================================== */
body[data-user-role^="sales_"] .request-list .request-item.sla-breached {
    border-left: none !important;
    background-color: inherit !important;
    animation: none !important;
}

body[data-user-role^="sales_"] .badge[title*="SLA Breached"],
body[data-user-role^="sales_"] .sla-breach-badge,
body[data-user-role^="sales_"] .sla-breached-indicator {
    display: none !important;
}

body[data-user-role^="sales_"] .sla-breached td {
    font-weight: normal !important;
    color: inherit !important;
}

body[data-user-role^="sales_"] .progress-bar.sla-breached,
body[data-user-role^="sales_"] .countdown-bar.sla-breached {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    background-image: none !important;
    animation: none !important;
}

body[data-user-role^="sales_"] .operations-sla-cell,
body[data-user-role^="sales_"] .request-list th:last-child,
body[data-user-role^="sales_"] .request-list td:last-child {
    display: none !important;
}

body[data-user-role^="sales_"] .request-list .request-item:hover {
    border-left: none !important;
    transform: translateY(-2px);
}

body.dark-theme[data-user-role^="sales_"] .sla-breached td {
    color: var(--text-color) !important;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    
    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -260px;
    }
}

@media (max-width: 767.98px) {
    .message-sent {
        margin-left: 1.5rem;
    }
    
    .message-received {
        margin-right: 1.5rem;
    }
    
    .dashboard-card:hover {
        transform: translateY(-4px);
    }
    
    .status-count {
        font-size: 1.5rem;
    }
}

/* ========================================
   PAGE LOAD ANIMATIONS
   ======================================== */
.animate-on-load {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-on-load:nth-child(1) { animation-delay: 0.1s; }
.animate-on-load:nth-child(2) { animation-delay: 0.2s; }
.animate-on-load:nth-child(3) { animation-delay: 0.3s; }
.animate-on-load:nth-child(4) { animation-delay: 0.4s; }
.animate-on-load:nth-child(5) { animation-delay: 0.5s; }
.animate-on-load:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   BUTTON HOVER ANIMATIONS
   ======================================== */
.btn {
    position: relative;
    overflow: hidden;
}

/* Navbar buttons: no overflow clip, no shine, no ripple */
.navbar .btn,
.navbar .btn-link,
.navbar .dropdown-toggle,
#notificationDropdown,
#theme-toggle,
#userDropdown,
#sidebarToggle {
    overflow: visible !important;
}
.navbar .btn::before,
.navbar .dropdown-toggle::before,
#notificationDropdown::before,
#notificationDropdown::after,
#theme-toggle::before,
#theme-toggle::after,
#sidebarToggle::before,
#sidebarToggle::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
/* #userDropdown::after is the Bootstrap caret - handled in theme.css */
#userDropdown::before {
    display: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* ========================================
   SMOOTH ICON TRANSITIONS
   ======================================== */
.fas, .far, .fa {
    transition: color 0.2s ease;
}

/* Only scale icons in content areas, NOT in navbar */
.card a:hover .fas,
.card a:hover .far,
.card a:hover .fa,
.card button:hover .fas,
.card button:hover .far,
.card button:hover .fa,
.content-container a:hover .fas,
.content-container a:hover .far,
.content-container a:hover .fa,
.content-container button:hover .fas,
.content-container button:hover .far,
.content-container button:hover .fa {
    transform: scale(1.1);
}

/* ========================================
   TOOLTIP ANIMATIONS
   ======================================== */
[data-bs-toggle="tooltip"] {
    position: relative;
}

.tooltip {
    animation: tooltipFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}