
:root{
    --bg: #ffffff;
    --primary: #007d7c;
    --accent: #f0c24a;
    --teal: #00796b;
    --teal-dark: #00695c;
    --accent-yellow: #f9d24a;
    --card-radius: 14px;
    --chip-border: #222;
    --chip-selected-bg: #fff6f6;
    --chip-selected-border: #d94e45;
    --success: #28a745;
    --danger: #d9534f;
}

body {
    padding: 0 3px 3px 3px;
    font-family: "Segoe UI", sans-serif;
    padding-top: 70px; /* adjust based on navbar height */
    overflow-x: hidden;
}

.bg-primary{
    background-color: var(--primary) !important;
}

.form-control {
    border-radius: 0.6rem;
    border: 1px solid;
}

.container {
    padding: 0 3px 3px 3px;
    margin: 0;
    max-width: 100%;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    /*padding: 12px;*/
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.pro-card {
    margin: 10px;
    border-radius: 12px;
    align-items: stretch;
    box-shadow: 0 1px 10px var(--primary);
}

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

.card-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-header i {
    color: var(--primary);
}


.bas-card:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 10px maroon;
}

.card img {
    width: 100px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
}
.card-info {
    flex: 1;
}
.card-info h3 {
    margin: 0;
    font-size: 16px;
}
.card-info p {
    margin: 0 0;
    color: #555;
    font-size: 12px;
}

.category-icons .card {
    border: 1px solid #ddd;
    padding: 0px;
    cursor: pointer;
    transition: 0.3s;
}

.status {
    color: green;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}
.favorite {
    font-size: 20px;
    color: red;
}
.favorite.empty {
    color: #ccc;
}

.menu-logo {
    height: 50px;
}
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
}
.quick-actions .card {
    cursor: pointer;
    transition: transform 0.2s;
}

.section-title {
    background: #f9c74f;
    padding: 8px;
    font-weight: bold;
    margin: 20px 0 10px;
    text-align: center;
    border-radius: 6px;
    color: var(--primary);
}
.category-icons .card {
    text-align: center;
    padding: 15px;
    min-height: 120px;
}
.category-icons img {
    max-width: 40px;
    margin-bottom: 10px;
}
.quick-actions i {
    font-size: 28px;
    color: #029294;
    margin-bottom: 8px;
}

.suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    width: 95%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}
.suggestions div {
    padding: 8px;
    cursor: pointer;
}
.suggestions div:hover {
    background: #f0f0f0;
}

#map {
    height: 400px;
    width: 100%;
}
#suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    width: 95%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}
#suggestions div {
    padding: 8px;
    cursor: pointer;
}
#suggestions div:hover {
    background: #f0f0f0;
}

/* Container for the address */
.address-box {
    width: 250px; /* Adjust the width to make the box small */
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    font-family: sans-serif;
    background-color: #f9f9f9;
}

/* Style for the address text */
.address-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limits text to 1 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* Adds "..." to truncated text */
    line-height: 1.2em; /* Adjust line height for proper spacing */
    max-height: 2.4em; /* (line-height * number of lines) */
    margin: 0;
}

.scroll-box {
    display: flex;
    flex-direction: column;
    animation: scroll-up 100s linear infinite;
}
.scroll-box:hover {
    animation-play-state: paused; /* Pause on hover */
}
@keyframes scroll-up {
    0%   {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.swiper {
    width: 100%;
    padding-bottom: 30px;
}
.swiper-slide .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s;
}

.swiper-button-next, .swiper-button-prev {
    color: #000;
}
.navbar-toggler:focus{
    box-shadow: none;
}

nav.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 0 0 0;
}

.modal {
    z-index: 99999;
}

#mobileMenu{
    z-index: 9999;
}
.offcanvas-body {
    overflow-y: auto;
}

/* Auth Card */
.auth-card {
    max-width: 420px;
    margin: 50px 20px 50px 20px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 18px var(--primary);
}
.auth-card h3 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #029294;
}
.form-control {
    border-radius: 10px;
}
.btn-primary {
    border-radius: 10px;
    font-weight: 600;
}
.toggle-link {
    text-align: center;
    margin-top: 15px;
}
.toggle-link a {
    color: #029294;
    font-weight: 600;
    text-decoration: none;
}
.toggle-link a:hover {
    text-decoration: underline;
}

/* OTP Section */
.otp-input {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 10px;
}

/* Responsive typography */

@media (max-width: 350px) {
    .category-icons p {
        font-size: 0.55rem !important;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 0.9rem;
    }
    .swiper-slide .card p {
        font-size: 0.75rem;
    }

    .category-icons{
        margin: 0;
        padding: 2px;
    }
    .category-icons p{
        margin: 0;
        font-size: 0.75rem;
        font-weight: 600;
        font-family: ui-monospace;
        line-height: normal;
        max-height: 30px;
        overflow: hidden;
    }

    .category-icons img {
        max-width: 40px;
        max-height: 40px;
        margin-bottom: 0;
    }

    .category-icons .card {
        text-align: center;
        padding: 5px 0 0 0;
        min-height: 90px;
        gap: 5px;
    }

}

