/* SharpFleet Main Stylesheet - Modern Hero Theme */

/* Variables */

:root {
    --primary-color: #2CBFAE;
    /* RGB form of --primary-color, used for rgba() effects like glows */
    --primary-rgb: 44, 191, 174;
    --primary-hover: #25a99a;
    --secondary-color: #0A2A4D;
    --secondary-hover: #1a3a5d;
    --accent-color: #FF6B6B;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #6b7280;
    --bg-light: #F7F9FB;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 0 20px rgba(10, 42, 77, 0.10);
    --shadow-lg: 0 0 28px rgba(10, 42, 77, 0.16);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #0A2A4D 0%, #104976 40%, #2CBFAE 100%);
    background-attachment: fixed;
    background-color: var(--bg-light);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

 .fleet-banner {
            margin: 40px auto 20px;
            max-width: 1100px;
            text-align: center;
        }

    .fleet-banner-label {
            font-size: 14px;
            color: rgba(255,255,255,0.7);
            margin-bottom: 14px;
        }

    .fleet-banner-track {
            overflow: hidden;
            position: relative;
        }

    .fleet-banner-row {
            display: flex;
            align-items: flex-end;
            gap: 36px;
            align-items: center;
            width: max-content;
            animation: fleet-scroll 55s linear infinite;
        }

@media (max-width: 768px) {
    .fleet-banner-row {
        animation-duration: 25s; /* faster on mobile */
    }

    .fleet-banner-label {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 34ch;
        margin-left: auto;
        margin-right: auto;
    }
}

    .fleet-banner-row img {
            height: 100px;
            display: block;
            flex-shrink: 0;
            filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
        }

    @keyframes fleet-scroll {
            from {
                transform: translateX(-50%);
            }
            to {
                transform: translateX(0%);
            }
        }    

/* Page headers sit on the global gradient */
.page-title {
    color: #FFFFFF !important;
}

.page-description {
    color: #FFFFFF !important;
}

/* Utility helpers (some Blade views use Bootstrap-like text classes) */
.text-white { color: var(--text-light) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.75) !important; }

/* If page-title/page-description are used inside cards, keep them readable */
.card .page-title { color: var(--text-dark) !important; }
.card .page-description { color: var(--text-muted) !important; }

/* Ensure no inheritance from parent styles */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, li, form, input, button, textarea, select {
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

/* Layout */
.sharpfleet-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navigation */
.sharpfleet-header {
    background-image: url('/images/sharpfleet/setup.png');
    background-size: cover;
    background-position: 42% 58%;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 16px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

@media (min-width: 1024px) {
    .sharpfleet-header {
        padding: 40px 0;
    }
}

.sharpfleet-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 42, 77, 0.75);
    pointer-events: none;
    z-index: 0;
}

.sharpfleet-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    background: transparent;
}

.sharpfleet-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light);
}

.sharpfleet-logo img {
    height: 100px;
    width: auto;
}

.sharpfleet-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

/* Grouped admin nav dropdowns */
.sharpfleet-nav-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sharpfleet-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/*
   Hover bridge: keeps the dropdown open while the pointer moves
   from the toggle down into the menu (prevents flicker/collapse).
*/
.sharpfleet-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.sharpfleet-nav-dropdown-toggle {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
}

.sharpfleet-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 1100;
}

.sharpfleet-nav-dropdown:hover .sharpfleet-nav-dropdown-menu,
.sharpfleet-nav-dropdown:focus-within .sharpfleet-nav-dropdown-menu {
    display: block;
}

.sharpfleet-nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    margin-top: 6px;
    white-space: nowrap;
}

.sharpfleet-nav-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.sharpfleet-nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

.sharpfleet-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Locked active section state (e.g., keep "Operations" highlighted on Reminders pages) */
.sharpfleet-nav-link.is-active,
.sharpfleet-nav-dropdown-toggle.is-active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.sharpfleet-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sharpfleet-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
}

/* Mobile Menu Button */
.sharpfleet-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.sharpfleet-mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.sharpfleet-mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sharpfleet-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.sharpfleet-mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
.sharpfleet-main {
    min-height: calc(100vh - 80px);
    padding: 32px 0;
}

