/* Fleet Tracker - Custom Styles */

/* Enhanced navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.nav-link {
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255,255,255,.1);
    border-radius: 4px;
}

.nav-link.active {
    background-color: rgba(255,255,255,.15);
    border-radius: 4px;
    font-weight: 500;
}

/* Dashboard Stats Cards */
.stat-card {
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card .card-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Gradient backgrounds for stat cards */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Consistent card spacing */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

/* Table enhancements */
.table-responsive {
    margin-top: 1rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background-color: #f1f3f5;
}

/* Enhanced badge styling */
.badge {
    font-size: 0.75em;
    padding: 0.4em 0.6em;
    font-weight: 600;
}

.badge-status {
    padding: 0.5em 0.8em;
    border-radius: 12px;
}

/* Status icons */
.status-icon {
    font-size: 1.2em;
    margin-right: 0.3em;
}

.status-pass {
    color: #28a745;
}

.status-fail {
    color: #dc3545;
}

.status-warning {
    color: #ffc107;
}

/* Button spacing */
.btn + .btn {
    margin-left: 0.25rem;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

/* Form improvements */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-section {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.form-section h5 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Alert positioning */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* List group enhancements */
.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    border-left-color: #667eea;
    background-color: #f8f9fa;
}

/* Quick action buttons */
.quick-action-btn {
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6;
    background: white;
    text-decoration: none;
    display: block;
}

.quick-action-btn:hover {
    border-color: #667eea;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.quick-action-btn .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .table {
        font-size: 0.875rem;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
    
    .stat-card .card-icon {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}
