/* =====================================================
   ROOT VARIABLES (Brand Colors)
===================================================== */
:root {
    --brand-dark: #00416A;
    --brand-blue: #2C6D9D;
    --brand-electric: #007bff;
    --brand-light: #00c6ff;
}

/* =====================================================
   GLOBAL
===================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width:768px) and (max-width:1024px) {
    html {
        font-size: 9px;
    }
}

body {
    padding-bottom: 60px;
    position: relative;
    background-color: #f0f2f5;
}

/* =====================================================
   LAYOUT
===================================================== */

.main {
    margin-top: 65px;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5;
    color: black;
    text-align: center;
    padding: 10px 0;
}


/* =====================================================
   LOGIN
===================================================== */

.login-card {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
    overflow: hidden;
}

.image-container {
    background: url('../Images/whitelogin.jpg') no-repeat center center;
    background-size: cover;
    min-height: 500px;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    background: linear-gradient(135deg,var(--brand-dark),var(--brand-blue)) !important;
    padding: 5px 0;
    border-bottom: 3px solid var(--brand-blue);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.navbar-brand {
    font-family: Cambria, Cochin, Georgia, Times, serif;
    font-size: 24px;
    font-weight: bolder;
    color: #fff;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    opacity: .8;
    padding: 8px 15px !important;
    transition: all .3s ease;
}

    .nav-link:hover {
        opacity: 1;
        color: var(--brand-light) !important;
        transform: translateY(-1px);
    }

    .nav-link.active {
        opacity: 1;
        background: rgba(255,255,255,.1);
        border-radius: 8px;
    }

/* =====================================================
   NAV TABS
===================================================== */

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

    .nav-tabs .nav-link {
        color: var(--brand-dark) !important;
        font-weight: 600;
    }

        .nav-tabs .nav-link:hover {
            color: var(--brand-blue) !important;
            background: rgba(44,109,157,.08);
            border-radius: 8px;
        }

        .nav-tabs .nav-link.active {
            color: var(--brand-blue) !important;
            font-weight: 700;
            border: none !important;
            border-bottom: 3px solid var(--brand-blue) !important;
            background: transparent !important;
        }

/* =====================================================
   DROPDOWN
===================================================== */

.dropdown-menu {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    padding: 12px;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0,65,106,.15);
    margin-top: 15px !important;
}

.dropdown-item {
    color: var(--brand-dark) !important;
    font-weight: 600;
    border-radius: 12px;
    margin: 4px 8px;
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid transparent;
    transition: all .3s ease;
}

    .dropdown-item:hover,
    .dropdown-item.active {
        background: rgba(44,109,157,.05) !important;
        color: var(--brand-blue) !important;
        padding-left: 28px;
        border: 1px solid rgba(44,109,157,.1);
    }

    .dropdown-item::before {
        content: "";
        position: absolute;
        left: 8px;
        width: 0;
        height: 20px;
        background: linear-gradient(var(--brand-electric),var(--brand-light));
        border-radius: 10px;
        transition: .3s;
        opacity: 0;
    }

    .dropdown-item:hover::before,
    .dropdown-item.active::before {
        width: 5px;
        opacity: 1;
    }

    /* ICONS */

    .dropdown-item i {
        width: 35px;
        height: 35px;
        background: #f8f9fa;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        color: var(--brand-dark);
    }

    .dropdown-item:hover i,
    .dropdown-item.active i {
        background: linear-gradient(135deg,var(--brand-dark),var(--brand-blue));
        color: #fff;
        box-shadow: 0 4px 10px rgba(44,109,157,.3);
    }

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
    background: linear-gradient(135deg,var(--brand-blue),var(--brand-dark)) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all .3s ease;
    text-transform: uppercase;
    font-size: .85rem;
}

    .btn-primary:hover {
        background: linear-gradient(135deg,#3a8cc9,var(--brand-blue)) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(44,109,157,.35);
    }

.btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #4a5568 !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 24px;
}

/* =====================================================
   CARDS
===================================================== */

.CardCustom {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,65,106,.08);
}