/* Hero Sections - Added Glow*/
.hero {
    background: rgba(10, 42, 77, 0.55);
    color: var(--text-light);
    padding: 35px 0;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin: 0 auto 40px auto;
    max-width: 960px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 8px 22px rgba(10, 42, 77, 0.12),
        inset 0 -1px 0 rgba(var(--primary-rgb), 0.22),
        inset 1px 0 0 rgba(var(--primary-rgb), 0.18),
        inset -1px 0 0 rgba(var(--primary-rgb), 0.18),
        -9px 0 30px rgba(var(--primary-rgb), 0.3),
        12px 0 30px rgba(var(--primary-rgb), 0.8),
        0 14px 34px rgba(var(--primary-rgb), 0.3);
}

.hero .text-muted {
    color: rgba(255, 255, 255, 0.78);
}

.hero a {
    color: inherit;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  height: 3px; width: 0;
    background-color: var(--primary-color);
  animation: underline 1.5s ease-out 1s forwards;
}
@keyframes underline { to { width: 100%; } }

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Home hero spacing tweaks */
.hero p.hero-intro {
    margin-bottom: 20px;
}

.hero .hero-bam {
    margin: 0 auto 24px auto;
    max-width: 600px;
}

.hero .hero-bam p {
    margin-bottom: 10px;
    max-width: none;
}

.hero .hero-bam p:last-child {
    margin-bottom: 0;
}

.hero p.hero-price {
    margin-top: 8px;
    margin-bottom: 24px;
}

.hero p.small {
    font-size: 12px;
    margin-bottom: 0;
    max-width: none;
    opacity: 0.85;
}

.hero .btn {
    display: inline-block;
    background: var(--text-light);
    color: var(--secondary-color);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cards and Sections */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition);
    color: var(--text-dark);
}

/* Setup Wizard card (adds an image cover that works with existing cards) */
.sf-setup-backdrop {
    position: fixed;
    inset: 0;
    /* Must sit above the sticky header/nav (z-index: 1000) so it blurs it too. */
    z-index: 1500;
    pointer-events: none;
    /* Blur whatever is behind (gradient + any page chrome). */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    /* Soft dark tint so the foreground card pops. */
    background: rgba(10, 42, 77, 0.20);
}

.sf-setup-layer {
    position: relative;
    /* Foreground content above the blurred backdrop. */
    z-index: 1600;
    /* Keep the wizard card consistently centered and visible near the top. */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px 12px 28px;
}

/* Make all setup wizard pages use the same centered width */
.sf-setup-layer > .container {
    width: 100%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.sf-setup-layer .page-header {
    margin-top: 0;
    margin-bottom: 14px;
}

.sf-setup-card {
    padding: 0;
    overflow: hidden;
    /* Very light teal glow on left/right/bottom (keeps top clean under the cover image) */
    border-left: 1px solid rgba(var(--primary-rgb), 0.30);
    border-right: 1px solid rgba(var(--primary-rgb), 0.30);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.34);
    box-shadow:
        0 8px 22px rgba(10, 42, 77, 0.12),
        inset 0 -1px 0 rgba(var(--primary-rgb), 0.22),
        inset 1px 0 0 rgba(var(--primary-rgb), 0.18),
        inset -1px 0 0 rgba(var(--primary-rgb), 0.18),
        -12px 0 30px rgba(var(--primary-rgb), 0.3),
        12px 0 30px rgba(var(--primary-rgb), 0.8),
        0 14px 34px rgba(var(--primary-rgb), 0.3);
}

.sf-setup-card__cover img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    object-position: 44% 56%;
}

.sf-setup-card > .card-header {
    margin-bottom: 0;
    padding: 18px 28px 12px;
    border-bottom: 1px solid var(--border-color);
}

.sf-setup-card > .card-body {
    padding: 18px 28px 22px;
}


.card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* Collapsible cards (used to hide optional sections on mobile, e.g., incident reporting) */
details.card > summary.card-header {
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
}

details.card > summary.card-header::-webkit-details-marker {
    display: none;
}

details.card[open] > summary.card-header {
    margin-bottom: 24px;
}

details.card:not([open]) .incident-toggle-hint-open {
    display: none;
}

details.card[open] .incident-toggle-hint-closed {
    display: none;
}

/* Trip Info */
.trip-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: var(--text-light);
    color: var(--secondary-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-white);
}

/* iOS/Safari: datetime-local inputs can render wider than their container */
.sharpfleet-trip-datetime {
    max-width: 100%;
    max-width: 420px;
}

