* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f6fa;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    height: 100vh;

    background: #111827;

    padding: 30px 20px;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;
}

/* LOGO */

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;

    margin-bottom: 45px;
}

/* NAVIGATION */

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    display: block;

    padding: 13px 15px;

    color: #9ca3af;

    text-decoration: none;

    border-radius: 10px;

    transition: 0.3s;
}

.sidebar nav ul li a:hover {
    background: #1f2937;
    color: white;
}

.sidebar nav ul li a.active {
    background: #6366f1;
    color: white;
}

/* BOTTOM */

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-bottom > a {
    display: block;

    color: #9ca3af;

    text-decoration: none;

    margin-bottom: 25px;
}

.sidebar-bottom > a:hover {
    color: white;
}

/* USER */

.user {
    display: flex;

    align-items: center;

    gap: 12px;

    padding-top: 20px;

    border-top: 1px solid #374151;
}

.user-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #6366f1;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.user h4 {
    color: white;
    font-size: 14px;

    margin-bottom: 4px;
}

.user p {
    color: #9ca3af;
    font-size: 12px;
}
/* =========================
   MAIN CONTENT
========================= */

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    padding: 25px 35px;
}

/* =========================
   TOP NAVBAR
========================= */

.top-navbar {
    background: white;

    min-height: 75px;

    padding: 15px 25px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* PAGE TITLE */

.page-title h2 {
    color: #111827;
    font-size: 22px;
    margin-bottom: 5px;
}

.page-title p {
    color: #9ca3af;
    font-size: 13px;
}

/* NAVBAR RIGHT */

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

/* SEARCH */

.search-box input {
    width: 220px;

    padding: 11px 15px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    outline: none;

    font-size: 14px;

    transition: 0.3s;
}

.search-box input:focus {
    border-color: #6366f1;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* NOTIFICATION */

.notification-btn {
    width: 42px;
    height: 42px;

    border: none;

    background: #f3f4f6;

    border-radius: 10px;

    cursor: pointer;

    font-size: 18px;

    transition: 0.3s;
}

.notification-btn:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

/* PROFILE */

.profile {
    display: flex;
    align-items: center;

    gap: 10px;
}

.profile-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #6366f1;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.profile h4 {
    color: #111827;

    font-size: 14px;

    margin-bottom: 3px;
}

.profile p {
    color: #9ca3af;

    font-size: 11px;
}
/* =========================
   DASHBOARD CONTENT
========================= */

.dashboard-content {
    margin-top: 30px;
}

/* WELCOME */

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}

