/* Dragnet Intelematics - Enterprise Theme */

/* Intel highlight styling */
.intel-highlight {
    color: #0066cc !important;
    font-weight: 600;
}

:root {
    /* Enterprise Color Palette - Black, White, Blue, Grey */
    --enterprise-black: #000000;
    --enterprise-dark-grey: #1a1a1a;
    --enterprise-grey: #4a4a4a;
    --enterprise-light-grey: #6b6b6b;
    --enterprise-lighter-grey: #e5e5e5;
    --enterprise-white: #ffffff;
    --enterprise-blue: #0066cc;
    --enterprise-blue-dark: #004499;
    --enterprise-blue-light: #3399ff;
    --enterprise-blue-bg: #e6f2ff;
    
    /* Text colors */
    --enterprise-text-primary: #000000;
    --enterprise-text-secondary: #333333;
    --enterprise-text-muted: #666666;
    --enterprise-text-light: #ffffff;
    --enterprise-text-muted-light: #cccccc;
    
    /* Typography - Modern system fonts */
    --enterprise-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --enterprise-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Body styling - clean enterprise feel */
body {
    font-family: var(--enterprise-font);
    background: var(--enterprise-white);
    color: var(--enterprise-text-primary);
    line-height: 1.6;
}

/* Text utilities */
.text-muted {
    color: var(--enterprise-text-muted) !important;
    font-weight: 400;
}

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

small.text-muted {
    color: var(--enterprise-text-muted) !important;
    font-weight: 400;
}

/* Navigation - Clean Enterprise Style */
.dragnet-nav {
    background: var(--enterprise-black) !important;
    border-bottom: 1px solid var(--enterprise-grey);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dragnet-nav .navbar-brand {
    font-family: var(--enterprise-font);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--enterprise-white) !important;
    position: relative;
    padding-left: 0;
}

.dragnet-nav .navbar-brand::before {
    display: none;
}

.dragnet-nav .navbar-brand i {
    color: var(--enterprise-blue);
}

.dragnet-nav .nav-link {
    font-family: var(--enterprise-font);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--enterprise-white) !important;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
}

.dragnet-nav .nav-link:hover,
.dragnet-nav .nav-link.active {
    color: var(--enterprise-blue-light) !important;
    border-bottom-color: var(--enterprise-blue);
    background: transparent;
}

/* Icon-only navigation for desktop */
.nav-icon-link {
    padding: 0.75rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    position: relative;
}

.nav-icon-link i {
    margin: 0 !important;
}

