/* Dark Mode Complete - Comprehensive Styling for All Components */

/* ========== GLOBAL DARK MODE ========== */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

[data-bs-theme="dark"] body {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .app-main {
    background: #0f172a !important;
}

/* ========== CHAT COMPONENT ========== */
[data-bs-theme="dark"] .session-chat-container .chat-panel {
    background: rgba(15, 23, 42, 0.95) !important;
}

[data-bs-theme="dark"] .session-chat-container .card {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .session-chat-container .card-header {
    background: rgba(99, 102, 241, 0.2) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .session-chat-container .message-bubble.bg-white {
    background: rgba(31, 41, 55, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .session-chat-container .message-bubble.bg-primary {
    background: rgba(99, 102, 241, 0.8) !important;
    color: white !important;
}

[data-bs-theme="dark"] .session-chat-container .mention {
    background: rgba(99, 102, 241, 0.3) !important;
    color: #a5b4fc !important;
}

[data-bs-theme="dark"] .session-chat-container .emoji-picker-container,
[data-bs-theme="dark"] .session-chat-container .mention-autocomplete {
    background: rgba(31, 41, 55, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .session-chat-container .quick-message-btn {
    background: rgba(31, 41, 55, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .session-chat-container .quick-message-btn:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

/* ========== WELCOME PAGE ========== */
[data-bs-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .feature-card {
    background: rgba(31, 41, 55, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .feature-card:hover {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
}

[data-bs-theme="dark"] .mini-feature-card {
    background: rgba(31, 41, 55, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== TABLES ========== */
[data-bs-theme="dark"] .table {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(31, 41, 55, 0.5) !important;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

[data-bs-theme="dark"] .table thead th {
    background: rgba(31, 41, 55, 0.8) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

/* ========== FORMS ========== */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: rgba(31, 41, 55, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========== MODALS ========== */
[data-bs-theme="dark"] .modal-content {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .modal-header {
    background: rgba(31, 41, 55, 0.8) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .modal-footer {
    background: rgba(31, 41, 55, 0.8) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== ALERTS ========== */
[data-bs-theme="dark"] .alert {
    background: rgba(31, 41, 55, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

[data-bs-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fcd34d !important;
}

[data-bs-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

/* ========== BREADCRUMBS ========== */
[data-bs-theme="dark"] .breadcrumb {
    background: rgba(31, 41, 55, 0.6) !important;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #e2e8f0 !important;
}

/* ========== BADGES ========== */
[data-bs-theme="dark"] .badge {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .badge.bg-primary {
    background: rgba(99, 102, 241, 0.8) !important;
}

[data-bs-theme="dark"] .badge.bg-success {
    background: rgba(16, 185, 129, 0.8) !important;
}

[data-bs-theme="dark"] .badge.bg-danger {
    background: rgba(239, 68, 68, 0.8) !important;
}

/* ========== DROPDOWNS ========== */
[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    color: white !important;
}

/* ========== NAVBAR ========== */
[data-bs-theme="dark"] .navbar-brand {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-bs-theme="dark"] .nav-link:hover {
    color: white !important;
}

/* ========== BUTTONS ========== */
[data-bs-theme="dark"] .btn-outline-primary {
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #a5b4fc !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background: rgba(99, 102, 241, 0.8) !important;
    border-color: rgba(99, 102, 241, 0.8) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* ========== CHARTS & GRAPHS ========== */
[data-bs-theme="dark"] .chart-container {
    background: rgba(31, 41, 55, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== SCROLLBARS ========== */
[data-bs-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* ========== LINKS ========== */
[data-bs-theme="dark"] a {
    color: #93c5fd !important;
}

[data-bs-theme="dark"] a:hover {
    color: #60a5fa !important;
}

/* ========== TEXT COLORS ========== */
[data-bs-theme="dark"] .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #a5b4fc !important;
}

[data-bs-theme="dark"] .text-success {
    color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .text-danger {
    color: #fca5a5 !important;
}

[data-bs-theme="dark"] .text-warning {
    color: #fcd34d !important;
}

/* ========== BORDERS ========== */
[data-bs-theme="dark"] .border {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .border-top {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== LIST GROUPS ========== */
[data-bs-theme="dark"] .list-group-item {
    background: rgba(31, 41, 55, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .list-group-item:hover {
    background: rgba(31, 41, 55, 0.8) !important;
}

/* ========== PAGINATION ========== */
[data-bs-theme="dark"] .pagination .page-link {
    background: rgba(31, 41, 55, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background: rgba(99, 102, 241, 0.8) !important;
    border-color: rgba(99, 102, 241, 0.8) !important;
}

/* ========== TOOLTIPS & POPOVERS ========== */
[data-bs-theme="dark"] .tooltip .tooltip-inner {
    background: rgba(31, 41, 55, 0.95) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .popover {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

/* ========== CODE BLOCKS ========== */
[data-bs-theme="dark"] code {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #fbbf24 !important;
}

[data-bs-theme="dark"] pre {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

/* ========== SELECTION ========== */
[data-bs-theme="dark"] ::selection {
    background: rgba(99, 102, 241, 0.3) !important;
    color: white !important;
}

[data-bs-theme="dark"] ::-moz-selection {
    background: rgba(99, 102, 241, 0.3) !important;
    color: white !important;
}



