 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #f5f5f5;
            color: #333;
           
            overflow-x: hidden;
        }

        .dashboard-container {
            display: flex;
            min-height: 100vh;
            flex-direction: column;
        }

        /* Header Styles - Full width with logo */
        .header {
            background-color: white;
            padding: 20px 32px;
            border-bottom: 1px solid #E5E7EB;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
            width: 100%;
            position: fixed;
            top: 0;
            z-index: 1000;
        }

        .header-left {
            display: flex;
            /* flex-direction: row; */
            align-items: center;
            gap: 32px;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: #FF3333;
            letter-spacing: -0.5px;
        }

        .header-title {
            display: flex;
            flex-direction: column;
        }

        .header-title h1 {
            font-size: 24px;
            font-weight: 700;
            color: #1F2937;
            margin-bottom: 4px;
            letter-spacing: -0.5px;
        }

        .header-title p {
            color: #6B7280;
            font-size: 14px;
            font-weight: 400;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background-color: #F9FAFB;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            padding: 10px 16px;
            width: 280px;
            height: 40px;
        }

        .search-bar input {
            border: none;
            background: none;
            outline: none;
            flex: 1;
            font-size: 14px;
            color: #9CA3AF;
            font-weight: 400;
        }

        .search-bar input::placeholder {
            color: #9CA3AF;
        }

        .search-icon {
            width: 16px;
            height: 16px;
            color: #9CA3AF;
            margin-left: 8px;
        }

        .date-picker {
            display: flex;
            align-items: center;
            background-color: #F9FAFB;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            padding: 10px 16px;
            cursor: pointer;
            height: 40px;
            gap: 8px;
        }

        .date-picker span {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
        }

        .calendar-icon {
            width: 16px;
            height: 16px;
            color: #6B7280;
        }

        .dropdown-icon {
            width: 12px;
            height: 12px;
            color: #6B7280;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
        }

        .user-info {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-size: 14px;
            font-weight: 600;
            color: #1F2937;
        }

        /* Main Content Container */
        .main-container {
            display: flex;
            margin-top: 80px;
            min-height: calc(100vh - 80px);
        }

        /* Sidebar Styles - Curved edges, not lapping left edge */
     .sidebar {
    width: 280px;
    height: 85vh;
    overflow-y: scroll;
    background-color: #FF3333;
    color: white;
    padding: 0px 20px;
    margin: 16px auto 16px 16px;
    border-radius: 16px;
    position: relative;
    transition: width 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.15);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.sidebar::-webkit-scrollbar {
    display: none;
}

        .sidebar.collapsed {
            width: 80px;
        }

        .sidebar-toggle {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 6px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            font-size: 16px;
            transition: background-color 0.2s;
        }

        .sidebar-toggle:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .nav-section {
            margin-bottom: 32px;
            margin-top: 48px;
        }

        .nav-section h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
            opacity: 1;
            color: white;
            transition: opacity 0.3s ease;
        }

        .sidebar.collapsed .nav-section h3 {
            opacity: 0;
            height: 0;
            margin: 0;
            overflow: hidden;
        }

        .nav-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            margin-bottom: 4px;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.2s;
            text-decoration: none;
            color: white;
            font-size: 14px;
            font-weight: 500;
            position: relative;
        }

        .nav-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .nav-item.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .nav-item-icon {
            width: 20px;
            height: 20px;
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            font-size: 12px;
            flex-shrink: 0;
        }

        .nav-item-text {
            transition: opacity 0.3s ease;
        }

        .sidebar.collapsed .nav-item-text {
            opacity: 0;
            width: 0;
            overflow: hidden;
        }

        .sidebar.collapsed .nav-item {
            justify-content: center;
            padding: 12px;
        }

        .sidebar.collapsed .nav-item-icon {
            margin-right: 0;
        }

        /* Main Content Styles */
        .main-content {
            /* overflow-y: auto; */
            flex: 1;
            display: block;
            border-radius: 16px;
            background-color: white;
            padding: 32px;
            transition: margin-left 0.3s ease;
        }
        /* Dashboard Cards Mobile */
.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px;
}

.card {
  /* width: 200px; */
  height: 120px;
  background: #f7f3f3;
  border: 1.5px solid RED;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
  box-sizing: border-box;
  overflow: hidden;
}

