.form-control,
.btn {
    box-shadow: none !important;
    outline: none !important;
}

.stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 12px;
    color: #374151;
}

.mini-label {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 11px;
    color: #6b7280;
}

/* Sidebar Enhancements */
.sb-sidenav-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    /* Bootstrap Primary Gradient */
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Enhancing navigation items */
.sb-sidenav-dark .sb-sidenav-menu .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem;
    /* Slide effect */
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.15) 0%, rgba(13, 110, 253, 0) 100%);
    border-left-color: #0d6efd;
}

.sb-sidenav-menu-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* add vehicle */
.vehicle-card {
    transition: all 0.25s ease;
    border-radius: 14px;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.bg-success-subtle {
    background: rgba(25,135,84,0.1);
}

.add-vehicle-card {
    cursor: pointer;
    border: 2px dashed #198754;
    border-radius: 14px;
    background: linear-gradient( to right, rgba(25, 135, 84, 0.08), #ffffff);
    transition: all 0.25s ease;
    min-height: 180px;
}

.add-vehicle-card:hover {
    background: linear-gradient( to right, rgba(25, 135, 84, 0.15), #ffffff);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(25,135,84,0.15);
}

.add-stage-card {
    cursor: pointer;
    border: 1.5px dashed rgba(23, 31, 51, 0.12);
    border-radius: 14px;
    background: linear-gradient( to right, rgba(23, 31, 51, 0.015), #8a95a8);
    transition: background 0.25s ease, border-color 0.25s ease;
    min-height: 180px;
}

.add-stage-card:hover {
    background: linear-gradient( to right, rgba(23, 31, 51, 0.03), #8a95a8);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(138, 149, 168, 0.22);
}

.add-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(25,135,84,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.add-icon i {
    font-size: 24px;
    color: #198754;
}
/* add vehicle */

/* Owner and Employee Templates */
.owner-action-card {
    position: relative;
    min-width: 200px;
    height: 120px;
    padding: 16px;
    border-radius: 14px;
    background: white;
    border: 2px dashed #0d6efd;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .25s ease;
    overflow: hidden;
}

/* Lift */
.owner-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13,110,253,.2);
    border-style: solid;
}

/* Avatar */
.owner-action-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

/* Floating plus */
.owner-action-plus {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0d6efd,#4dabf7);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 16px rgba(13,110,253,.4);
}

/* Hover panel */
.owner-action-hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    background: #f8f9fa;
    padding: 12px;

    transform: translateY(100%);
    transition: transform .25s ease;
    border-top: 1px solid #dee2e6;
}

/* Reveal */
.owner-action-card:hover .owner-action-hover {
    transform: translateY(0);
}

.owner-plus-card {
    min-width: 120px;
    height: 120px;
    border-radius: 14px;

    background: white;
    border: 2px dashed #0d6efd;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all .2s ease;
}

/* Lift */
.owner-plus-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13,110,253,.2);
    border-style: solid;
}

/* Plus Icon */
.owner-plus-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;

    background: linear-gradient(135deg,#0d6efd,#4dabf7);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 16px rgba(13,110,253,.35);
    margin-bottom: 4px;
}

.owner-plus-icon i {
    font-size: 16px;
}
/* Owner and Employee Templates */

/* STYLINGS FOR PROFILE VIEW */
/* Tab styling  */
.nav-profile-tabs {
    background: #eef2f6;
    border-radius: 8px;
    padding: 4px;
    border: none;
}

.nav-profile-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 6px;
}

.nav-profile-tabs .nav-link.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* Tab styling  */

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}
.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.card-profile {
    border: 1px solid #f1f5f9;
    border-radius: 10px;
}

/* Reduced spacing for high density */
.info-group {
    padding: 0.65rem 0; /* Tight vertical spacing */
}

.info-label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
    margin-bottom: 1px;
}

.info-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
}

.section-title {
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem !important;
}

/* Soft Badges for Roles */
.badge-soft-primary { background-color: #ecf2ff; color: #0d6efd; border: 1px solid rgba(13,110,253,0.1); }
.badge-soft-success { background-color: #e6fffa; color: #10b981; border: 1px solid rgba(16,185,129,0.1); }
.badge-soft-warning { background-color: #fff8e1; color: #f59e0b; border: 1px solid rgba(245,158,11,0.1); }
.badge-soft-info { background-color: #e0f2f1; color: #0891b2; border: 1px solid rgba(8,145,178,0.1); }
.badge-soft-purple { background-color: #f3e8ff; color: #9333ea; border: 1px solid rgba(147,51,234,0.1); }
.badge-soft-secondary { background-color: #f3f4f6; color: #4b5563; border: 1px solid rgba(75,85,99,0.1); }
.badge-soft-danger { background-color: #fef2f2; color: #ef4444; border: 1px solid rgba(239,68,68,0.1); }

.profile-role-badge {
    font-size: 0.7rem;
    padding: 0.5em 1em;
    font-weight: 600;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge.bg-success {
    font-size: 0.65rem;
    padding: 0.4em 0.8em;
    background-color: #10b981 !important;
}

.attendance-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.circle-status {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background-color: #f1f3f5;
}
.circle-status.active { background-color: #10b981; color: white; }
.circle-status.half-day { border: 4px solid #ef4444; background: transparent; }

.employee-tabs .nav-link.active {
    border-bottom: 3px solid #8F80C8 !important;
    background: none !important;
}

/* Driver Overview Animations */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(40px, -40px) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(40px, -40px) scale(1.1);
    }
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Route Timeline */
.route-timeline {
    position: relative;
    padding-left: 2rem;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0d6efd, #10b981);
}


/* Employee Extra Details Cards */
.employee_extra_details .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.employee_extra_details .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.employee_extra_details .card h3 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.employee_extra_details .card small {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.employee_extra_details .progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.employee_extra_details .badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* STYLINGS FOR PROFILE VIEW */

/* CONTAINER FOR PERMISSION PERM_GROUP PERMISSION-GROUP STYLES */
/* Container for each module's permissions */
.permission-group {
    background-color: #f1f7ff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 100%;
}

/* Header styling with light blue tint */
.perm-group-header {
    background-color: #f1f7ff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.perm-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.perm-label-muted {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: none;
    font-weight: 400;
    margin-left: 4px;
}

/* The 2-column checkbox grid */
.perm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 16px;
    gap: 12px 24px;
}

/* CONTAINER FOR PERMISSION PERM_GROUP PERMISSION-GROUP STYLES */
/* Container for each module's permissions */

/* Floating Save Bar Styling */
.save-bar-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* Centers it horizontally */
    width: 90%;
    max-width: 800px;
    background-color: #1e1f22;
    /* Dark theme to pop against light UI */
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    /* Above everything else */
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 20px;
        opacity: 1;
    }
}

.btn-reset {
    color: #dbdee1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 15px;
    background: transparent;
    border: none;
}

.btn-reset:hover {
    color: white;
}

.btn-save-confirm {
    background-color: #248046;
    /* Discord-style green */
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-save-confirm:hover {
    background-color: #1a6334;
}

/* Floating Save Bar Styling */