.welcome h1 {
    color: #111827;
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome p {
    color: #9ca3af;
    font-size: 15px;
}

/* DATE FILTER */

.date-filter {
    padding: 11px 15px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: white;

    color: #374151;

    outline: none;

    cursor: pointer;
}

/* =========================
   STATISTICS
========================= */

.stats-container {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.stat-card {
    background: white;

    padding: 22px;

    border-radius: 16px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    transition: 0.3s;
}

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

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}

.stat-icon {
    width: 45px;
    height: 45px;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.purple {
    background: #ede9fe;
}

.blue {
    background: #dbeafe;
}

.green {
    background: #dcfce7;
}

.orange {
    background: #ffedd5;
}

.positive {
    color: #16a34a;

    background: #dcfce7;

    padding: 5px 8px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;
}

.stat-card p {
    color: #9ca3af;

    font-size: 14px;

    margin-bottom: 7px;
}

.stat-card h2 {
    color: #111827;

    font-size: 27px;

    margin-bottom: 7px;
}

.stat-card small {
    color: #9ca3af;

    font-size: 12px;
}
/* =========================
   ANALYTICS SECTION
========================= */

.analytics-section {
    margin-top: 25px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* CHART HEADER */

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

.chart-header h3 {
    color: #111827;
    font-size: 18px;
    margin-bottom: 6px;
}

.chart-header p {
    color: #9ca3af;
    font-size: 13px;
}

/* CHART BUTTONS */

.chart-buttons {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.chart-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.chart-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* CHART */

.chart {
    display: flex;
    height: 330px;
}

.y-labels {
    width: 50px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-bottom: 35px;

    color: #9ca3af;
    font-size: 11px;
}

.chart-area {
    position: relative;
    flex: 1;
    height: 100%;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;

    height: 1px;

    background: #eef0f4;
}

.grid-line:nth-child(1) {
    top: 0;
}

.grid-line:nth-child(2) {
    top: 25%;
}

.grid-line:nth-child(3) {
    top: 50%;
}

.grid-line:nth-child(4) {
    top: 75%;
}

.grid-line:nth-child(5) {
    bottom: 35px;
}

.chart-area svg {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: calc(100% - 35px);
}

/* MONTHS */

.months {
    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;

    color: #9ca3af;

    font-size: 11px;
}
/* =========================
   CUSTOMER ANALYTICS
========================= */

.customer-analytics {
    margin-top: 25px;
    margin-bottom: 30px;
}

.customer-chart-card {
    background: white;
    padding: 25px;
    border-radius: 16px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.customer-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}

.customer-chart-header h3 {
    color: #111827;
    font-size: 18px;

    margin-bottom: 6px;
}

.customer-chart-header p {
    color: #9ca3af;
    font-size: 13px;
}

.customer-filter {
    padding: 9px 13px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: white;

    color: #374151;

    outline: none;

    cursor: pointer;
}

/* BAR CHART */

.bar-chart {
    display: flex;

    height: 300px;
}

.bar-y-labels {
    width: 50px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding-bottom: 35px;

    color: #9ca3af;

    font-size: 11px;
}

.bar-chart-area {
    position: relative;

    flex: 1;

    height: 100%;
}

.bar-grid-line {
    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    background: #eef0f4;
}

.bar-grid-line:nth-child(1) {
    top: 0;
}

.bar-grid-line:nth-child(2) {
    top: 25%;
}

.bar-grid-line:nth-child(3) {
    top: 50%;
}

.bar-grid-line:nth-child(4) {
    top: 75%;
}

.bar-grid-line:nth-child(5) {
    bottom: 35px;
}

/* BARS */

.bars {
    position: absolute;

    left: 0;
    right: 0;

    bottom: 35px;
    top: 0;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    padding: 0 10px;
}

.bar-group {
    height: 100%;

    display: flex;

    align-items: flex-end;

    gap: 4px;

    position: relative;

    width: 6%;
}

.bar {
    width: 12px;

    border-radius: 5px 5px 0 0;

    transition: 0.3s;
}

.bar:hover {
    opacity: 0.75;

    transform: translateY(-4px);
}

.bar.new {
    background: #6366f1;
}

.bar.returning {
    background: #a5b4fc;
}

.bar-group span {
    position: absolute;

    bottom: -28px;

    left: 50%;

    transform: translateX(-50%);

    color: #9ca3af;

    font-size: 10px;
}

/* LEGEND */

.chart-legend {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-top: 15px;

    color: #6b7280;

    font-size: 12px;
}

.chart-legend div {
    display: flex;

    align-items: center;

    gap: 7px;
}

.legend-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    display: inline-block;
}

.new-dot {
    background: #6366f1;
}

.returning-dot {
    background: #a5b4fc;
}
/* =========================
   TRANSACTIONS SECTION
========================= */

.transactions-section {
    margin-top: 25px;
    margin-bottom: 30px;
}

.transactions-card {
    background: white;

    padding: 25px;

    border-radius: 16px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


/* HEADER */

.transactions-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.transactions-header h3 {
    color: #111827;

    font-size: 18px;

    margin-bottom: 6px;
}

.transactions-header p {
    color: #9ca3af;

    font-size: 13px;
}


/* ACTIONS */

.transaction-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.transaction-search input {
    width: 200px;

    padding: 10px 13px;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    outline: none;

    font-size: 13px;

    transition: 0.3s;
}

.transaction-search input:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.1);
}


.transaction-filter {
    padding: 10px 13px;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    background: white;

    color: #374151;

    outline: none;

    cursor: pointer;

    font-size: 13px;
}


/* TABLE */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.transactions-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}

.transactions-table th {
    text-align: left;

    padding: 14px 12px;

    background: #f9fafb;

    color: #6b7280;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.transactions-table td {
    padding: 17px 12px;

    border-bottom: 1px solid #f1f3f5;

    color: #4b5563;

    font-size: 13px;
}

.transactions-table tbody tr {
    transition: 0.2s;
}

.transactions-table tbody tr:hover {
    background: #fafafa;
}


/* CUSTOMER */

.customer-info {
    display: flex;

    align-items: center;

    gap: 10px;
}

.customer-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #ede9fe;

    color: #6366f1;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 700;
}

