/* ============================================
   IFTA AI — App-Wide Visual Polish
   Premium SaaS feel over Bootstrap 5.3.3
   ============================================ */

/* 1. Page Background — subtle off-white */
body {
    background-color: #f5f6fa;
}

/* 2. Cards — soft shadow, rounded, hover lift */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.card .card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
    border-radius: 0.75rem 0.75rem 0 0;
}
.card .card-body h4,
.card .card-body .display-4 {
    font-weight: 700;
}

/* 3. Navbar — depth + better link spacing */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.navbar .nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}
.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 4. Buttons — smooth hover transitions */
.btn {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 5. Tables — cleaner look */
.table {
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
.table-hover tbody tr {
    transition: background-color 0.15s ease;
}

/* 6. Form Controls — subtle polish */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border-color: #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* 7. Badges — rounder */
.badge {
    border-radius: 0.5rem;
    font-weight: 500;
}

/* 8. Dropdown Menus — shadow + rounded */
.dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0.35rem;
}
.dropdown-item {
    border-radius: 0.375rem;
    margin: 0.1rem 0;
    padding: 0.4rem 0.75rem;
    transition: background-color 0.15s ease;
}

/* 9. Toast Notifications — match style */
.toast {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 10. Modals — softer corners */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 11. Navbar Alert Bell */
.bell-icon {
    font-size: 1.15rem;
    animation: bellShake 3s ease-in-out infinite;
}
@keyframes bellShake {
    0%, 90%, 100% { transform: rotate(0); }
    92% { transform: rotate(8deg); }
    94% { transform: rotate(-8deg); }
    96% { transform: rotate(5deg); }
    98% { transform: rotate(-3deg); }
}
.alert-dropdown {
    border-radius: 0.75rem !important;
    padding: 0 !important;
    overflow: hidden;
}
.alert-dropdown .bg-light {
    border-radius: 0.75rem 0.75rem 0 0;
}
.alert-row {
    border-left: 3px solid transparent !important;
    transition: background-color 0.15s ease;
}
.alert-row:hover {
    background-color: #f8f9fa;
}
.alert-row-danger {
    border-left-color: var(--bs-danger) !important;
}
.alert-row-warning {
    border-left-color: var(--bs-warning) !important;
}
.alert-row:last-child {
    border-bottom: none !important;
}

/* 12. Dashboard Gauges — truck instrument cluster style */
.gauge-wrap {
    width: 140px;
    height: 85px;
    position: relative;
    overflow: hidden;
}
.gauge-wrap canvas {
    margin-top: -10px;
}
@media (max-width: 576px) {
    .gauge-wrap {
        width: 110px;
        height: 70px;
    }
}
