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

img.company-logo1 {
    height: 69px;
}

body {
    font-family: 'Poppins', sans-serif;
   /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background:linear-gradient(26deg, #343740 0%, #eab320 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login Container */
.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 36px;
    color: #c19011;
}

.logo h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.input-group input:focus {
    outline: none;
    border-color: #c19011;
    background: rgba(255, 255, 255, 1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #c19011;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.remember-me input {
    width: auto;
}

.forgot-password {
    color: #c19011;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #636670;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
   /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(83deg, #636670 0%, #c19011 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* User Type Selector */
.user-type-selector {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.user-type-selector p {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.user-types {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.user-type-btn {
    padding: 8px 20px;
    border: 2px solid #e1e8ed;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.user-type-btn.active,
.user-type-btn:hover {
    background: linear-gradient(83deg, #636670 0%, #c19011 100%);
    color: white;
    border-color: transparent;
}

/* Login Footer */
.login-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #c19011;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    color: #636670;
}

/* Simple Footer Styles */
.footer {
    /*background: linear-gradient(90deg, #999ba3, #ddaf35);*/
   background: linear-gradient(24deg, #45464b, #b98e1c);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /*background: linear-gradient(90deg, #667eea, #764ba2);*/
   /* background: linear-gradient(90deg, #999ba3, #ddaf35);*/
    background: linear-gradient(24deg, #45464b, #b98e1c);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.footer-content .company-name {
    color: #c19011;
    font-weight: 600;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 15px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 10px;
    }
    
    .footer-content p {
        font-size: 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .logo i {
        font-size: 30px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .user-types {
        flex-direction: column;
        width: 100%;
    }
    
    .user-type-btn {
        width: 100%;
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: block;
   /* background: linear-gradient(26deg, #343740 0%, #eab320 100%);*/
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

/* Sidebar - Now Horizontal Header */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(83deg, #636670 0%, #c19011 100%);
    padding: 0 30px;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    overflow-y: visible;
}

.sidebar::-webkit-scrollbar {
    height: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.sidebar-logo i {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
}

.sidebar-logo h2 {
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    flex-wrap: nowrap;
    min-width: max-content;
}

.sidebar-menu li {
    margin-bottom: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: white;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.sidebar-menu a.active::before {
    transform: scaleY(1);
}

.sidebar-menu i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

/* Desktop Dropdown Styles - Only apply to screens larger than 768px */
@media (min-width: 769px) {
    .dropdown-menu {
        list-style: none;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 200px;
        background: white !important;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 99999 !important;
        margin-top: 5px;
        overflow: hidden;
       /* max-height: 300px;*/
       max-height: none;
        overflow-y: auto;
        display: block !important;
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .dropdown-menu::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
    }
    
    .dropdown-menu li {
        margin: 0;
    }
    
    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        color: #333 !important;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        border-left: 3px solid transparent;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(193, 144, 17, 0.1) !important;
        color: #c19011 !important;
        border-left-color: #c19011;
    }
    
    .dropdown-menu a.active {
        background: rgba(193, 144, 17, 0.15) !important;
    }
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        min-width: 100%;
        display: block !important;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 280px;
        overflow-y: auto;
        display: block !important;
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 3px;
    }
    
    .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.9);
        padding: 10px 15px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(193, 144, 17, 0.1);
        color: #c19011;
        border-left-color: #c19011;
    }
    
    .dropdown-toggle {
        font-size: 13px;
        padding: 10px 15px;
        justify-content: center;
        min-width: 120px;
        text-align: center;
    }
    
    /* Improve mobile sidebar layout */
    .sidebar {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .sidebar::-webkit-scrollbar {
        width: 4px;
    }
    
    .sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }
    
    .sidebar-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .sidebar-menu li {
        width: 100%;
    }
    
    .sidebar-menu a {
        font-size: 13px;
        padding: 10px 15px;
        justify-content: center;
    }
    
    .sidebar-menu i {
        font-size: 14px;
    }
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 25px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.menu-toggle {
    background: none;
    border: none;
    color: #c19011;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(193, 144, 17, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    background: none;
    border: none;
    color: #c19011;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.notification-btn:hover {
    background: rgba(193, 144, 17, 0.1);
}

.notification-btn .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(193, 144, 17, 0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(83deg, #636670 0%, #c19011 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-info span {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color-1), var(--card-color-2));
}

.stat-card:nth-child(1) {
    --card-color-1: #3498db;
    --card-color-2: #2980b9;
}

.stat-card:nth-child(2) {
    --card-color-1: #2ecc71;
    --card-color-2: #27ae60;
}

.stat-card:nth-child(3) {
    --card-color-1: #f1c40f;
    --card-color-2: #f39c12;
}

.stat-card:nth-child(4) {
    --card-color-1: #9b59b6;
    --card-color-2: #8e44ad;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.enquiries {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2));
    color: #3498db;
}

.stat-icon.bookings {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    color: #2ecc71;
}

.stat-icon.followups {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.2));
    color: #f1c40f;
}

.stat-icon.revenue {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2));
    color: #9b59b6;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-label {
    color: #7f8c8d;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    color: #27ae60;
}

.stat-change.negative {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.15));
    color: #c0392b;
}

.stat-change i {
    font-size: 10px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        padding: 0 20px;
    }
    
    .sidebar-menu a {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .sidebar-menu i {
        font-size: 14px;
    }
    
    .sidebar-logo h2 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        height: auto;
        min-height: 70px;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .sidebar-header {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-width: unset;
    }
    
    .sidebar-menu li {
        width: auto;
        flex: 0 0 auto;
    }
    
    .sidebar-menu a {
        font-size: 13px;
        padding: 10px 15px;
        justify-content: center;
        min-width: 120px;
        text-align: center;
    }
    
    .sidebar-menu i {
        font-size: 14px;
        display: block;
        margin-bottom: 4px;
    }
    
    .main-content {
        /*margin-top: 20px;*/
        margin-top: 211px;
       /* padding: 15px;*/
        padding: 32px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 10px;
    }
    
    .sidebar-logo h2 {
        font-size: 16px;
    }
    
    .sidebar-logo i {
        font-size: 20px;
        padding: 8px;
    }
    
    .sidebar-menu {
        gap: 6px;
    }
    
    .sidebar-menu a {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .sidebar-menu i {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-left,
    .header-right {
        justify-content: space-between;
    }
    
    .search-bar input {
        width: 100%;
    }
}



/*new*/ 

/* =========================
   SIDEBAR (HORIZONTAL)
========================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(83deg, #9b9b9b 0%, #c19011 100%);
    padding: 0 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 🔥 FIX 1: NEVER CLIP DROPDOWNS ON DESKTOP */
@media (min-width: 769px) {
    .sidebar {
        overflow: visible !important;
    }
}

/* =========================
   SIDEBAR HEADER
========================= */
.sidebar-header {
    display: flex;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.sidebar-logo i {
    font-size: 24px;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 10px;
}

.sidebar-logo h2 {
    font-size: 20px;
    font-weight: 600;
}

/* =========================
   SIDEBAR MENU
========================= */
.sidebar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 15px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-2px);
}

.sidebar-menu i {
    font-size: 16px;
}

/* =========================
   DROPDOWN CORE
========================= */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* =========================
   DESKTOP DROPDOWN
========================= */
@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 99999;
        list-style: none;
        padding: 6px 0;
    }

    /* 🔥 FIX 2: Proper active state */
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu a {
        padding: 12px 18px;
        color: #333;
        font-size: 14px;
        border-left: 3px solid transparent;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(193,144,17,0.1);
        color: #c19011;
        border-left-color: #c19011;
    }
}

/* =========================
   MOBILE DROPDOWN
========================= */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .sidebar-menu {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        background: rgba(255,255,255,0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        border-radius: 8px;
        margin-top: 10px;
        display: block !important;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        display: block !important;
    }

    .dropdown-menu a {
        color: white;
        font-size: 13px;
        padding: 10px 15px;
    }
}

    .leads-table {
        border-collapse: collapse;
        width: 100%;
        border: 2px solid #ddd;
    }
    
    .leads-table th,
    .leads-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }
    
    .leads-table th {
        background-color: #e7c05b;
        font-weight: 600;
    }

    .span_cls {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: #e74c3c;
        font-weight: 500;
    }
    .red_star{
        color: red;
    }

/*end code*/

    /* Table borders */
    .leads-table {
        border-collapse: collapse;
        width: 100%;
        border: 2px solid #ddd;
    }
    
    .leads-table th,
    .leads-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }
    
    .leads-table th {
        background-color: #e7c05b;
        font-weight: 600;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .filter-row {
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .filter-group {
            min-width: 140px;
            flex: 1 1 calc(25% - 12px);
        }
    }

    @media (max-width: 992px) {
        .filter-row {
            gap: 10px;
        }
        
        .filter-group {
            min-width: 120px;
            flex: 1 1 calc(33.333% - 10px);
        }
        
        .leads-table {
            min-width: 1000px;
        }
    }

    @media (max-width: 768px) {
        .filters-section {
            padding: 15px;
        }
        
        .section-header {
            flex-direction: column;
            gap: 15px;
            align-items: stretch;
            text-align: center;
        }
        
        .filter-row {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        
        .filter-group {
            min-width: calc(50% - 8px);
            flex: 1 1 calc(50% - 8px);
            max-width: calc(50% - 8px);
        }
        
        .filter-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;
            margin-top: 10px;
        }
        
        .btn-filter, .btn-secondary {
            flex: 1;
            min-width: 120px;
            justify-content: center;
        }
        
        .table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .leads-table {
            min-width: 800px;
        }
        
        /* Hide less important columns on tablet */
       /* .leads-table th:nth-child(11),
        .leads-table td:nth-child(11),
        .leads-table th:nth-child(12),
        .leads-table td:nth-child(12) {
            display: none;
        }*/
    }

    @media (max-width: 600px) {
        .filters-section {
            padding: 10px;
        }
        
        .section-header .page-title {
            font-size: 20px;
        }
        
        .filter-row {
            flex-direction: column;
            gap: 12px;
        }
        
        .filter-group {
            min-width: 100%;
            flex: 1 1 100%;
            max-width: 100%;
        }
        
        .filter-group label {
            font-size: 12px;
            margin-bottom: 6px;
        }
        
        .search-input,
        .filter-select,
        .filter-date {
            font-size: 14px;
            padding: 8px;
            width: 100%;
        }
        
        .filter-actions {
            display: flex;
            gap: 8px;
            justify-content: stretch;
            flex-wrap: nowrap;
            width: 100%;
            margin-top: 5px;
        }
        
        .btn-filter, .btn-secondary {
            font-size: 13px;
            padding: 8px 12px;
            flex: 1;
            min-width: 0;
        }
        
        .leads-table {
            min-width: 700px;
        }
        
        /* Hide more columns on mobile */
       /* .leads-table th:nth-child(9),
        .leads-table td:nth-child(9),
        .leads-table th:nth-child(10),
        .leads-table td:nth-child(10),
        .leads-table th:nth-child(11),
        .leads-table td:nth-child(11),
        .leads-table th:nth-child(12),
        .leads-table td:nth-child(12),
        .leads-table th:nth-child(13),
        .leads-table td:nth-child(13),
        .leads-table th:nth-child(14),
        .leads-table td:nth-child(14),
        .leads-table th:nth-child(15),
        .leads-table td:nth-child(15) {
            display: none;
        }*/
        
        /* Show important columns with priority */
        .leads-table th:nth-child(1),
        .leads-table td:nth-child(1),
        .leads-table th:nth-child(2),
        .leads-table td:nth-child(2),
        .leads-table th:nth-child(3),
        .leads-table td:nth-child(3),
        .leads-table th:nth-child(4),
        .leads-table td:nth-child(4),
        .leads-table th:nth-child(5),
        .leads-table td:nth-child(5),
        .leads-table th:nth-child(6),
        .leads-table td:nth-child(6),
        .leads-table th:nth-child(7),
        .leads-table td:nth-child(7),
        .leads-table th:nth-child(8),
        .leads-table td:nth-child(8),
        .leads-table th:nth-child(16),
        .leads-table td:nth-child(16) {
            display: table-cell;
        }
    }

    @media (max-width: 480px) {
        .filters-section {
            padding: 8px;
        }
        
        .section-header .page-title {
            font-size: 18px;
        }
        
        .filter-group label {
            font-size: 11px;
            margin-bottom: 4px;
        }
        
        .search-input,
        .filter-select,
        .filter-date {
            font-size: 13px;
            padding: 6px 8px;
        }
        
        .filter-actions {
            flex-direction: column;
            gap: 6px;
        }
        
        .btn-filter, .btn-secondary {
            font-size: 12px;
            padding: 6px 10px;
            width: 100%;
        }
        
        .leads-table {
            min-width: 600px;
        }
        
        .leads-table th,
        .leads-table td {
            padding: 6px 4px;
            font-size: 11px;
        }
        
        .table-header {
            padding: 15px;
        }
        
        .table-header h2 {
            font-size: 16px;
        }
        
        .pagination-container {
            padding: 15px;
            flex-direction: column;
            gap: 10px;
        }
        
        .pagination-controls {
            flex-wrap: wrap;
            justify-content: center;
        }
    }

    /* Mobile card view for very small screens */
    @media (max-width: 400px) {
        .table-wrapper {
            overflow-x: auto;
        }
        
        .leads-table {
            min-width: 550px;
        }
        
        .action-buttons {
            flex-direction: column;
            gap: 2px;
        }
        
        .btn-action {
            padding: 4px 6px;
            font-size: 10px;
        }
    }

    /* Horizontal scroll indicator */
  /*  .table-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #c19011, #636670);
        border-radius: 2px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }*/
    
    .table-wrapper:hover::after {
        opacity: 0.7;
    }

    /* Improve touch targets on mobile */
    @media (max-width: 768px) {
        .btn-action {
            min-width: 35px;
            min-height: 35px;
        }
        
        .source-badge, .status-badge {
            font-size: 10px;
            padding: 2px 6px;
        }
    }

    span.no_record_cls {
        color: red;
    }

    .table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    }

    .history-table {
        width: 100%;
        border-collapse: collapse;
    }

    .history-table th,
    .history-table td {
        border: 1px solid #ddd;
        padding: 10px;
        font-size: 14px;
    }

    .history-table th {
        background: #f5f5f5;
        font-weight: 600;
        text-align: left;
    }

    .history-table tr:nth-child(even) {
        background: #fafafa;
    }

    .history-table tr:hover {
        background: #f1f1f1;
    }

    @media (max-width: 768px) {
        .history-table th,
        .history-table td {
            font-size: 13px;
            padding: 8px;
        }
    }


    /* Top Scroll */
/*.table-scroll-top{
    overflow-x:auto;
    overflow-y:hidden;
}

.scroll-inner{
    height:1px;
}

.table-scroll-bottom{
    overflow-x:auto;
}

.my-table{
    border-collapse:collapse;
    min-width:1200px;
}

.my-table th,
.my-table td{
    border:1px solid #ccc;
    padding:10px;
    text-align:center;
    white-space:nowrap;
}*/


.sticky-total-new {
    position: sticky !important;
    /* left: 120px !important; */
    /* background: #ffffff !important; */
    z-index: 99 !important;
    /* border: 1px solid #ddd !important; */
    font-weight: bold;
}

.sr_cls{
    left: 1px;
}
.date_cls{
    left: 36px;
}

.name_cls{
     left: 145px;
}