.customer-info strong {
    display: block;

    color: #111827;

    font-size: 13px;

    margin-bottom: 3px;
}

.customer-info span {
    display: block;

    color: #9ca3af;

    font-size: 10px;
}


/* AMOUNT */

.amount {
    color: #111827 !important;

    font-weight: 600;
}


/* STATUS */

.status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 600;
}

.status.completed {
    color: #15803d;

    background: #dcfce7;
}

.status.pending {
    color: #b45309;

    background: #fef3c7;
}

.status.cancelled {
    color: #dc2626;

    background: #fee2e2;
}


/* FOOTER */

.transactions-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #f1f3f5;
}

.transactions-footer p {
    color: #9ca3af;

    font-size: 12px;
}

.view-all-btn {
    border: none;

    background: transparent;

    color: #6366f1;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.view-all-btn:hover {
    color: #4f46e5;

    transform: translateX(3px);
}
/* =========================
   CUSTOMERS & PROJECTS
========================= */

.customers-projects-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin-top: 25px;

    margin-bottom: 40px;
}


/* CARDS */

.customers-card,
.projects-card {
    background: white;

    padding: 25px;

    border-radius: 16px;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05);
}


/* HEADER */

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;
}

.section-header h3 {
    color: #111827;

    font-size: 18px;

    margin-bottom: 5px;
}

.section-header p {
    color: #9ca3af;

    font-size: 12px;
}


/* VIEW BUTTON */

.view-btn {
    border: none;

    background: #f3f4f6;

    color: #6366f1;

    padding: 8px 13px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.view-btn:hover {
    background: #6366f1;

    color: white;
}


/* =========================
   CUSTOMER LIST
========================= */

.customer-list {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.customer-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 5px;

    border-bottom: 1px solid #f3f4f6;
}

.customer-row:last-child {
    border-bottom: none;
}


/* CUSTOMER AVATARS */

.purple-avatar {
    background: #ede9fe;

    color: #6366f1;
}

.blue-avatar {
    background: #dbeafe;

    color: #2563eb;
}

.green-avatar {
    background: #dcfce7;

    color: #16a34a;
}

.orange-avatar {
    background: #ffedd5;

    color: #ea580c;
}


/* CUSTOMER VALUE */

.customer-value {
    text-align: right;
}

.customer-value strong {
    display: block;

    color: #111827;

    font-size: 13px;

    margin-bottom: 3px;
}

.customer-value span {
    color: #9ca3af;

    font-size: 10px;
}


/* =========================
   PROJECTS
========================= */

.project-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.project-item {
    display: flex;

    align-items: center;

    gap: 13px;
}

.project-icon {
    width: 42px;

    height: 42px;

    flex-shrink: 0;

    background: #f3f4f6;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}

.project-details {
    flex: 1;
}

.project-title {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 4px;
}

.project-title strong {
    color: #111827;

    font-size: 13px;
}

.project-title span {
    color: #6366f1;

    font-size: 11px;

    font-weight: 600;
}

.project-details p {
    color: #9ca3af;

    font-size: 10px;

    margin-bottom: 8px;
}


/* PROGRESS */

.progress {
    width: 100%;

    height: 6px;

    background: #f3f4f6;

    border-radius: 20px;

    overflow: hidden;
}

.progress-bar {
    height: 100%;

    border-radius: 20px;

    transition: width 0.5s ease;
}

.purple-progress {
    background: #6366f1;
}

.blue-progress {
    background: #3b82f6;
}

.green-progress {
    background: #22c55e;
}

.orange-progress {
    background: #f97316;
}
.reports-actions-section {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    grid-template-areas:
        "reports quick";

    gap: 25px;

    margin-top: 25px;
    margin-bottom: 40px;

    direction: ltr;
}
.reports-card {
    grid-area: reports;
}

.quick-actions-card {
    grid-area: quick;
}

/* =========================
   REPORTS
========================= */

.reports-card,
.quick-actions-card {
    background: white;

    padding: 25px;

    border-radius: 16px;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05);
}


.generate-btn {
    border: none;

    background: #6366f1;

    color: white;

    padding: 10px 14px;

    border-radius: 9px;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.generate-btn:hover {
    background: #4f46e5;

    transform: translateY(-2px);
}


/* REPORT GRID */

.reports-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


.report-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px;

    border: 1px solid #f1f3f5;

    border-radius: 12px;

    transition: 0.3s;
}

.report-item:hover {
    border-color: #e0e7ff;

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.04);
}


