/* ==========================================================================
   MicrotronX Ticket System - Main Stylesheet
   Version: 1.0
   Bootstrap 5 Custom Overrides & Dashboard Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --mx-primary: #7C3AED;
    --mx-primary-dark: #6D28D9;
    --mx-primary-light: #8B5CF6;
    --mx-sidebar-bg: #1e1b2e;
    --mx-sidebar-text: #a0aec0;
    --mx-sidebar-active: #7C3AED;
    --mx-bg: #f4f5f7;
    --mx-card-bg: #ffffff;
    --mx-text: #2d3748;
    --mx-text-muted: #718096;
    --mx-success: #10b981;
    --mx-warning: #f59e0b;
    --mx-danger: #ef4444;
    --mx-info: #3b82f6;
}

/* --------------------------------------------------------------------------
   2. Body & Layout
   -------------------------------------------------------------------------- */
body {
    background-color: var(--mx-bg);
    color: var(--mx-text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    min-width: 0;
}

/* --------------------------------------------------------------------------
   3. Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--mx-sidebar-bg);
    color: var(--mx-sidebar-text);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    max-height: 40px;
    margin-bottom: 5px;
}

.sidebar-brand {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    text-decoration: none;
}

.sidebar-brand:hover {
    color: #ffffff;
    text-decoration: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--mx-sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(124, 58, 237, 0.15);
    color: #ffffff;
    border-left-color: var(--mx-primary);
}

.sidebar-menu li a i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-menu li a .badge {
    margin-left: auto;
    font-size: 0.7rem;
}

.sidebar-section-title {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--mx-sidebar-text);
    opacity: 0.5;
    padding: 15px 20px 5px;
    margin-top: 10px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mx-sidebar-text);
    font-size: 0.85rem;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mx-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   4. Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
    background: var(--mx-card-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin: -30px -30px 30px -30px;
    border-bottom: 1px solid #e2e8f0;
}

.top-bar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mx-text);
    margin: 0;
}

.top-bar-subtitle {
    font-size: 0.85rem;
    color: var(--mx-text-muted);
    margin: 0;
}

.top-bar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-search {
    position: relative;
}

.top-bar-search input {
    padding-left: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: var(--mx-bg);
    font-size: 0.85rem;
    width: 240px;
    transition: width 0.3s ease, border-color 0.2s ease;
}

.top-bar-search input:focus {
    width: 320px;
    border-color: var(--mx-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
}

.top-bar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mx-text-muted);
    font-size: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--mx-text);
    cursor: pointer;
    padding: 5px;
}

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: var(--mx-card-bg);
    margin-bottom: 24px;
}

.card-header {
    background: none;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Stat Cards (Dashboard) */
.stat-card {
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--mx-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.15;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card .stat-change {
    font-size: 0.8rem;
    margin-top: 8px;
}

.stat-card .stat-change.up {
    color: var(--mx-success);
}

.stat-card .stat-change.down {
    color: var(--mx-danger);
}

/* Stat card color variations */
.stat-card.primary {
    border-left: 4px solid var(--mx-primary);
}

.stat-card.success {
    border-left: 4px solid var(--mx-success);
}

.stat-card.warning {
    border-left: 4px solid var(--mx-warning);
}

.stat-card.danger {
    border-left: 4px solid var(--mx-danger);
}

.stat-card.info {
    border-left: 4px solid var(--mx-info);
}

/* --------------------------------------------------------------------------
   6. Tables
   -------------------------------------------------------------------------- */
.table {
    margin-bottom: 0;
}

.table th {
    color: var(--mx-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background-color: rgba(124, 58, 237, 0.03);
}

.table-clickable tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.table-clickable tbody tr:hover {
    background-color: rgba(124, 58, 237, 0.06);
}

.ticket-id {
    font-weight: 600;
    color: var(--mx-primary);
}

.ticket-subject {
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. Badges & Status
   -------------------------------------------------------------------------- */
.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    line-height: 1.4;
}

/* Ticket status badges */
.badge-open {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-in_progress {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-waiting {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-resolved {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-closed {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Priority badges */
.badge-low {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-high {
    background-color: #fed7aa;
    color: #c2410c;
}

.badge-critical {
    background-color: #fecaca;
    color: #991b1b;
}

/* --------------------------------------------------------------------------
   8. Buttons (Bootstrap Overrides)
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-primary {
    background-color: var(--mx-primary);
    border-color: var(--mx-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--mx-primary-dark);
    border-color: var(--mx-primary-dark);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.btn-primary:active {
    background-color: var(--mx-primary-dark);
    border-color: var(--mx-primary-dark);
}

.btn-outline-primary {
    color: var(--mx-primary);
    border-color: var(--mx-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--mx-primary);
    border-color: var(--mx-primary);
    color: #ffffff;
}

.btn-success {
    background-color: var(--mx-success);
    border-color: var(--mx-success);
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-danger {
    background-color: var(--mx-danger);
    border-color: var(--mx-danger);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-warning {
    background-color: var(--mx-warning);
    border-color: var(--mx-warning);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

/* --------------------------------------------------------------------------
   9. Forms (Bootstrap Overrides)
   -------------------------------------------------------------------------- */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--mx-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.form-select:focus {
    border-color: var(--mx-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mx-text-muted);
    margin-bottom: 6px;
}

.form-check-input:checked {
    background-color: var(--mx-primary);
    border-color: var(--mx-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
    border-color: var(--mx-primary-light);
}

/* --------------------------------------------------------------------------
   10. SLA Indicators
   -------------------------------------------------------------------------- */
.sla-ok {
    color: var(--mx-success);
}

.sla-warning {
    color: var(--mx-warning);
}

.sla-breached {
    color: var(--mx-danger);
    font-weight: 700;
}

.sla-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sla-badge.sla-ok {
    background-color: #d1fae5;
    color: #065f46;
}

.sla-badge.sla-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.sla-badge.sla-breached {
    background-color: #fecaca;
    color: #991b1b;
}

.sla-badge i {
    font-size: 0.7rem;
}

.sla-timer {
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', monospace;
}

/* --------------------------------------------------------------------------
   11. Login Page
   -------------------------------------------------------------------------- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b2e 0%, #2d1b69 50%, #7C3AED 100%);
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-height: 48px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--mx-text);
}

.login-subtitle {
    color: var(--mx-text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.login-card .form-control {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.login-card .btn-primary {
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--mx-text-muted);
}

.login-footer a {
    color: var(--mx-primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. Activity Feed
   -------------------------------------------------------------------------- */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.activity-icon.created {
    background-color: #dbeafe;
    color: #1e40af;
}

.activity-icon.updated {
    background-color: #fef3c7;
    color: #92400e;
}

.activity-icon.resolved {
    background-color: #d1fae5;
    color: #065f46;
}

.activity-icon.commented {
    background-color: #e0e7ff;
    color: #4338ca;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--mx-text-muted);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   13. Comments
   -------------------------------------------------------------------------- */
.comment-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.comment-internal {
    background: #fff3cd;
    border-left: 3px solid var(--mx-warning);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--mx-text-muted);
}

.comment-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

.comment-body p:last-child {
    margin-bottom: 0;
}

.comment-internal-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* --------------------------------------------------------------------------
   14. Pagination (Bootstrap Overrides)
   -------------------------------------------------------------------------- */
.pagination .page-link {
    color: var(--mx-primary);
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    padding: 8px 14px;
}

.pagination .page-link:hover {
    background-color: rgba(124, 58, 237, 0.08);
    border-color: var(--mx-primary-light);
    color: var(--mx-primary-dark);
}

.pagination .page-item.active .page-link {
    background-color: var(--mx-primary);
    border-color: var(--mx-primary);
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    color: var(--mx-text-muted);
    background: #f8f9fa;
}

/* --------------------------------------------------------------------------
   15. Portal Layout (No Sidebar)
   -------------------------------------------------------------------------- */
.portal-wrapper {
    min-height: 100vh;
    background: var(--mx-bg);
}

.portal-header {
    background: var(--mx-primary);
    color: #ffffff;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.portal-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-header .portal-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.portal-header .portal-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.portal-header .portal-nav a:hover,
.portal-header .portal-nav a.active {
    color: #ffffff;
}

.portal-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .top-bar {
        padding: 12px 15px;
        margin: -30px -15px 20px -15px;
    }

    .top-bar-title {
        font-size: 1.2rem;
    }

    .top-bar-search input {
        width: 160px;
    }

    .top-bar-search input:focus {
        width: 200px;
    }

    .main-content {
        padding: 15px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-icon {
        font-size: 2rem;
    }

    .login-card {
        margin: 15px;
        padding: 30px 24px;
    }

    .portal-content {
        padding: 15px;
    }

    .portal-header {
        padding: 15px;
    }

    .portal-header h4 {
        font-size: 1rem;
    }

    .card-body canvas {
        max-height: 220px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .table-responsive-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .top-bar-actions .btn span {
        display: none;
    }

    .top-bar-search {
        display: none;
    }
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* --------------------------------------------------------------------------
   17. Utilities & Helpers
   -------------------------------------------------------------------------- */
.text-primary {
    color: var(--mx-primary) !important;
}

.bg-primary {
    background-color: var(--mx-primary) !important;
}

.border-primary {
    border-color: var(--mx-primary) !important;
}

.text-muted-custom {
    color: var(--mx-text-muted);
}

/* Flash / Alert Messages */
.flash-message {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: flashFadeIn 0.3s ease-out, flashFadeOut 0.5s ease-in 4.5s forwards;
}

.flash-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-message.error {
    background-color: #fecaca;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.flash-message.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.flash-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

@keyframes flashFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flashFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--mx-text-muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 15px;
}

.empty-state h5 {
    font-weight: 600;
    color: var(--mx-text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Loading spinner */
.spinner-mx {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--mx-primary);
    border-radius: 50%;
    animation: spinMx 0.7s linear infinite;
}

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

/* Truncate text */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Avatar */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    background: var(--mx-primary);
}

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Dropdown overrides */
.dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: rgba(124, 58, 237, 0.08);
    color: var(--mx-primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--mx-primary);
    color: #ffffff;
}

/* Modal overrides */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
}

/* Tooltip custom */
.tooltip-inner {
    background-color: var(--mx-sidebar-bg);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Nav tabs override */
.nav-tabs .nav-link {
    color: var(--mx-text-muted);
    font-weight: 500;
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.nav-tabs .nav-link:hover {
    color: var(--mx-primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--mx-primary);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid var(--mx-primary);
    background: transparent;
}