.CardHeaderCustom {
    background: linear-gradient(135deg,var(--brand-dark),var(--brand-blue)) !important;
    color: #fff !important;
    padding: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.formtitle {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}
/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-card {
    border: none;
    border-radius: .75rem;
    color: #fff;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

    .dashboard-card .icon {
        font-size: 2rem;
        opacity: .2;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

/* DASHBOARD COLORS */

.bg-gradient-blue {
    background: linear-gradient(135deg,#007bff,#00c6ff);
}

.bg-gradient-orange {
    background: linear-gradient(135deg,#fd7e14,#ffb347);
}

.bg-gradient-green {
    background: linear-gradient(135deg,#28a745,#a8e063);
}

.bg-gradient-purple {
    background: linear-gradient(135deg,#6f42c1,#b19cd9);
}

.page-container {
    animation: fadeInPage 0.4s ease-in-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-custom {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

    .table-custom thead {
        background: linear-gradient(135deg,#00416A,#2C6D9D);
        color: white;
    }

    .table-custom th {
        font-weight: 600;
        font-size: 14px;
        border: none;
    }

    .table-custom td {
        vertical-align: middle;
    }

    .table-custom tbody tr:hover {
        background-color: #f3f8fc;
    }

/* Chrome / Edge */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
    background: #2C6D9D;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #00416A;
    }


.dashboard-card {
    transition: all 0.3s ease;
}

    .dashboard-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

/* 4. Priority Selectors (Refined) */
/* =====================================================
   Common styling for each page
===================================================== */
.lead-selector-group {
    display: flex;
    gap: 12px;
}

.lead-card {
    flex: 1;
    border-radius: 12px;
    padding: 12px;
    border: 2px solid #f8f9fc;
    background: #f8f9fc;
    text-align: center;
    transition: 0.3s;
}

#leadTypeHot:checked + .lead-card {
    background: #fff5f5;
    border-color: #ff4d4d;
    color: #ff4d4d;
}

#leadTypeCold:checked + .lead-card {
    background: #f0f7ff;
    border-color: #007bff;
    color: #007bff;
}

#leadTypeOther:checked + .lead-card {
    background: #f6fff9;
    border-color: #28a745;
    color: #28a745;
}
.pdi-icon {
    width: 30px;
    height: 30px;
    background: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    color: #adb5bd;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.pdi-option-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.5rem 1rem; /* Reduced vertical padding */
    display: flex;
    align-items: center;
    box-sizing: border-box; /* Critical: Includes padding in height */
    min-height: 50px; /* Changed from fixed height to min-height */
    height: auto; /* Let it adjust to content */

    flex: 1;
    width: 100%; /* Changed from 60px which was way too small */
    white-space: nowrap; /* Prevents the text from ever wrapping */
}
    /* Hide the actual inputs */
    .pdi-option-card input[type="radio"],
    .pdi-option-card input[type="checkbox"] {
        display: none;
    }

    /* Checked State */
    .pdi-option-card:has(input:checked) {
        border-color: #20c997;
        background-color: #f0fdf9;
    }

        .pdi-option-card:has(input:checked) .pdi-icon {
            background-color: #20c997;
            color: white;
        }

    /* Add this to prevent the internal vertical stacking from pushing the height */
    .pdi-option-card .flex-grow-1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.2;
        overflow: hidden; /* Keeps things neat */
    }

    .pdi-option-card h6 {
        font-size: 0.9rem; /* Slightly smaller for enterprise look */
        white-space: nowrap;
    }

    .pdi-option-card small {
        font-size: 0.75rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
    }
.accessory-manifest {
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #dee2e6;
}

/* Global Loader Styles */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    z-index: 9999; /* Ensure it stays on top of everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    border: 6px solid #f3f3f3; /* Light grey */
    border-top: 6px solid #007bff; /* Blue (match your brand color) */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #333;
    font-family: sans-serif;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Timeline Styling */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
    left: 10px;
}

.timeline-item {
    position: relative;
    padding-left: 35px;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background: #28a745;
    border-color: #28a745;
}

.timeline-item.pending .timeline-marker {
    background: #fff;
    border-color: #ffc107;
}