/* REPORT ICON */

.report-icon {
    width: 40px;

    height: 40px;

    flex-shrink: 0;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;
}

.purple-report {
    background: #ede9fe;
}

.blue-report {
    background: #dbeafe;
}

.green-report {
    background: #dcfce7;
}

.orange-report {
    background: #ffedd5;
}


/* REPORT CONTENT */

.report-content {
    flex: 1;
}

.report-content h4 {
    color: #111827;

    font-size: 12px;

    margin-bottom: 4px;
}

.report-content p {
    color: #9ca3af;

    font-size: 9px;

    line-height: 1.4;

    margin-bottom: 5px;
}

.report-content span {
    color: #a1a1aa;

    font-size: 8px;
}


/* VIEW */

.report-view {
    border: none;

    background: #f5f3ff;

    color: #6366f1;

    padding: 6px 9px;

    border-radius: 6px;

    font-size: 9px;

    cursor: pointer;
}


/* =========================
   QUICK ACTIONS
========================= */

.quick-actions {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.quick-action {
    width: 100%;

    border: 1px solid #f1f3f5;

    background: white;

    padding: 13px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    gap: 12px;

    text-align: left;

    cursor: pointer;

    transition: 0.3s;
}

.quick-action:hover {
    border-color: #e0e7ff;

    background: #fafaff;

    transform: translateX(3px);
}


/* QUICK ICON */

.quick-icon {
    width: 38px;

    height: 38px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    flex-shrink: 0;
}

.purple-quick {
    background: #ede9fe;
}

.blue-quick {
    background: #dbeafe;
}

.green-quick {
    background: #dcfce7;
}

.orange-quick {
    background: #ffedd5;
}


/* QUICK TEXT */

.quick-action div:nth-child(2) {
    flex: 1;
}

.quick-action strong {
    display: block;

    color: #111827;

    font-size: 12px;

    margin-bottom: 3px;
}

.quick-action span {
    display: block;

    color: #9ca3af;

    font-size: 9px;
}

.quick-action b {
    color: #9ca3af;

    font-size: 15px;

    transition: 0.3s;
}

.quick-action:hover b {
    color: #6366f1;

    transform: translateX(3px);
}
/* =========================
   NOTIFICATIONS & SETTINGS
========================= */

.bottom-settings-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin-top: 25px;

    margin-bottom: 50px;
}


/* CARDS */

