/* =====================================================
   VesselWatch - Marine Fleet Monitoring System
   Maritime Theme Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    /* Maritime Color Palette */
    --navy-dark: #0a192f;
    --navy-medium: #112240;
    --navy-light: #1d3557;
    --ocean-blue: #0077b6;
    --ocean-light: #00b4d8;
    --sea-foam: #90e0ef;
    --wave-light: #caf0f8;
    --coral: #e63946;
    --sunset-orange: #f77f00;
    --gold: #fcbf49;
    --sand: #eae2b7;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    
    /* Status Colors */
    --status-active: #2ecc71;
    --status-warning: #f39c12;
    --status-danger: #e74c3c;
    --status-info: #3498db;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(10, 25, 47, 0.1);
    --shadow-md: 0 4px 12px rgba(10, 25, 47, 0.15);
    --shadow-lg: 0 8px 24px rgba(10, 25, 47, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 119, 182, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    min-height: 100vh;
    color: var(--white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    background: linear-gradient(180deg, var(--navy-dark) 0%, rgba(10, 25, 47, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand .logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.nav-link {
    color: var(--sea-foam) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    background: rgba(0, 180, 216, 0.2);
}

.nav-link i {
    margin-right: 0.5rem;
}

/* =====================================================
   Cards & Containers
   ===================================================== */
.card {
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(90deg, rgba(0, 119, 182, 0.3), transparent);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
}

.card-header i {
    margin-right: 0.75rem;
    color: var(--ocean-light);
}

.card-body {
    padding: 1.5rem;
    color: #e8edf5;
}

.card-title {
    color: var(--white);
    font-family: var(--font-heading);
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-medium) 100%);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-card .stat-label {
    color: #90e0ef;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* =====================================================
   Forms
   ===================================================== */
.form-control, .form-select {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus, .form-select:focus {
    background: rgba(10, 25, 47, 0.8);
    border-color: var(--ocean-light);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    color: var(--white);
}

.form-control::placeholder {
    color: var(--gray);
}

.form-label {
    color: #cad6e8;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: #a8b2c1;
    font-size: 0.85rem;
}

/* Input Groups */
.input-group-text {
    background: rgba(0, 119, 182, 0.3);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: var(--ocean-light);
}

/* Floating Labels */
.form-floating label {
    color: var(--gray);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--ocean-light);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--ocean-light), var(--ocean-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: var(--white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid rgba(0, 180, 216, 0.5);
    color: var(--ocean-light);
}

.btn-outline-light:hover {
    background: rgba(0, 180, 216, 0.2);
    border-color: var(--ocean-light);
    color: var(--white);
}

/* =====================================================
   Tables
   ===================================================== */
.table {
    color: #e8edf5;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0, 180, 216, 0.05);
    --bs-table-hover-bg: rgba(0, 180, 216, 0.1);
}

.table thead th {
    background: linear-gradient(90deg, rgba(0, 119, 182, 0.3), rgba(0, 119, 182, 0.1));
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid rgba(0, 180, 216, 0.3);
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(0, 180, 216, 0.1);
}

/* Responsive Table */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* =====================================================
   Badges & Status
   ===================================================== */
.badge {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.badge.bg-active { background: var(--status-active) !important; }
.badge.bg-maintenance { background: var(--status-warning) !important; }
.badge.bg-inactive { background: var(--status-danger) !important; }
.badge.bg-pending { background: var(--status-info) !important; }

/* =====================================================
   Engine Monitoring Display
   ===================================================== */
.engine-card {
    background: linear-gradient(135deg, var(--navy-medium), var(--navy-dark));
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.engine-card .engine-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.engine-card .engine-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}

.engine-card .engine-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
}

.engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.engine-param {
    background: rgba(0, 180, 216, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.engine-param .param-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: #00d4ff;
}

.engine-param .param-unit {
    font-size: 0.85rem;
    color: #a8b2c1;
}

.engine-param .param-label {
    font-size: 0.8rem;
    color: #90e0ef;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Warning States */
.engine-param.warning .param-value { color: var(--status-warning); }
.engine-param.danger .param-value { color: var(--status-danger); }

/* =====================================================
   Sidebar
   ===================================================== */
.sidebar {
    background: var(--navy-dark);
    min-height: calc(100vh - 80px);
    border-right: 1px solid rgba(0, 180, 216, 0.2);
    padding: 1.5rem 0;
}

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

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--sea-foam);
    text-decoration: none;
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(0, 180, 216, 0.1);
    color: var(--white);
    border-left-color: var(--ocean-light);
}

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

.sidebar-divider {
    height: 1px;
    background: rgba(0, 180, 216, 0.2);
    margin: 1rem 0;
}

/* =====================================================
   Modal Customization
   ===================================================== */
.modal-content {
    background: var(--navy-medium);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-lg);
}

.modal-header {
    background: linear-gradient(90deg, rgba(0, 119, 182, 0.3), transparent);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.modal-title {
    color: var(--white);
    font-family: var(--font-heading);
}

.modal-footer {
    border-top: 1px solid rgba(0, 180, 216, 0.2);
}

.btn-close {
    filter: invert(1);
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert-warning {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border-left: 4px solid #f1c40f;
}

.alert-info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* =====================================================
   Login Page
   ===================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 50%, var(--ocean-blue) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    animation: drift 30s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-50%, -50%); }
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(17, 34, 64, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    padding: 3rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-light));
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-glow);
}

.login-logo h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.login-logo p {
    color: var(--sea-foam);
    font-size: 0.9rem;
}

/* =====================================================
   Dashboard Widgets
   ===================================================== */
.vessel-status-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vessel-item {
    background: linear-gradient(135deg, var(--navy-light), var(--navy-medium));
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: var(--transition-normal);
}

.vessel-item:hover {
    border-color: var(--ocean-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.vessel-item .vessel-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.vessel-item .vessel-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.vessel-item .vessel-info p {
    color: var(--sea-foam);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 80px;
        width: 280px;
        height: calc(100vh - 80px);
        z-index: 1050;
        transition: var(--transition-normal);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .stat-card .stat-value { font-size: 2rem; }
    
    .card-body { padding: 1rem; }
    
    .engine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .engine-param .param-value { font-size: 1.25rem; }
    
    .btn { padding: 0.625rem 1rem; }
    
    .login-card { padding: 2rem; margin: 1rem; }
}

@media (max-width: 575.98px) {
    .engine-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card { padding: 1rem; }
    
    .navbar-brand { font-size: 1.25rem; }
    .navbar-brand .logo-icon { width: 40px; height: 40px; }
}

/* =====================================================
   Utility Classes
   ===================================================== */
.text-ocean { color: #00d4ff !important; }
.text-coral { color: #ff6b6b !important; }
.text-gold { color: #ffd93d !important; }
.text-seafoam { color: #90e0ef !important; }

.bg-ocean { background-color: var(--ocean-blue); }
.bg-navy { background-color: var(--navy-dark); }

.border-ocean { border-color: var(--ocean-light) !important; }

.glow { box-shadow: var(--shadow-glow); }

/* =====================================================
   GLOBAL TEXT COLOR FIX - HIGH CONTRAST FOR DARK THEME
   ===================================================== */

/* MASTER TEXT COLOR - Apply to everything */
body,
html,
* {
    --text-primary: #ffffff;
    --text-secondary: #e8edf5;
    --text-muted: #b8c5d6;
}

/* Override Bootstrap's default text-muted */
.text-muted {
    color: #b8c5d6 !important;
}

/* All basic text elements - BRIGHT */
body, 
p, 
span, 
div,
li,
td,
th,
dt,
dd,
label,
legend {
    color: #e8edf5;
}

/* Headings - PURE WHITE */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
}

/* Strong/Bold - WHITE */
strong, b, .fw-bold, .fw-semibold {
    color: #ffffff !important;
}

/* Small text - still visible */
small, .small, .text-sm {
    color: #b8c5d6 !important;
}

/* =====================================================
   TABLE TEXT - ALL WHITE/BRIGHT
   ===================================================== */
.table,
.table td,
.table th,
.table tbody,
.table thead {
    color: #e8edf5 !important;
}

.table td {
    color: #e8edf5 !important;
}

.table td *,
.table th * {
    color: inherit;
}

.table td strong,
.table td b,
.table th strong,
.table th b {
    color: #ffffff !important;
}

.table thead th {
    color: #ffffff !important;
    font-weight: 600;
}

/* =====================================================
   CARD TEXT - ALL BRIGHT
   ===================================================== */
.card,
.card-body,
.card-text,
.card-footer {
    color: #e8edf5 !important;
}

.card-body *,
.card-text *,
.card-footer * {
    color: inherit;
}

.card-title,
.card-header {
    color: #ffffff !important;
}

.card-body strong,
.card-body b,
.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6 {
    color: #ffffff !important;
}

/* =====================================================
   LIST GROUP & ACCORDION - BRIGHT TEXT
   ===================================================== */
.list-group-item {
    background: rgba(10, 25, 47, 0.6) !important;
    color: #e8edf5 !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
}

.list-group-item * {
    color: inherit;
}

.list-group-item strong,
.list-group-item b {
    color: #ffffff !important;
}

.accordion-item {
    background: var(--navy-medium) !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
}

.accordion-button {
    background: var(--navy-medium) !important;
    color: #ffffff !important;
}

.accordion-button::after {
    filter: brightness(3);
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 119, 182, 0.3) !important;
    color: #ffffff !important;
}

.accordion-body {
    background: var(--navy-dark) !important;
    color: #e8edf5 !important;
}

.accordion-body * {
    color: inherit;
}

/* =====================================================
   FORM ELEMENTS - BRIGHT LABELS & TEXT
   ===================================================== */
.form-label,
label {
    color: #cad6e8 !important;
    font-weight: 500;
}

.form-control,
.form-select {
    color: #ffffff !important;
    background: rgba(10, 25, 47, 0.6) !important;
}

.form-control::placeholder {
    color: #8892a5 !important;
}

.form-text,
.form-check-label {
    color: #b8c5d6 !important;
}

.input-group-text {
    color: #00d4ff !important;
    background: rgba(0, 119, 182, 0.3) !important;
}

/* =====================================================
   BADGES - WHITE TEXT
   ===================================================== */
.badge {
    color: #ffffff !important;
}

/* =====================================================
   DROPDOWN & NAVIGATION
   ===================================================== */
.dropdown-menu {
    background: var(--navy-dark) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
}

.dropdown-item {
    color: #e8edf5 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #ffffff !important;
    background: rgba(0, 180, 216, 0.2) !important;
}

.dropdown-item-text {
    color: #b8c5d6 !important;
}

.dropdown-divider {
    border-color: rgba(0, 180, 216, 0.2) !important;
}

.navbar-nav .nav-link {
    color: #cad6e8 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff !important;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    color: #b8c5d6;
}

.breadcrumb-item {
    color: #b8c5d6 !important;
}

.breadcrumb-item.active {
    color: #cad6e8 !important;
}

.breadcrumb-item a {
    color: #00d4ff !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c7a8a !important;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-content {
    background: var(--navy-medium) !important;
    color: #e8edf5 !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
}

.modal-header {
    border-bottom-color: rgba(0, 180, 216, 0.3) !important;
    color: #ffffff !important;
}

.modal-title {
    color: #ffffff !important;
}

.modal-body {
    color: #e8edf5 !important;
}

.modal-body * {
    color: inherit;
}

.modal-body strong,
.modal-body b {
    color: #ffffff !important;
}

.modal-footer {
    border-top-color: rgba(0, 180, 216, 0.3) !important;
}

.btn-close {
    filter: brightness(3);
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    color: #ffffff !important;
}

.alert * {
    color: inherit;
}

/* =====================================================
   LINKS
   ===================================================== */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item) {
    color: #00d4ff !important;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item):hover {
    color: #90e0ef !important;
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stat-card .stat-value {
    color: #ffffff !important;
}

.stat-card .stat-label {
    color: #90e0ef !important;
}

/* =====================================================
   ENGINE PARAMS
   ===================================================== */
.engine-param .param-value {
    color: #00d4ff !important;
}

.engine-param .param-label {
    color: #90e0ef !important;
}

.engine-param .param-unit {
    color: #b8c5d6 !important;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.page-link {
    background: var(--navy-medium) !important;
    color: #e8edf5 !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
}

.page-link:hover {
    background: rgba(0, 180, 216, 0.2) !important;
    color: #ffffff !important;
}

.page-item.active .page-link {
    background: var(--ocean-blue) !important;
    color: #ffffff !important;
}

.page-item.disabled .page-link {
    background: var(--navy-dark) !important;
    color: #6c7a8a !important;
}

/* =====================================================
   TOOLTIP & POPOVER
   ===================================================== */
.tooltip-inner {
    background: var(--navy-dark) !important;
    color: #ffffff !important;
}

.popover {
    background: var(--navy-dark) !important;
}

.popover-header {
    background: var(--navy-medium) !important;
    color: #ffffff !important;
}

.popover-body {
    color: #e8edf5 !important;
}

/* =====================================================
   SPECIFIC PAGE FIXES
   ===================================================== */

/* Vessel/Fleet cards */
.vessel-card,
.fleet-card,
.vessel-item,
.fleet-item {
    color: #e8edf5 !important;
}

.vessel-card *,
.fleet-card *,
.vessel-item *,
.fleet-item * {
    color: inherit;
}

.vessel-card strong,
.fleet-card strong,
.vessel-card b,
.fleet-card b,
.vessel-name {
    color: #ffffff !important;
}

/* Supply category items */
.supply-item,
.category-item,
.item-row {
    color: #e8edf5 !important;
}

.supply-item *,
.category-item *,
.item-row * {
    color: inherit;
}

/* Order items */
.order-item,
.cart-item {
    color: #e8edf5 !important;
}

/* Icon colors - make them pop */
.fa, .fas, .far, .fab, .fal, .fad {
    opacity: 1;
}

/* Ensure all icons in tables/cards are visible */
td i, th i, .card i {
    color: inherit;
}

/* Fix any remaining dark text */
[class*="text-dark"],
[class*="text-black"],
[class*="text-body"] {
    color: #e8edf5 !important;
}

/* Bootstrap overrides */
.text-body {
    color: #e8edf5 !important;
}

.text-dark {
    color: #e8edf5 !important;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    * {
        color: black !important;
    }
    
    .navbar, .sidebar, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .card-header, .table thead th {
        background: #f5f5f5 !important;
        color: black !important;
    }
}