@media (max-width: 430px) {
    .sharpfleet-trip-datetime {
        width: 100%;
        max-width: 320px;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 191, 174, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #2CBFAE;
}

.btn-secondary:hover {
    background: #0A2A4D;
    color: var(--text-light);
    border: 1px solid #2CBFAE;
}

.btn-danger {
    background: #dc3545;
    color: var(--text-light);
}

.btn-danger:hover {
    background: #c82333;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary-color);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Stats Cards */
.stats-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    color: var(--text-dark);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stats-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stats-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: rgba(255, 107, 107, 0.12);
    color: var(--accent-color);
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.alert-yellow {
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-orange {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fdba74;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-error { color: #991b1b; }
.pre-wrap { white-space: pre-wrap; }

.fw-bold { font-weight: 700; }
.fst-italic { font-style: italic; }
.small { font-size: 12px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.d-inline { display: inline; }
.d-none { display: none; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.w-100 { width: 100%; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-400 { max-width: 400px; }
.max-w-420 { max-width: 420px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }

/* Alias used by some SharpFleet views */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Info tiles */
.info-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
}

.info-label {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.info-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.btn-full { width: 100%; }

.btn-sm {
    padding: 8px 12px;
    font-size: 14px;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-group-sm {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-header {
    margin-bottom: 24px;
}

.flex-between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 6px;
}

.page-description {
    color: #FFFFFF !important;
    margin: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.hint-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-content {
    padding: 30px;
}

/* Registration success / info blocks */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.info-box ul {
    margin: 10px 0 0 20px;
}

.info-box li {
    margin-bottom: 5px;
}

/* Business type selection cards */
.business-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.business-option {
    position: relative;
}

.business-card {
    display: block;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.business-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(44, 191, 174, 0.1);
}

.business-option input[type="radio"]:checked + .business-card {
    border-color: var(--primary-color);
    background: rgba(44, 191, 174, 0.05);
}

.business-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.business-card h4 {
    margin: 10px 0;
    color: var(--text-dark);
}

.business-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Radios */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* Safety checks editor rows */
.safety-item-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.safety-item-row .form-control {
    flex: 1;
}

/* Disabled field styling */
.form-control:disabled {
    background: var(--bg-light);
    opacity: 0.9;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .sharpfleet-container {
        padding: 0 16px;
    }

    .sharpfleet-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1200;
    }

    .sharpfleet-nav-links.active {
        display: flex;
    }

    .sharpfleet-nav-link {
        padding: 12px 24px;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .sharpfleet-nav-primary {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .sharpfleet-nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .sharpfleet-nav-dropdown::after {
        display: none;
    }

    /* In the mobile hamburger, show dropdown sections expanded */
    .sharpfleet-nav-dropdown-menu {
        display: block;
        position: static;
        top: 100%;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .sharpfleet-nav-dropdown-item {
        padding: 12px 24px;
        width: 100%;
    }

    .sharpfleet-user-info {
        flex-direction: column;
        gap: 8px;
        margin: 16px 0 0 0;
        padding: 16px 24px 0 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: none;
    }

    .sharpfleet-mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        margin-bottom: 16px;
        padding: 20px;
    }

    .page-title {
        font-size: 24px;
        color: #FFFFFF !important;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .btn-group {
        flex-direction: column;
        gap: 8px;
    }

    .btn-group .btn {
        width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .table th,
    .table td {
        padding: 8px 4px;
        font-size: 14px;
    }

    /* Mobile form improvements */
    .form-control,
    .btn {
        min-height: 44px; /* iOS touch target minimum */
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .radio-group {
        gap: 12px;
    }

    .radio-label {
        padding: 8px 0;
    }

    .business-type-options {
        grid-template-columns: 1fr;
    }

    .safety-item-row {
        flex-direction: column;
    }

    /* Better mobile spacing */
    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 16px;
    }

    .sf-setup-card__cover img {
        height: 96px;
    }

    .sf-setup-card > .card-header {
        padding: 16px;
    }

    .sf-setup-card > .card-body {
        padding: 16px;
    }
}

/* Footer */
.sharpfleet-footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.sharpfleet-footer p {
    margin: 0;
    font-size: 14px;
}

/* Footer SharpLync highlight */
.sharpfleet-footer .highlight {
    color: #2CBFAE;
    position: relative;
    display: inline-block;
}

/* Underline animation */
.sharpfleet-footer .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background-color: #2CBFAE;
    animation: underline 1.2s ease-out 0.5s forwards;
}
@keyframes underline {
    to {
        width: 100%;
    }
}

/* Registration/Auth Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    color: var(--text-dark);
}

.auth-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a3a5d 100%);
    color: var(--text-light);
    padding: 40px 30px;
    text-align: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-form {
    padding: 30px;
}

/* SharpFleet login – match SharpLync login card style */
.sharpfleet-login .auth-card {
    background: rgba(10, 42, 77, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-light);
}

/* SharpFleet registration – match SharpLync registration card style */
.sharpfleet-register .auth-card {
    background: rgba(10, 42, 77, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-light);
    max-width: 520px;
}

.sharpfleet-register .auth-header {
    background: transparent;
    padding: 32px 30px 14px;
}

.sharpfleet-register .auth-icon {
    text-align: center;
    margin-bottom: 12px;
}

.sharpfleet-register .auth-icon img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(44, 191, 174, 0.3));
}

.sharpfleet-register .auth-title {
    color: var(--text-light);
    margin-bottom: 6px;
}

.sharpfleet-register .auth-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.sharpfleet-register .auth-form {
    padding: 22px 30px 28px;
}

.sharpfleet-register .form-label {
    color: var(--text-light);
}

.sharpfleet-register .form-control {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sharpfleet-register .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.sharpfleet-register .form-hint {
    color: rgba(255, 255, 255, 0.72);
}

.sharpfleet-register .btn.btn-primary {
    padding: 14px 16px;
    border-radius: 10px;
}

.sharpfleet-register .auth-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.sharpfleet-register .auth-footer a {
    color: var(--primary-color);
}

.sharpfleet-register .alert.alert-error {
    background: rgba(255, 227, 227, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--secondary-color);
}

.sharpfleet-register .alert.alert-error li {
    color: var(--secondary-color);
}

.sharpfleet-login .auth-header {
    background: transparent;
    padding: 32px 30px 12px;
}

.sharpfleet-login .auth-icon {
    text-align: center;
    margin-bottom: 12px;
}

.sharpfleet-login .auth-icon img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(44, 191, 174, 0.3));
}

.sharpfleet-login .auth-title {
    color: var(--text-light);
    margin-bottom: 0;
}

.sharpfleet-login .auth-form {
    padding: 22px 30px 28px;
}

.sharpfleet-login .form-label {
    color: var(--text-light);
}

.sharpfleet-login .form-control {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sharpfleet-login .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.sharpfleet-login .remember-row {
    margin-top: -6px;
    margin-bottom: 18px;
}

.sharpfleet-login .checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.sharpfleet-login .btn.btn-primary {
    padding: 14px 16px;
    border-radius: 10px;
}

.sharpfleet-login .auth-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.sharpfleet-login .auth-footer a {
    color: var(--primary-color);
}

.sharpfleet-login .alert.alert-error {
    background: rgba(255, 227, 227, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--secondary-color);
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.sf-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-time-hh,
.sf-time-mm {
    width: 72px;
    text-align: center;
    padding: 6px 8px;
}

.sf-time-sep {
    font-weight: 700;
    color: var(--sl-navy);
    opacity: .6;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
}

.align-end {
    align-items: end;
}

.sf-reminder-inline {
    padding-bottom: 6px;
}



.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Billing Plans */
.billing-plans {
    display: grid;
    gap: 16px;
}

.plan-option {
    position: relative;
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-card {
    display: block;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.plan-option input[type="radio"]:checked + .plan-card {
    border-color: var(--primary-color);
    background: rgba(44, 191, 174, 0.05);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.plan-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
}

.plan-price {
    text-align: right;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 14px;
    color: var(--text-muted);
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.plan-features li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: bold;
}

.auth-footer {
    text-align: center;
    padding: 20px 30px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Mobile adjustments for auth */
@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }

    .auth-header {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .billing-plans {
        gap: 12px;
    }

    .plan-card {
        padding: 16px;
    }

    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .plan-price {
        text-align: left;
    }
}

/* Shared modal close (top-right X) */
.sf-modal-close{
    position:absolute;
    top: -30px;
    right:-30px;
      /* top:12px; */
      /* right:12px; */
    width:38px;
    height:38px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border:0;
    color:var(--secondary-color,#0A2A4D);
    font-size:28px;
    line-height:1;
    cursor:pointer;
}
.sf-modal-close:hover{
    border-radius:50%;
    background:rgba(var(--primary-rgb, 44, 191, 174), .18);
}
.sf-modal-close:focus{
    outline:2px solid var(--primary-color,#2CBFAE);
    outline-offset:2px;
}

/* Ensure SharpFleet confirm/notice modals have a positioning context for the close button */
#sfConfirmModal .card-body,
#sfNoticeModal .card-body{
    position:relative;
}