.notifications-card,
.settings-card {
    background: white;

    padding: 25px;

    border-radius: 16px;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05);
}


/* =========================
   NOTIFICATIONS
========================= */

.notification-list {
    display: flex;

    flex-direction: column;
}

.notification-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 5px;

    border-bottom: 1px solid #f3f4f6;

    position: relative;
}

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


.notification-icon {
    width: 40px;

    height: 40px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    font-size: 16px;
}

.purple-notification {
    background: #ede9fe;
}

.blue-notification {
    background: #dbeafe;
}

.green-notification {
    background: #dcfce7;
}

.orange-notification {
    background: #ffedd5;
}


.notification-text {
    flex: 1;
}

.notification-text strong {
    display: block;

    color: #111827;

    font-size: 12px;

    margin-bottom: 4px;
}

.notification-text p {
    color: #6b7280;

    font-size: 10px;

    margin-bottom: 4px;
}

.notification-text span {
    color: #a1a1aa;

    font-size: 9px;
}


.notification-dot {
    width: 7px;

    height: 7px;

    background: #6366f1;

    border-radius: 50%;

    flex-shrink: 0;
}


/* =========================
   SETTINGS
========================= */

.settings-list {
    display: flex;

    flex-direction: column;
}

.setting-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 15px 5px;

    border-bottom: 1px solid #f3f4f6;
}

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


.setting-info {
    display: flex;

    align-items: center;

    gap: 12px;
}

.setting-icon {
    width: 38px;

    height: 38px;

    background: #f3f4f6;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;
}

.setting-info strong {
    display: block;

    color: #111827;

    font-size: 12px;

    margin-bottom: 3px;
}

.setting-info span {
    color: #9ca3af;

    font-size: 9px;
}


/* =========================
   TOGGLE SWITCH
========================= */

.switch {
    position: relative;

    width: 42px;

    height: 23px;

    flex-shrink: 0;
}

.switch input {
    opacity: 0;

    width: 0;

    height: 0;
}

.slider {
    position: absolute;

    cursor: pointer;

    inset: 0;

    background: #d1d5db;

    border-radius: 30px;

    transition: 0.3s;
}

.slider::before {
    content: "";

    position: absolute;

    width: 17px;

    height: 17px;

    left: 3px;

    top: 3px;

    background: white;

    border-radius: 50%;

    transition: 0.3s;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
    background: #6366f1;
}

