/* Global Styles */
    :root {
      --sidebar-width: 260px;
      --primary: #000;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
      --info: #3b82f6;
      --light: #f8f9fa;
      --dark: #1f2937;
    }


    * {
      margin: 0%;
      padding: 0%;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: #f4f6f9;
      color: #374151;

    }

    body i {
      cursor: pointer;
    }
    
    /* Sidebar */
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: var(--sidebar-width);
      height: 100vh;
      background-color: white;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
      z-index: 1000;
      overflow-y: auto;
      padding: 1rem 0;
    }

    .sidebar .logo {
      padding: 0 1.5rem;
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--primary);
      margin-bottom: 2rem;
    }

    .sidebar .nav-link {
      color: #6b7280;
      padding: 0.75rem 1.5rem;
      border-radius: 0;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      transition: all 0.2s;
    }

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
      background-color: #f8f9ff;
      color: var(--primary);
    }

    .sidebar .nav-link i {
      font-size: 1.1rem;
    }

    .sidebar .nav-link.active {
      border-left: 4px solid var(--primary);
      background-color: #f0f4ff;
      color: var(--primary);
    }

    /* Main Content */
    .main-content {
      margin-left: var(--sidebar-width);
      padding: 2rem;
      min-height: 100vh;
    }

    /* Header */
    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
    }

    .header h1 {
      font-size: 1.5rem;
      font-weight: 600;
      color: #1f2937;
    }

    .search-bar {
      max-width: 400px;
    }

    .user-menu .dropdown-toggle::after {
      display: none;
    }

    /* Stats Cards */
    .stat-card {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s;
    }

    .stat-card:hover {
      transform: translateY(-4px);
    }

    .stat-card .icon {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }

    .stat-card h3 {
      font-size: 2rem;
      font-weight: 700;
      margin: 0.5rem 0 0;
      color: #1f2937;
    }

    .stat-card p {
      color: #6b7280;
      margin: 0;
      font-size: 0.875rem;
    }

    /* Recent Activity */
    .activity-card {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .activity-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 0.75rem 0;
      border-bottom: 1px solid #f3f4f6;
    }

    .activity-item:last-child {
      border-bottom: none;
    }

    .activity-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: #eef2ff;
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .activity-content {
      flex: 1;
    }

    .activity-title {
      font-weight: 500;
      color: #1f2937;
      margin: 0 0 0.25rem;
    }

    .activity-meta {
      font-size: 0.8rem;
      color: #9ca3af;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
      }

      .sidebar.show {
        transform: translateX(0);
      }

      .main-content {
        margin-left: 0;
      }

      .header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
      }

      .search-bar {
        max-width: 100%;
      }
    }

    .mobile-toggle {
      display: none;
    }

    @media (max-width: 992px) {
      .mobile-toggle {
        display: block;
      }
    }


    #add-lead {
      white-space: nowrap;
      background-color: var(--primary);
      border: #000;
    }

    #handshake i {
      color: grey;
    }

    /* Mobile close button inside sidebar */
    .sidebar .close-mobile {
      position: absolute;
      top: 0.6rem;
      right: 0.6rem;
      width: 38px;
      height: 38px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }



    .user-popup {
      position: absolute;
      top: 80px;
      right: 40px;
      width: 250px;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      display: none;
      z-index: 2000;
      padding: 0.5rem 0;
    }

    .user-popup ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .user-popup li {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 15px;
      font-size: 14px;
      color: #333;
      cursor: pointer;
      transition: background 0.2s;
    }

    .user-popup li:hover {
      background: #f8f9fa;
    }

    .user-popup i {
      color: #0d6efd;
      font-size: 1rem;
    }




    .add-lead {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      z-index: 3000;
      display: none;
      width: 300px;
    }

    .add-lead .main label {
      font-weight: 500;
      margin-top: 10px;
    }


    #close-btn {
      cursor: pointer;
      font-size: 1.5rem;
      font-weight: bold;
    }


    .main {
      padding: 8px;
    }


    .main label {
      font-size: 17px;
      padding-bottom: 5px;
      font-weight: 900;

    }

    .cross-btn {
      font-size: 26px;
      padding-right: 10px;
      font-weight: bold;
      cursor: pointer;
    }

    .quick-note {
      position: fixed;
      top: 20px;
      right: 20px;
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      z-index: 3000;
      display: none;
      width: 250px;
      font-size: 19px;
      padding-bottom: 5px;
    }

    @media (max-width: 992px) {
      .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
      }

      .sidebar.show {
        transform: translateX(0);
      }

      .main-content {
        margin-left: 0;
      }

      .header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
      }

      .search-bar {
        max-width: 100%;
      }
    }

    .new-btn {
      background-color: #e0e7ff;
      color: #000;
      margin-bottom: 5px;
      border-radius: 17px;
    }

    .new-btn:hover {
      background-color: #e0e7ff;
      color: black;
    }


    .card {
      border-radius: 12px;
    }

    .form-label {
      font-size: 0.9rem;
      color: #333;
      display: flex;
      justify-content: flex-start;
    }

    .form-control,
    .form-select {
      border-radius: 8px;
    }

    .input-group-text {
      border-radius: 8px 0 0 8px;
    }

    @media(max-width:576px) {
      #add-lead {
        width: fit-content;
      }
    }

    .logout i {
      cursor: pointer;
    }

    .chart-card {
      background: #fff;
      border-radius: 1rem;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
      padding: 1.5rem;
      margin: 2rem auto;
      max-width: 1100px;
    }

    .chart-title {
      font-weight: 600;
      color: #212529;
      margin-bottom: 1rem;
    }

    canvas {
      height: 400px !important;
      cursor: pointer;
    }

    h1 {
      font-size: 24px;
      margin-bottom: 5px;
    }

    p.subtitle {
      color: #555;
      margin-bottom: 20px;
    }

    .overview {
      display: flex;
      gap: 15px;
      margin-bottom: 30px;
    }


    .card h2 {
      margin: 0;
      font-size: 24px;
    }

    .card span {
      font-size: 14px;
      color: #555;
    }

    .blue {
      background: #e0ebff;
    }

    .yellow {
      background: #fff8dc;
    }

    .purple {
      background: #f3e8ff;
    }

    .lightblue {
      background: #e6f0ff;
    }

    .green {
      background: #e6ffed;
    }

    /* Pipeline */
    .pipeline {
      display: flex;
      gap: 15px;
    }

    .stage {
      flex: 1;
      background: #fff;
      padding: 15px;
      border-radius: 10px;
      max-height: 400px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      border: 0.00001px solid #000;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: #bfbfbf transparent;
      position: relative;
    }

    /* Chrome, Edge, Safari */
    .stage::-webkit-scrollbar {
      width: 8px;
    }

    .stage::-webkit-scrollbar-track {
      background: transparent;
      margin-top: 10px;
      /* Top spacing */
      margin-bottom: 10px;
      /* Bottom spacing */
    }

    .stage::-webkit-scrollbar-thumb {
      background-color: #bfbfbf;
      border-radius: 10px;
      min-height: 30px;
    }

    .stage::-webkit-scrollbar-thumb:hover {
      background-color: #a0a0a0;
    }

    /* Firefox workaround: use pseudo gaps */
    .stage::before,
    .stage::after {
      content: '';
      display: block;
      height: 10px;
      flex-shrink: 0;
    }

    .stage>* {
      flex-shrink: 0;
    }

    .stage h3 {
      font-size: 16px;
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .lead {
      background: #f9fafb;
      border-radius: 10px;
      padding: 10px;
      margin-bottom: 10px;
      border: 1px solid #eee;
    }

    .lead strong {
      display: block;
      font-size: 14px;
    }

    .lead small {
      color: #555;
    }

    .tags {
      margin-top: 5px;
    }

    .tag {
      display: inline-block;
      font-size: 12px;
      padding: 2px 8px;
      border-radius: 12px;
      margin-right: 5px;
    }


    