.nav-icon-label {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Hide labels on desktop, show on mobile */
@media (min-width: 992px) {
    .nav-icon-label {
        display: none !important;
    }
}

/* Mobile: Hide icon-only buttons, show only in hamburger menu */
@media (max-width: 991px) {
    .navbar-nav.d-flex.flex-row .nav-icon-link {
        display: none !important;
    }
    
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-collapse .nav-icon-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem !important;
        display: flex !important;
    }
    
    .navbar-collapse .nav-icon-link i {
        width: 24px;
        text-align: center;
        margin-right: 0.5rem;
    }
    
    .navbar-toggler {
        border: 1px solid var(--enterprise-grey);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Cards - Clean Enterprise Style */
.card {
    background: var(--enterprise-white);
    border: 1px solid var(--enterprise-lighter-grey);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card::before {
    display: none;
}

.card-header {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-white) !important;
    border-bottom: 1px solid var(--enterprise-grey);
    font-family: var(--enterprise-font);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.card-header * {
    color: var(--enterprise-white) !important;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: var(--enterprise-white) !important;
}

.card-header .text-muted {
    color: var(--enterprise-text-muted-light) !important;
    opacity: 0.9;
}

.card-header i {
    color: var(--enterprise-blue-light) !important;
    opacity: 1;
}

.card-body {
    background: var(--enterprise-white);
    padding: 1.5rem;
    color: var(--enterprise-text-primary);
}

.card-body .text-muted {
    color: var(--enterprise-text-muted) !important;
    font-weight: 400;
}

.card-body small.text-muted {
    color: var(--enterprise-text-muted) !important;
    font-weight: 400;
}

.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6 {
    color: var(--enterprise-text-primary);
    font-weight: 600;
}

.card-body strong {
    color: var(--enterprise-text-primary);
    font-weight: 600;
}

/* Buttons - Clean Enterprise Style */
.btn {
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 4px;
    border: 1px solid;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.btn-primary {
    background: var(--enterprise-blue);
    border-color: var(--enterprise-blue);
    color: var(--enterprise-white);
}

.btn-primary:hover {
    background: var(--enterprise-blue-dark);
    border-color: var(--enterprise-blue-dark);
    color: var(--enterprise-white);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

.btn-success {
    background: var(--enterprise-blue);
    border-color: var(--enterprise-blue);
    color: var(--enterprise-white);
}

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

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: var(--enterprise-white);
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: var(--enterprise-white);
}

.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: var(--enterprise-black);
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
    color: var(--enterprise-black);
}

.btn-outline-primary {
    border-color: var(--enterprise-blue);
    color: var(--enterprise-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--enterprise-blue);
    border-color: var(--enterprise-blue);
    color: var(--enterprise-white);
}

/* Tables - Clean Enterprise Style */
.table {
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    border-collapse: collapse;
}

.table thead th {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-white) !important;
    border: 1px solid var(--enterprise-grey);
    border-bottom: 2px solid var(--enterprise-blue);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding: 0.75rem;
}

.table thead th * {
    color: var(--enterprise-white) !important;
}

.table thead th i {
    color: var(--enterprise-blue-light) !important;
}

.table tbody td {
    border: 1px solid var(--enterprise-lighter-grey);
    padding: 0.75rem;
    background: var(--enterprise-white);
    color: var(--enterprise-text-primary);
    font-weight: 400;
}

.table tbody td .text-muted {
    color: var(--enterprise-text-muted) !important;
    font-weight: 400;
}

.table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.table tbody tr:nth-child(even) td {
    color: var(--enterprise-text-primary);
}

.table tbody tr:hover {
    background: var(--enterprise-blue-bg);
}

.table tbody tr:hover td {
    color: var(--enterprise-text-primary);
}

/* Badges - Clean Enterprise Style */
.badge {
    font-family: var(--enterprise-font);
    font-size: 0.75rem;
    letter-spacing: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    border: none;
    font-weight: 500;
}

.badge.bg-primary {
    background: var(--enterprise-blue) !important;
    color: var(--enterprise-white) !important;
    font-weight: 500;
}

.badge.bg-success {
    background: var(--enterprise-blue) !important;
    color: var(--enterprise-white) !important;
    font-weight: 500;
}

.badge.bg-danger {
    background: #dc3545 !important;
    color: var(--enterprise-white) !important;
    font-weight: 500;
}

.badge.bg-warning {
    background: #ffc107 !important;
    color: var(--enterprise-black) !important;
    font-weight: 500;
}

.badge.bg-info {
    background: var(--enterprise-blue) !important;
    color: var(--enterprise-white) !important;
    font-weight: 500;
}

/* Alerts - Clean Enterprise Style */
.alert {
    border-radius: 4px;
    border-left: 4px solid;
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    letter-spacing: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alert-primary {
    background: var(--enterprise-blue-bg);
    border-left-color: var(--enterprise-blue);
    color: var(--enterprise-text-primary);
    font-weight: 400;
}

.alert-success {
    background: #d4edda;
    border-left-color: var(--enterprise-blue);
    color: var(--enterprise-text-primary);
    font-weight: 400;
}

.alert-danger {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
    font-weight: 500;
}

.alert-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
    font-weight: 500;
}

.alert-info {
    background: var(--enterprise-blue-bg);
    border-left-color: var(--enterprise-blue);
    color: var(--enterprise-text-primary);
    font-weight: 400;
}

/* Forms - Clean Enterprise Style */
.form-control,
.form-select {
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid var(--enterprise-lighter-grey);
    background: var(--enterprise-white);
    color: var(--enterprise-text-primary);
    padding: 0.5rem 0.75rem;
}

.form-control::placeholder {
    color: var(--enterprise-text-muted);
    opacity: 0.7;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--enterprise-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    background: var(--enterprise-white);
    color: var(--enterprise-text-primary);
    outline: none;
}

.form-label {
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
    color: var(--enterprise-text-primary);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--enterprise-dark-grey);
    border-color: var(--enterprise-grey);
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .form-control::placeholder {
    color: #999999;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-text-light);
    border-color: var(--enterprise-blue);
}

/* Footer - Clean Enterprise Style */
footer {
    background: var(--enterprise-black) !important;
    border-top: 1px solid var(--enterprise-grey);
    color: var(--enterprise-white);
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    letter-spacing: 0;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer .text-muted {
    color: var(--enterprise-text-muted-light) !important;
    font-weight: 400;
}

/* Headings - Clean Enterprise Style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--enterprise-font);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--enterprise-text-primary);
}

h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--enterprise-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--enterprise-lighter-grey);
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

/* Dropdowns */
.dropdown-menu {
    border-radius: 4px;
    border: 1px solid var(--enterprise-lighter-grey);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: var(--enterprise-white);
}

.dropdown-item {
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    letter-spacing: 0;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--enterprise-blue-bg);
    color: var(--enterprise-text-primary);
    border-left: 3px solid var(--enterprise-blue);
}

/* Modal - Clean Enterprise Style */
.modal-content {
    border-radius: 4px;
    border: 1px solid var(--enterprise-lighter-grey);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-white) !important;
    border-bottom: 1px solid var(--enterprise-grey);
    font-family: var(--enterprise-font);
    text-transform: none;
    letter-spacing: 0;
}

.modal-header * {
    color: var(--enterprise-white) !important;
}

.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
    color: var(--enterprise-white) !important;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    background: var(--enterprise-white);
    font-family: var(--enterprise-font);
    color: var(--enterprise-text-primary);
}

.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid var(--enterprise-lighter-grey);
}

[data-theme="dark"] .modal-content {
    border-color: var(--enterprise-grey);
}

