/* Professional Dark Blue & Black Color Scheme */
:root {
    /* Professional Color Palette */
    --primary-blue: #1e3a8a;
    --dark-blue: #1e40af;
    --light-blue: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --border-gray: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] {
    --primary-blue: #60a5fa;
    --dark-blue: #3b82f6;
    --light-blue: #93c5fd;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-white: #1f2937;
    --bg-gray-50: #374151;
    --bg-gray-100: #4b5563;
    --border-gray: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

/* Professional Text Colors */
.text-professional {
    color: var(--text-primary) !important;
}

.text-professional-secondary {
    color: var(--text-secondary) !important;
}

.text-professional-muted {
    color: var(--text-muted) !important;
}

/* Professional Buttons */
.btn-professional {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    font-weight: 500;
}

.btn-professional:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
}

/* Professional Cards */
.card-professional {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.card-professional .card-header {
    background-color: var(--bg-gray-50);
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-primary);
}

/* Professional Workflow Sections */
.workflow-section-professional {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.workflow-header-professional {
    background-color: var(--bg-gray-50);
    border-bottom: 1px solid var(--border-gray);
    border-radius: 11px 11px 0 0;
    padding: 1.5rem;
}

.workflow-header-professional h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0;
}

.workflow-header-professional p {
    color: var(--text-secondary);
    margin: 0;
}

.workflow-content-professional {
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Professional Tables */
.table-professional {
    color: var(--text-primary);
}

.table-professional th {
    background-color: var(--bg-gray-50);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-gray);
}

.table-professional td {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-gray);
}

.table-professional tbody tr:hover {
    background-color: var(--bg-gray-50);
}

/* Professional Badges - Keep Call Outcome Colors */
.badge-professional {
    background-color: var(--primary-blue);
    color: white;
}

/* Unassigned Leads - Professional Colors */
.unassigned-professional {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
}

.unassigned-professional .card-header {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 10px 10px 0 0;
}

.unassigned-professional .card-body {
    background-color: var(--bg-white);
    color: var(--text-primary);
}

/* Professional Form Controls */
.form-control-professional {
    border: 1px solid var(--border-gray);
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.form-control-professional:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Professional Alerts */
.alert-professional {
    background-color: var(--bg-gray-50);
    border: 1px solid var(--border-gray);
    color: var(--text-primary);
}

.alert-professional-info {
    background-color: rgba(30, 58, 138, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Professional Navigation */
.navbar-professional {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
}

.navbar-professional .navbar-brand,
.navbar-professional .nav-link {
    color: var(--text-primary) !important;
}

.navbar-professional .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Professional Pagination */
.pagination-professional .page-link {
    color: var(--primary-blue);
    border-color: var(--border-gray);
    background-color: var(--bg-white);
}

.pagination-professional .page-link:hover {
    background-color: var(--bg-gray-50);
    color: var(--dark-blue);
}

.pagination-professional .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Force text visibility in all themes */
.force-visible {
    color: var(--text-primary) !important;
}

.force-visible-secondary {
    color: var(--text-secondary) !important;
}

/* Professional Statistics Cards */
.stats-card-professional {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stats-card-professional h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stats-card-professional p {
    color: var(--text-secondary);
    margin: 0;
}

/* Ensure all text is visible - Force visibility */
body, p, div, span, td, th, li, h1, h2, h3, h4, h5, h6, a, label, input, select, textarea {
    color: var(--text-primary) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Force visibility for all table elements */
table, table td, table th, table tr {
    color: var(--text-primary) !important;
}

/* Force visibility for cards */
.card, .card-body, .card-header, .card-title, .card-text {
    color: var(--text-primary) !important;
}

/* Force visibility for buttons */
.btn {
    color: white !important;
}

.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-info, .btn-outline-warning, .btn-outline-danger {
    color: var(--primary-blue) !important;
}

/* Force visibility for badges */
.badge {
    color: white !important;
}

/* Force visibility for alerts */
.alert {
    color: var(--text-primary) !important;
}

/* Force visibility for dropdowns */
.dropdown-menu, .dropdown-item {
    color: var(--text-primary) !important;
}

/* Force visibility for navigation */
.navbar, .navbar-brand, .nav-link {
    color: var(--text-primary) !important;
}

/* Override Bootstrap classes with professional colors */
.text-success {
    color: #059669 !important;
}

.text-danger {
    color: #dc2626 !important;
}

.text-warning {
    color: #d97706 !important;
}

.text-info {
    color: var(--primary-blue) !important;
}

/* Professional spacing and typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-gray-50);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

/* Professional button styling */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}