/* ===== Sidebar ===== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.table-responsive,
.table-box,
.main-content {
    overflow: visible !important;
}

.custom-menu{
    display:none;
    position:absolute;
    right:0;
    top:35px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:10px;
    width:200px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    z-index:99999;
}


.blur-row {
    filter: blur(5px);
    transition: 0.3s;
}
.blur-row:hover {
    filter: blur(1.5px);
}

/* SIDEBAR MAIN */
.sidebar{
position:fixed;
left:0;
top:0;
width:250px;
height:100vh;

/* 🔥 PURPLE GRADIENT */
background: linear-gradient(180deg,#2a0845,#6441a5);

color:#fff;
padding:15px 10px;
overflow-y:auto;

/* glow effect */
box-shadow: 5px 0 25px rgba(100,65,165,0.5);
}

/* LOGO */
.logo{
padding:18px;
font-size:22px;
font-weight:bold;
text-align:center;

background: rgba(255,255,255,0.08);
border-radius:12px;
margin-bottom:20px;
letter-spacing:1px;
}

/* MENU */
.menu{
list-style:none;
padding:0;
margin:0;
}

.menu li{
margin:6px 5px;
}

/* LINKS */
.menu li a{
display:flex;
align-items:center;
gap:12px;
font-weight:700;
padding:12px 14px;
color:#e0d4ff;
text-decoration:none;
font-size:14px;

border-radius:12px;
transition:all 0.3s ease;
}

/* ICON */
.menu-icon{
width:30px;
height:30px;
object-fit:contain;
filter:brightness(1.2);
}

/* HOVER */
.menu li a:hover{
background: rgba(255,255,255,0.15);
color:#fff;
transform:translateX(6px);

/* neon glow */
box-shadow:0 4px 15px rgba(255,255,255,0.2);
}

/* ACTIVE */
.menu li.active a{
background: linear-gradient(90deg,#ff6ec4,#7873f5);
color:white;
font-weight:600;

box-shadow:0 4px 20px rgba(255,110,196,0.5);
}

/* DROPDOWN */
.menu li a[data-bs-toggle="collapse"]{
justify-content:space-between;
}

/* SUBMENU */
.submenu{
list-style:none;
padding-left:35px;
margin-top:5px;
}

/* SUB LINKS */
.submenu li a{
padding:8px 10px;
font-size:13px;
color:#cbb7ff;
border-radius:6px;
}

.submenu li a:hover{
background: rgba(255,255,255,0.1);
color:#fff;
}

/* SCROLLBAR */
.sidebar::-webkit-scrollbar{
width:6px;
}
.sidebar::-webkit-scrollbar-thumb{
background:#a78bfa;
border-radius:10px;
}

/* MAIN CONTENT */
.main-content{
margin-left:250px;
padding:0px 55px 990px;
}
/* ===== Stats Cards ===== */

.stats-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Card */

.stat-card {
    flex: 1;
    min-width: 260px;
    padding: 25px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    position: relative;
}

/* Number */

.stat-card h2 {
    font-size: 32px;
    margin: 0;
}

/* Label */

.stat-card p {
    margin: 5px 0 15px;
    font-size: 16px;
}

/* Progress bar */

.progress {
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

/* Colors */

.blue {
    background: linear-gradient(135deg, #4b2bd6, #2d6cdf);
}

.green {
    background: linear-gradient(135deg, #1ea97c, #34d399);
}

.orange {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* ===== Topbar ===== */

.topbar {
    position: fixed;
    left: 251px;     
    right: 0;
    top: 0;
    height: 65px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Search */

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 260px;
}

.search-box button {
    padding: 8px 14px;
    margin-left: 8px;
    border: 1px solid #198754;
    background: transparent;
    color: #198754;
    border-radius: 6px;
    cursor: pointer;
}

/* Admin menu */

.admin-menu {
    position: relative;
}

.admin-btn {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

/* Dropdown */

.dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 160px;
    display: none;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown a:hover {
    background: #f2f2f2;
}

.dropdown hr {
    margin: 5px 0;
}

.logout {
    color: red;
}

.main-content {
    margin-left: 240px;
    padding: 90px 30px 30px;  /* extra top space */
}


/* ===== Table ===== */

.table-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #2f6ea3;
    color: white;
    padding: 12px;
    text-align: left;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* ===== Profile Card ===== */

.profile-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Header */

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f6fe5;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Inputs */

.profile-card label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.profile-card input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Update button */

.update-btn {
    background: #ffc107;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* ===== Profile Buttons ===== */

.profile-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

/* Close */

.close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

/* Save */

.save-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
}


/* ===== Settings Card ===== */

.settings-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header */

.settings-header {
    background: #f4b400;
    color: #000;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Inputs */

.settings-card label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.settings-card input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Buttons */

.settings-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.change-btn {
    background: #f4b400;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

/* Message */

.msg {
    /* color: red; */
    font-size:18px;
    margin-bottom: 10px;
}
/* ===== MODERN DASHBOARD CARDS ===== */

.dashboard-card{
width: 85%;
height: 80%;
border-radius:18px;
padding:25px;
text-align:center;
background:linear-gradient(135deg,#6a11cb,#8e2de2);
color:white;
position:relative;
overflow:hidden;
transition:0.4s;
box-shadow:0 10px 30px rgba(106,17,203,0.3);
}

/* ICON */
.dash-icon{
    width:100%;
    height: 78%;
font-size:42px;
margin-bottom:12px;
display:block;
}

/* TEXT */
.dashboard-card h6{
font-size:18px;
font-weight:600;
margin-top:5px;
letter-spacing:0.5px;
}

/* HOVER EFFECT */
.dashboard-card:hover{
transform:translateY(-8px) scale(1.04);
box-shadow:0 20px 40px rgba(106,17,203,0.5);
}

/* GLOW LIGHT EFFECT */
.dashboard-card::before{
content:'';
position:absolute;
top:-50%;
left:-50%;
width:200%;
height:200%;
background:linear-gradient(
120deg,
transparent,
rgba(255,255,255,0.3),
transparent
);
transform:rotate(25deg);
transition:0.5s;
}

.dashboard-card:hover::before{
left:100%;
}
.search-box{
position:relative;
width:350px;
}

.search-box input{
width:100%;
padding:8px 12px;
border:1px solid #ddd;
border-radius:6px;
}

.search-result{
position:absolute;
background:white;
width:100%;
top:40px;
border-radius:6px;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
display:none;
z-index:1000;
}

.search-result a{
display:block;
padding:8px 10px;
text-decoration:none;
color:#333;
border-bottom:1px solid #eee;
}

.search-result a:hover{
background:#f5f7fb;
}

.admin-menu{
position:relative;
}

.admin-btn{
background:#4c6ef5;
color:white;
border:none;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
}

.dropdown{
position:absolute;
right:0;
top:40px;
background:white;
width:180px;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
border-radius:6px;
display:none;
}

.dropdown a{
display:block;
padding:10px;
text-decoration:none;
color:#333;
}

.dropdown a:hover{
background:#f5f7fb;
}

/* MOBILE */

@media(max-width:768px){

.topbar{
flex-direction:column;
gap:10px;
}

.search-box{
width:100%;
}

}

.menu li button {
    width: 100%;
    background: none;
    border: none;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: start; */
    /* gap: 12px; */
    padding: 12px 14px;
    color: #e0d4ff;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: start;
}
.menu li button:hover{
    background: rgba(255,255,255,0.15);
    color:#fff;
    transform:translateX(6px);
}

.submenu.collapse:not(.show){
    display:none;
}

.submenu.collapse.show{
    display:block;
}

button[aria-expanded="true"] i.fa-chevron-down{
    transform: rotate(180deg);
}

.menu-btn{
    width:100%;
    background:none;
    border:none;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 14px;
    color:#e0d4ff;
    font-size:14px;
    border-radius:12px;
    cursor:pointer;
    transition:0.3s;
}

.menu-btn:hover{
    background: rgba(255,255,255,0.15);
    color:#fff;
    transform:translateX(5px);
}

/* fix collapse */
.submenu.collapse:not(.show){
    display:none;
}

.submenu{
display:none;
padding-left:20px;
}

.submenu.show{
display:block;
}

.follow-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    background: #fff;
    border-left: 5px solid #0d6efd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* sections */
.left-section {
    width: 40%;
}

.middle-section {
    width: 30%;
}

.right-section {
    width: 30%;
    text-align: right;
}

.enquiry-name {
    font-weight: 600;
    font-size: 20px;
}

.enquiry-msg {
    font-size: 18px;
    color: red;
}

.follow-date {
    font-size: 19px;
    color: gray;
}

.next-date {
    font-size: 15px;
    color: #dc3545;
    font-weight: 600;
}
.follow-up-h3 {
    margin-left: 18%;
    margin-top: 5%;
    padding: 10px;
    background-color: cadetblue;
}
.follow-up-heading {
    margin-left: 5%;
    font-weight: 600;
    font-size: 28px;
    background-color: cadetblue;
}

/* ================= MOBILE (<=768px) ================= */

@media (max-width: 768px){

    /* SIDEBAR HIDE */
    .sidebar{
        left:-250px;
        transition:0.3s;
        z-index:999;
    }

    /* SIDEBAR SHOW CLASS */
    .sidebar.active{
        left:0;
    }

    /* MAIN CONTENT FULL WIDTH */
    .main-content{
        margin-left:0;
        padding:80px 15px 20px;
    }

    /* TOPBAR FULL */
    .topbar{
        left:0;
        flex-direction:column;
        height:auto;
        gap:10px;
        padding:10px;
    }

    /* SEARCH */
    .search-box{
        width:100%;
    }

    /* STATS CARDS STACK */
    .stats-container{
        flex-direction:column;
        gap:15px;
    }

    .stat-card{
        width:100%;
    }

    /* TABLE SCROLL */
    .table-box{
        overflow-x:auto;
    }

    .data-table{
        min-width:600px;
    }

    /* PROFILE CARD */
    .profile-card,
    .settings-card{
        padding:15px;
    }

    /* BUTTONS STACK */
    .profile-actions,
    .settings-actions{
        flex-direction:column;
        gap:10px;
    }

    /* FOLLOW CARD STACK */
    .follow-card{
        flex-direction:column;
        gap:10px;
    }

    .left-section,
    .middle-section,
    .right-section{
        width:100%;
        text-align:left;
    }

    /* DASHBOARD CARDS */
    .dashboard-card{
        width:100%;
        height:auto;
    }
}