[data-theme="dark"] .modal-body {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .modal-footer {
    background: var(--enterprise-black);
    border-top-color: var(--enterprise-grey);
}

/* Code blocks - Clean Enterprise Style */
code {
    font-family: var(--enterprise-font-mono);
    background: #f8f9fa;
    border: 1px solid var(--enterprise-lighter-grey);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--enterprise-blue-dark);
    font-size: 0.875em;
}

pre {
    font-family: var(--enterprise-font-mono);
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-text-light);
    border: 1px solid var(--enterprise-grey);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
}

/* Special Enterprise Elements */
.dragnet-case-number {
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    letter-spacing: 0;
    color: var(--enterprise-text-muted);
    text-transform: none;
    font-weight: 500;
}

[data-theme="dark"] .dragnet-case-number {
    color: #999999;
}

.dragnet-facts {
    background: var(--enterprise-blue-bg);
    border-left: 4px solid var(--enterprise-blue);
    padding: 1rem;
    margin: 1rem 0;
    font-family: var(--enterprise-font);
    font-size: 0.875rem;
    letter-spacing: 0;
    border-radius: 4px;
}

.dragnet-facts::before {
    content: "";
    display: none;
}

/* Dark mode adjustments */
[data-theme="dark"] body {
    background: var(--enterprise-black);
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .text-muted {
    color: #999999 !important;
    font-weight: 400;
}

[data-theme="dark"] small.text-muted {
    color: #999999 !important;
    font-weight: 400;
}

[data-theme="dark"] .card {
    background: var(--enterprise-dark-grey);
    border-color: var(--enterprise-grey);
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .card-body {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .card-body .text-muted {
    color: #999999 !important;
    font-weight: 400;
}

[data-theme="dark"] .card-body h3,
[data-theme="dark"] .card-body h4,
[data-theme="dark"] .card-body h5,
[data-theme="dark"] .card-body h6 {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .card-body strong {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .table tbody td {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-text-light);
    border-color: var(--enterprise-grey);
}

[data-theme="dark"] .table tbody td .text-muted {
    color: #999999 !important;
    font-weight: 400;
}

[data-theme="dark"] .table tbody tr:nth-child(even) {
    background: var(--enterprise-black);
}

[data-theme="dark"] .table tbody tr:nth-child(even) td {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .table tbody tr:hover {
    background: rgba(0, 102, 204, 0.1);
}

[data-theme="dark"] .table tbody tr:hover td {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .form-label {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .alert-primary {
    background: rgba(0, 102, 204, 0.2);
    border-left-color: var(--enterprise-blue);
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .alert-success {
    background: rgba(0, 102, 204, 0.2);
    border-left-color: var(--enterprise-blue);
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-left-color: #dc3545;
    color: #ff9999;
}

[data-theme="dark"] .alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left-color: #ffc107;
    color: #ffd700;
}

[data-theme="dark"] .alert-info {
    background: rgba(0, 102, 204, 0.2);
    border-left-color: var(--enterprise-blue);
    color: var(--enterprise-text-light);
}

/* Additional Enterprise Elements */
.dragnet-badge-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--enterprise-blue);
    border: 2px solid var(--enterprise-blue);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: var(--enterprise-white);
    font-weight: 600;
}

.dragnet-radio-static {
    background: var(--enterprise-dark-grey);
    color: var(--enterprise-text-light);
    font-family: var(--enterprise-font);
    padding: 0.5rem 1rem;
    border: 1px solid var(--enterprise-grey);
    border-radius: 4px;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.875rem;
}

/* Loading states - Clean Enterprise Style */
.dragnet-loading {
    font-family: var(--enterprise-font);
    color: var(--enterprise-text-muted);
    letter-spacing: 0;
    font-weight: 400;
}

[data-theme="dark"] .dragnet-loading {
    color: #999999;
}

.dragnet-loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Dashboard specific styles */
.card.text-center .card-body {
    color: var(--enterprise-text-primary);
}

.card.text-center .card-body .text-muted {
    color: var(--enterprise-text-muted) !important;
    font-weight: 400;
    font-size: 0.875rem;
}

.card.text-center .card-body h3 {
    color: var(--enterprise-text-primary);
    font-weight: 600;
}

.card.text-center .card-body i {
    opacity: 0.8;
}

/* Alert list items in dashboard */
.border.rounded {
    border-color: var(--enterprise-lighter-grey) !important;
    background: var(--enterprise-white);
}

.border.rounded strong {
    color: var(--enterprise-text-primary);
    font-weight: 600;
}

.border.rounded .text-muted {
    color: var(--enterprise-text-muted) !important;
    font-weight: 400;
}

[data-theme="dark"] .border.rounded {
    background: var(--enterprise-dark-grey);
    border-color: var(--enterprise-grey) !important;
}

[data-theme="dark"] .border.rounded strong {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .border.rounded .text-muted {
    color: #999999 !important;
}

[data-theme="dark"] .card.text-center .card-body {
    color: var(--enterprise-text-light);
}

[data-theme="dark"] .card.text-center .card-body .text-muted {
    color: #999999 !important;
}

[data-theme="dark"] .card.text-center .card-body h3 {
    color: var(--enterprise-text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dragnet-nav .navbar-brand {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}