@media (min-width: 768px) {
    .swiper-slide .card {
        padding: 5px;
    }

    .category-icons img {
        max-width: 60px;
        max-height: 60px;
        margin-bottom: 0;
    }
    .profile-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .section-title {
        font-size: 1.8rem;
    }

    .category-icons img {
        max-width: 60px;
        max-height: 60px;
        margin-bottom: 0;
    }
}

/* Sidebar */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 56px; /* below top navbar */
    left: 0;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding-top: 20px;
    z-index: 999;
}
.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    margin: 4px 10px;
    transition: 0.3s;
}
.sidebar a i {
    margin-right: 10px;
}
.sidebar a:hover,
.sidebar a.active {
    background: #029294;
    color: #fff;
}

/* Sidebar (Desktop) */
.sidebar-desktop {
    position: fixed;
    left: 0;
    /*width: 100vw;*/
    height: 100vh;
    background: var(--primary);
    color: #fff;
    display: none;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
}
.sidebar-desktop .brand {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.sidebar-desktop .brand img {
    width: 60px;
    border-radius: 10px;
}
.sidebar-desktop a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 15px;
}
.sidebar-desktop a:hover,
.sidebar-desktop a.active {
    background: rgba(255,255,255,0.15);
}

/* Main Content */
.main-content {
    padding: 20px;
}

/* Profile */
.profile-card {
    background: linear-gradient(90deg, #0f6768, #bca32f);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.profile-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 10px;
}

/* Stats */
.stats-card {
    background: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.stats-card:hover {
    transform: translateY(-4px);
}
.stats-card i {
    font-size: 26px;
    color: #029294;
    margin-bottom: 10px;
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--primary);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 2000;
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}
.bottom-nav a i {
    display: block;
    font-size: 20px;
}
.bottom-nav a.active {
    color: #029294;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .bottom-nav {
        display: flex;
        padding-bottom: 20px;
    }
}

#loading {
    text-align: center;
    padding: 15px;
    display: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #029294;
}
.text-red {
    color: red;
}

.lead-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 10px var(--primary);
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lead-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 10px maroon;
}

.lead-card h5 {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #029294;
}

.lead-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

#leadList {
    padding: 10px 10px 100px 10px;
}

/* Grid Layout for Desktop */
@media (min-width: 992px) {
    #leadList {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .sidebar-desktop {
        display: flex;
    }
}


/* Profile header */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 60px;
    color: var(--primary);
}

.avatar .add-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #e5ad22;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.profile-info h2 {
    margin: 0;
    font-size: 22px;
}

.profile-info .id {
    font-size: 16px;
    opacity: 0.8;
}

/* Card */

.edit-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #007d7c;
    font-size: 18px;
}

.info-row {
    margin-bottom: 6px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.tag {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
}

/* Button */
.next-btn {
    width: 100%;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

p.lead {
    margin: 0 0 18px;
    color:#444;
    font-size:14px;
}

/* Group title */
.group {
    margin-bottom: 18px;
}
.group h2 {
    font-size:18px;
    margin: 8px 0 12px;
    color:#111;
    font-weight:700;
}

/* chips grid */
.chips {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

/* hidden real input */
.chips input[type="checkbox"]{
    display:none;
}

/* label chip styling */
.chip {
    display:inline-flex;
    align-items:center;
    padding:8px 14px;
    border-radius:8px;
    border:1px solid var(--primary);
    background:transparent;
    cursor:pointer;
    user-select:none;
    font-size:14px;
    color:#111;
    transition: all .15s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.chip:hover {
    transform: translateY(-2px);
}

/* checked state (using adjacent selector) */
.chip.selected {
    background: var(--chip-selected-bg);
    border-color: var(--chip-selected-border);
    color: var(--chip-selected-border);
    font-weight:600;
    box-shadow: 0 6px 12px rgba(217,78,69,0.06);
}

/* small separator */
.divider {
    height:1px;
    background:#e6e6e6;
    margin:18px 0;
    border-radius:2px;
}

/* Submit button */
.actions {
    margin-top: 18px;
    display:flex;
    justify-content:center;
}
/* error */
.error {
    margin-top:10px;
    color: var(--danger);
    font-weight:600;
    text-align:center;
    display:none;
}

/* responsive tweaks */
@media (max-width:420px){
    .chip{
        padding:5px;
        font-size:12px;
    }
}

/* subtle focus/keyboard outline */
.chip:focus {
    outline: 3px solid rgba(0,125,124,0.12);
    outline-offset: 2px;
}



.desktop-image img {
    height : auto !important;
}
