:root {
    /* LogRota Official Palette */
    --bs-primary: #FF7A00; /* Orange Action */
    --bs-primary-rgb: 255, 122, 0;
    --bs-secondary: #102A43; /* Night Blue Structure */
    --bs-secondary-rgb: 16, 42, 67;
    --bs-body-color: #FAFAFA; /* Off White */
    --bs-body-bg: #212529; /* Bootstrap Dark Default */
    
    /* States */
    --bs-success: #22C55E;
    --bs-success-rgb: 34, 197, 94;
    --bs-warning: #FACC15;
    --bs-warning-rgb: 250, 204, 21;
    --bs-danger: #EF4444;
    --bs-danger-rgb: 239, 68, 68;

    /* Custom Variables */
    --lr-orange: #FF7A00;
    --lr-blue: #102A43;
    --lr-text-muted: #9CA3AF;
}

/* Global Overrides */
body {
    font-size: 16px;
    color: var(--bs-body-color);
}

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

/* Fix for text-secondary on dark backgrounds */
.text-secondary {
    color: var(--lr-text-muted) !important;
}

/* Navbar Identity */
.navbar {
    background-color: var(--lr-blue) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--lr-orange);
    border-color: var(--lr-orange);
    color: #fff;
    font-weight: bold;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #e66e00 !important; /* Darker Orange */
    border-color: #e66e00 !important;
}

/* Table */
.table {
    color: #e0e0e0;
}

.table-hover tbody tr:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.075);
}

/* Modal */
.modal-content {
    background-color: #212529;
    color: #fff;
    border: 1px solid #444;
}

.modal-header, .modal-footer {
    border-color: #444;
}

.close {
    color: #fff;
    text-shadow: none; 
    opacity: 0.8;
}

.close:hover {
    color: #fff;
    opacity: 1;
}

/* =========================================
   MOBILE EXTREME / APP NATIVE STYLES
   ========================================= */

/* Container Padding for FAB */
.container-app-native {
    padding-bottom: 80px;
}

/* KPI Compactos (Top Stats) */
.kpi-card-native {
    background-color: #212529;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
    padding: 10px 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.kpi-card-native .kpi-value {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.kpi-card-native .kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--lr-text-muted);
    font-weight: bold;
    line-height: 1.2;
}

/* List Card Native (WhatsApp/iFood Style) */
.list-card-native {
    background-color: #2b3035;
    border: 1px solid #495057;
    border-left: 4px solid var(--lr-orange); /* LogRota Identity */
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.list-card-native .card-body {
    padding: 15px;
}

/* Line 1: Header */
.list-card-native .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.list-card-native .tracking-code {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

/* Line 2: Route Highlight */
.list-card-native .route-row {
    margin-bottom: 12px;
}

.list-card-native .route-badge {
    display: inline-block;
    background-color: rgba(255, 122, 0, 0.15); /* Orange Tint */
    color: var(--lr-orange);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
}

.list-card-native .route-badge i {
    margin: 0 5px;
}

/* Line 3: Details */
.list-card-native .details-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--lr-text-muted);
    font-size: 0.9rem;
}

.list-card-native .detail-item {
    display: flex;
    align-items: center;
}

.list-card-native .detail-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #6c757d;
}

/* Line 4: Actions (Full Width Buttons) */
.list-card-native .actions-row {
    display: flex;
    border-top: 1px solid #495057;
}

.list-card-native .action-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    color: var(--lr-text-muted);
    font-weight: bold;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.95rem;
    border-right: 1px solid #495057; /* Default divider for all */
}

.list-card-native .action-btn:last-child {
    border-right: none; /* Remove from last item */
}

.list-card-native .action-btn:hover,
.list-card-native .action-btn:active {
    background-color: rgba(255, 122, 0, 0.1);
    color: var(--lr-orange);
}

.list-card-native .action-btn.edit {
    color: var(--lr-orange);
}

.list-card-native .action-btn.print {
    color: var(--lr-orange);
    opacity: 0.8;
}

.list-card-native .action-btn.delete {
    color: var(--bs-danger);
}
.list-card-native .action-btn.delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--bs-danger);
}

/* Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--lr-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
    border: none;
    text-decoration: none;
    transition: transform 0.2s;
}

.fab-btn:hover {
    transform: scale(1.05);
    background-color: #e66e00;
    color: white;
}

/* Search Sticky */
.search-sticky {
    position: sticky;
    top: 0;
    z-index: 900;
    background-color: #212529;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