.switch input:checked + .slider::before {
    transform: translateX(19px);
}
/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1100px) {

    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .customers-projects-section {
        grid-template-columns: 1fr;
    }

    .reports-actions-section {
        grid-template-columns: 1fr;
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }

    .sidebar .logo {
        font-size: 18px;
        text-align: center;
    }

    .sidebar nav a {
        font-size: 0;
        justify-content: center;
    }

    .sidebar nav a::before {
        font-size: 18px;
    }

    .sidebar-bottom {
        display: none;
    }

    .main-content {
        margin-left: 70px;
        padding: 20px;
    }

    .top-navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .navbar-right {
        width: 100%;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .customer-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .transactions-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .transaction-actions {
        width: 100%;
    }

    .transaction-search {
        flex: 1;
    }

    .transaction-search input {
        width: 100%;
    }

    .bottom-settings-section {
        grid-template-columns: 1fr;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 500px) {

    .sidebar {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .navbar-right {
        flex-wrap: wrap;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .profile {
        display: none;
    }

    .welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .chart-card,
    .customer-chart-card,
    .transactions-card,
    .customers-card,
    .projects-card,
    .reports-card,
    .quick-actions-card,
    .notifications-card,
    .settings-card {
        padding: 18px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .transaction-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .transaction-filter {
        width: 100%;
    }

    .customer-row {
        gap: 10px;
    }

    .customer-value {
        min-width: 70px;
    }

    .project-title strong {
        font-size: 11px;
    }

    .notification-text p {
        line-height: 1.4;
    }

}
/* =========================
   DARK MODE
========================= */

body.dark-mode {
    background-color: #111827;
    color: #f9fafb;
}

body.dark-mode .main-content {
    background-color: #111827;
}

body.dark-mode .card,
body.dark-mode .reports-card,
body.dark-mode .quick-actions-card,
body.dark-mode .notifications-card,
body.dark-mode .stat-card,
body.dark-mode .transactions-card,
body.dark-mode .customers-card,
body.dark-mode .settings-card,
body.dark-mode .chart-card,
body.dark-mode .analytics-section {
    background-color: #1f2937;
    color: #f9fafb;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode span,
body.dark-mode strong {
    color: inherit;
}
body.dark-mode input {
    background-color: #374151;
    color: #ffffff;
    border-color: #4b5563;
}
/* ===============================
   CUSTOMER MODAL
   =============================== */

.customer-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.customer-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.customer-modal-content h2 {
    margin-bottom: 25px;
    color: #111827;
}

.customer-modal-info p {
    margin: 15px 0;
    color: #6b7280;
}

.customer-modal-info strong {
    color: #111827;
    margin-right: 8px;
}

.customer-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
}

.customer-modal-close:hover {
    color: #111827;
}
/* ===============================
   MOBILE MENU
   =============================== */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}


/* Mobile */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-navbar {
        padding: 15px;
    }

}
/* ===============================
   ALL CUSTOMERS MODAL
   =============================== */

.all-customers-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);

    align-items: center;
    justify-content: center;

    z-index: 99999;
}

.all-customers-modal-content {
    position: relative;

    width: 90%;
    max-width: 600px;
    max-height: 80vh;

    background: #ffffff;

    padding: 30px;
    border-radius: 18px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    overflow-y: auto;
}

.all-customers-modal-content h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #111827;
}

.all-customers-subtitle {
    margin: 0 0 25px;
    color: #6b7280;
    font-size: 16px;
}

/* Customer list */

.all-customers-list {
    display: flex;
    flex-direction: column;
}

.all-customer-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    align-items: center;
    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid #e5e7eb;
}

.all-customer-item strong {
    color: #111827;
    font-size: 17px;
}

.all-customer-item span {
    color: #6b7280;
    font-size: 15px;
}

.all-customer-item b {
    color: #111827;
    font-size: 17px;
    text-align: right;
}

/* Close button */

.all-customers-modal-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    color: #6b7280;

    cursor: pointer;
}

.all-customers-modal-close:hover {
    color: #111827;
}

/* Mobile */

@media (max-width: 600px) {

    .all-customers-modal-content {
        width: 90%;
        padding: 25px 20px;
    }

    .all-customer-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .all-customer-item b {
        text-align: left;
    }

}
/* ===============================
   FINAL MOBILE MENU FIX
   =============================== */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 2001;
    }

    .sidebar {
        width: 250px;
        padding: 30px 20px;
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 2000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar nav a {
        font-size: 16px;
        display: block;
        justify-content: initial;
    }

    .sidebar-bottom {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        color: white;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
}
/* ===============================
   NOTIFICATION DROPDOWN
   =============================== */

.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.notification-dropdown.show {
    display: block;
}

.notification-dropdown h3 {
    margin: 0 0 15px;
    color: #111827;
}

.notification-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.notification-item strong {
    display: block;
    color: #111827;
    margin-bottom: 5px;
}

.notification-item p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
/* ===============================
   PROFILE DROPDOWN
   =============================== */

.profile-wrapper {
    position: relative;
}

.profile {
    cursor: pointer;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    width: 230px;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown-header {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

.profile-dropdown-header strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}

.profile-dropdown-header span {
    color: #6b7280;
    font-size: 13px;
}

.profile-dropdown-item {
    width: 100%;
    padding: 11px 12px;
    border: none;
    background: transparent;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.profile-dropdown-item:hover {
    background: #f3f4f6;
}

.logout-item {
    color: #dc2626;
}