/* ============================================================================
   VEHICLE MANAGEMENT - SAFE VISUAL UPGRADE
   Security-focused, CSS-only enhancement
   No JavaScript, No External Dependencies, 100% Safe
   ============================================================================ */

/* === VARIABLES === */
:root {
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --gold-light: #E5C968;
    --green: #00843D;
    --red: #C8102E;
    --orange: #F39C12;
    --blue: #3498db;
    --grey-dark: #2c3e50;
    --grey-medium: #7f8c8d;
    --grey-light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === DASHBOARD HEADER === */
.dashboard-header-safe {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: #000;
    padding: 2rem 1rem;
    margin: -1rem -1rem 2rem -1rem;
    border-bottom: 3px solid #000;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.dashboard-header-safe h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.dashboard-header-safe p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* === STATISTICS CARDS === */
.stat-card-safe {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--gold);
}

.stat-card-safe:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-card-safe.success {
    border-left-color: var(--green);
}

.stat-card-safe.danger {
    border-left-color: var(--red);
}

.stat-card-safe.warning {
    border-left-color: var(--orange);
}

.stat-card-safe.info {
    border-left-color: var(--blue);
}

.stat-icon-safe {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    color: var(--gold-dark);
}

.stat-card-safe.success .stat-icon-safe {
    background: linear-gradient(135deg, rgba(0, 132, 61, 0.1), rgba(0, 132, 61, 0.05));
    color: var(--green);
}

.stat-card-safe.danger .stat-icon-safe {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
    color: var(--red);
}

.stat-card-safe.warning .stat-icon-safe {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(243, 156, 18, 0.05));
    color: var(--orange);
}

.stat-card-safe.info .stat-icon-safe {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    color: var(--blue);
}

.stat-value-safe {
    font-size: 2rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0.5rem 0;
}

.stat-label-safe {
    font-size: 0.875rem;
    color: var(--grey-medium);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-meta-safe {
    font-size: 0.75rem;
    color: var(--grey-medium);
    padding-top: 0.5rem;
    border-top: 1px solid var(--grey-light);
}

/* === QUICK ACTIONS === */
.action-card-safe {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
}

.action-header-safe {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grey-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* === BUTTONS === */
.btn-safe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-safe.primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: white;
}

.btn-safe.primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #000;
    transform: translateY(-2px);
}

.btn-safe.success {
    background: var(--green);
    color: white;
}

.btn-safe.success:hover {
    background: #00A652;
}

.btn-safe.danger {
    background: var(--red);
    color: white;
}

.btn-safe.danger:hover {
    background: #A00D25;
}

.btn-safe.warning {
    background: var(--orange);
    color: white;
}

.btn-safe.warning:hover {
    background: #E67E22;
}

.btn-safe.info {
    background: var(--blue);
    color: white;
}

.btn-safe.info:hover {
    background: #2980b9;
}

.btn-safe.secondary {
    background: var(--white);
    color: var(--grey-dark);
    border: 2px solid var(--grey-light);
}

.btn-safe.secondary:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

/* === TABLES === */
.table-card-safe {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-top: 3px solid var(--gold);
}

.table-header-safe {
    background: linear-gradient(135deg, var(--grey-dark), #34495e);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header-safe h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.table-safe {
    width: 100%;
    border-collapse: collapse;
}

.table-safe thead th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--grey-dark);
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.table-safe tbody tr {
    border-bottom: 1px solid var(--grey-light);
    transition: background-color 0.15s;
}

.table-safe tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.table-safe tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* === BADGES === */
.badge-safe {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-safe.success {
    background: rgba(0, 132, 61, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 132, 61, 0.3);
}

.badge-safe.danger {
    background: rgba(200, 16, 46, 0.1);
    color: var(--red);
    border: 1px solid rgba(200, 16, 46, 0.3);
}

.badge-safe.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--orange);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-safe.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--blue);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-safe.secondary {
    background: rgba(127, 140, 141, 0.1);
    color: var(--grey-medium);
    border: 1px solid rgba(127, 140, 141, 0.3);
}

/* === ALERTS === */
.alert-safe {
    background: var(--white);
    border-left: 4px solid;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.alert-safe.success {
    border-left-color: var(--green);
    background: linear-gradient(to right, rgba(0, 132, 61, 0.05), var(--white));
}

.alert-safe.danger {
    border-left-color: var(--red);
    background: linear-gradient(to right, rgba(200, 16, 46, 0.05), var(--white));
}

.alert-safe.warning {
    border-left-color: var(--orange);
    background: linear-gradient(to right, rgba(243, 156, 18, 0.05), var(--white));
}

.alert-safe.info {
    border-left-color: var(--blue);
    background: linear-gradient(to right, rgba(52, 152, 219, 0.05), var(--white));
}

.alert-safe h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .dashboard-header-safe {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-header-safe h1 {
        font-size: 1.25rem;
    }
    
    .stat-value-safe {
        font-size: 1.75rem;
    }
    
    .action-grid-safe {
        grid-template-columns: 1fr;
    }
    
    .btn-safe {
        width: 100%;
    }
    
    .table-card-safe {
        overflow-x: auto;
    }
}

/* === EMPTY STATE === */
.empty-state-safe {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--grey-medium);
}

.empty-state-safe i {
    font-size: 3rem;
    opacity: 0.3;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

/* === UTILITIES === */
.w-100 { width: 100%; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