.card-content-box {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid red;
  border-radius: 8px;
  padding: 8px 10px;
  gap: 10px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 6px;
  border-radius: 4px;
  font-size: 18px;
  width: 35px;
  height: 35px;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-number {
  font-size: 25px;
  font-weight: bold;
}

.card-change {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.card-label {
  font-size: 14px;
  font-weight: 600;
}

.card-badge {
  background-color: #0fc018;
  color: #e0f7e9;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 10px;
}

/* Icon background colors */
.orange { background-color: #ff9800; }
.purple { background-color: #9c27b0; }
.pink   { background-color: #e91e63; }
.blue   { background-color: #2196f3; }
.green  { background-color: #4caf50; }
.teal   { background-color: #009688; }

/* Responsive */
@media (max-width: 768px) {
  .dashboard-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.chart-container {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 70%, rgba(99, 102, 241, 0.05) 70%, rgba(99, 102, 241, 0.1) 100%);
    z-index: 1;
    transition: all 0.9s ease;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chart-container:hover::before {
    background: linear-gradient(315deg, transparent 0%, transparent 60%, rgba(99, 102, 241, 0.08) 60%, rgba(99, 102, 241, 0.15) 100%);
}

/* Home Drop Chart - Orange Theme */
.chart-container:nth-child(1) {
    border-color: #ff6b35;
}

.chart-container:nth-child(1)::before {
    background: linear-gradient(135deg, transparent 0%, transparent 70%, rgba(255, 107, 53, 0.05) 70%, rgba(255, 107, 53, 0.1) 100%);
}

.chart-container:nth-child(1):hover::before {
    background: linear-gradient(315deg, transparent 0%, transparent 60%, rgba(255, 107, 53, 0.08) 60%, rgba(255, 107, 53, 0.15) 100%);
}

/* Activation Chart - Pink Theme */
.chart-container:nth-child(2) {
    border-color: #ec4899;
}

.chart-container:nth-child(2)::before {
    background: linear-gradient(135deg, transparent 0%, transparent 70%, rgba(236, 72, 153, 0.05) 70%, rgba(236, 72, 153, 0.1) 100%);
}

.chart-container:nth-child(2):hover::before {
    background: linear-gradient(315deg, transparent 0%, transparent 60%, rgba(236, 72, 153, 0.08) 60%, rgba(236, 72, 153, 0.15) 100%);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.chart-header h3 {
    font-size: 1.3rem;
    color: #1f2937;
    font-weight: 600;
}

.chart-header p {
    font-size: 0.9rem;
    color: #6b7280;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Style for first chart header */
.chart-container:nth-child(1) .chart-header p {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

/* Style for second chart header */
.chart-container:nth-child(2) .chart-header p {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.chart {
    height: 280px;
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .charts-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .charts-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

        /* Metrics Cards - With border colors */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            margin-bottom: 32px;
        }

        .metric-card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 2px solid #E5E7EB;
            position: relative;
            min-height: 140px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .metric-card.lead-conversion {
            border-color: #10B981;
        }

        .metric-card.installation-time {
            border-color: #EF4444;
        }

        .metric-card.sla-compliance {
            border-color: #10B981;
        }

        .metric-card.satisfaction-score {
            border-color: #10B981;
        }

        .metric-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }

        .metric-title {
            font-size: 14px;
            color: #6B7280;
            font-weight: 500;
            line-height: 1.4;
        }

        .metric-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            color: white;
            white-space: nowrap;
        }

        .metric-badge.positive {
            background-color: #10B981;
        }

        .metric-badge.negative {
            background-color: #EF4444;
        }

        .metric-value {
            font-size: 48px;
            font-weight: 700;
            color: #1F2937;
            margin-bottom: 8px;
            line-height: 1;
        }

        .metric-value .unit {
            font-size: 20px;
            font-weight: 400;
            color: #6B7280;
        }

        .metric-subtitle {
            font-size: 12px;
            color: #9CA3AF;
            font-weight: 400;
        }

        /* Tabbed Section */
        .tabbed-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 2px solid #E5E7EB;
            overflow: hidden;
        }

        .tab-header {
            display: flex;
            border-bottom: 1px solid #E5E7EB;
            background-color: #FAFAFA;
            padding: 0;
        }

        .tab-button {
            padding: 16px 24px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #6B7280;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .tab-button.active {
            color: #1F2937;
            border-bottom-color: #1F2937;
            background-color: white;
            font-weight: 600;
        }

        .tab-content {
            padding: 24px 32px;
        }

        .table-header {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 24px;
        }

        .table-search {
            display: flex;
            align-items: center;
            background-color: #F9FAFB;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            padding: 8px 12px;
            width: 240px;
            height: 36px;
        }

        .table-search input {
            border: none;
            background: none;
            outline: none;
            flex: 1;
            font-size: 14px;
            color: #9CA3AF;
        }

        .table-search input::placeholder {
            color: #9CA3AF;
        }

        /* Table Styles */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
        }

        .data-table th {
            text-align: left;
            padding: 12px 16px;
            background-color: #F9FAFB;
            border-bottom: 1px solid #E5E7EB;
            font-weight: 600;
            color: #374151;
            font-size: 14px;
            height: 48px;
        }

        .data-table td {
            padding: 16px;
            border-bottom: 1px solid #F3F4F6;
            font-size: 14px;
            color: #1F2937;
            height: 56px;
            vertical-align: middle;
        }

        .data-table tr:last-child td {
            border-bottom: none;
        }

        .data-table tr:hover {
            background-color: #F9FAFB;
        }

        /* Bottom notification bar */
        .notification-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #374151;
            color: white;
            padding: 12px 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            z-index: 999;
        }

        .notification-text {
            color: #D1D5DB;
        }

        .notification-actions {
            display: flex;
            gap: 16px;
        }

        .learn-more-btn {
            background-color: #10B981;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
        }

        .close-btn {
            background-color: #6B7280;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .metrics-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .main-container {
                flex-direction: column;
            }

            .sidebar {
                width: 80%;
                margin: 15px auto;
                border-radius: 12px;
            }

            .sidebar.collapsed {
                width: 100%;
            }

            .header {
                /* flex-direction: column; */
                gap: 16px;
                align-items: stretch;
                height: auto;
                padding: 20px;
                position: relative;
            }

            .header-left {
                height: 70px;
                display: block;
            }
            .header-title{
                margin-top: 2rem;
            }
            .date-picker{
                display: block;
                display: none;
            }

            .header-right {
                /* display: none; */
                justify-content: space-between;
                flex-wrap: wrap;
            }

            .search-bar {
                width: 100%;
                margin-bottom: 12px;
                display: none;
            }

            .metrics-grid {
                grid-template-columns: 1fr;
            }

            .tab-header {
                flex-wrap: wrap;
            }

            .main-container {
                margin-top: 0;
            }

            .main-content {
                padding: 20px;
            }
        }

        /* --- Pager/Pagination Styles --- */
        .pagination {
            display: flex;
            padding-left: 0;
            list-style: none;
            margin: 1rem 0;
            justify-content: center;
            gap: 0.25rem;
        }

        .pagination .page-item .page-link {
            position: relative !important;
            display: block !important;
            padding: 0.6rem 1rem !important;
            font-size: 0.875rem !important;
            line-height: 1.25 !important;
            text-decoration: none !important;
            color: #FF3333 !important; /* Main theme color for links */
            background-color: #fff !important;
            border: 1px solid #dee2e6 !important;
            transition: all 0.2s ease-in-out !important;
            font-weight: 600 !important;
            border-radius: 0.375rem !important; /* Rounded corners for all links */
            box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
        }

        .pagination .page-item .page-link:hover {
            z-index: 2 !important;
            color: #fff !important;
            background-color: #e53e3e !important; /* Darker red on hover */
            border-color: #e53e3e !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 8px rgba(229, 62, 62, 0.2) !important;
        }

        .pagination .page-item.active .page-link {
            z-index: 3 !important;
            color: #fff !important;
            background-color: #FF3333 !important; /* Main theme color for active */
            border-color: #FF3333 !important;
            box-shadow: 0 2px 4px rgba(255, 51, 51, 0.3) !important;
        }

        .pagination .page-item.disabled .page-link {
            color: #adb5bd !important;
            pointer-events: none !important;
            background-color: #e9ecef !important;
            border-color: #dee2e6 !important;
            box-shadow: none !important;
        }

        /* --- Table Action Button Styles --- */
        .data-table .dropdown-menu a.dropdown-item,
        .tickets-table .dropdown-menu a.dropdown-item {
            display: inline-block;
            padding: 0.375rem 0.75rem;
            margin: 0.2rem 0.5rem;
            font-size: 0.8rem;
            font-weight: 600;
            text-align: center;
            text-decoration: none;
            border-radius: 0.375rem;
            border: 1px solid transparent;
            transition: all 0.2s ease-in-out;
            background-color: #f8f9fa;
            color: #495057;
            border-color: #dee2e6;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }

        .data-table .dropdown-menu a.dropdown-item:hover,
        .tickets-table .dropdown-menu a.dropdown-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            background-color: #e9ecef;
            border-color: #ced4da;
        }