  @import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap');

   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        a {
            text-decoration: none;
        }

        li {
            list-style: none;
        }

        :root {
            --poppins: 'Poppins', sans-serif;
            --lato: 'Lato', sans-serif;
            --light: #F9F9F9;
            --blue: #3C91E6;
            --light-blue: #CFE8FF;
            --grey: #eee;
            --dark-grey: #AAAAAA;
            --dark: #342E37;
            --red: #DB504A;
            --yellow: #FFCE26;
            --light-yellow: #FFF2C6;
            --orange: #FD7238;
            --light-orange: #FFE0D3;
        }

        html {
            overflow-x: hidden;
        }

        body {
            background: var(--grey);
            overflow-x: hidden;
            font-family: var(--lato);
        }

        /* SIDEBAR */
        #sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 220px;
            height: 100%;
            background: var(--light);
            z-index: 2000;
            font-family: var(--lato);
            transition: .3s ease;
            overflow-x: hidden;
            scrollbar-width: none;
        }

        #sidebar::--webkit-scrollbar {
            display: none;
        }

        #sidebar.hide {
            width: 60px;
        }

        #sidebar .brand {
            font-size: 24px;
            font-weight: 700;
            height: 56px;
            display: flex;
            align-items: center;
            color: var(--blue);
            position: sticky;
            top: 0;
            left: 0;
            background: var(--light);
            z-index: 500;
            padding-bottom: 20px;
            box-sizing: content-box;
        }

        #sidebar .brand .bx {
            min-width: 60px;
            display: flex;
            justify-content: center;
        }

        #sidebar .side-menu {
            width: 100%;
            margin-top: 48px;
        }

        #sidebar .side-menu li {
            height: 48px;
            background: transparent;
            margin-left: 6px;
            border-radius: 48px 0 0 48px;
            padding: 4px;
        }

        #sidebar .side-menu li.active {
            background: var(--grey);
            position: relative;
        }

        #sidebar .side-menu li.active::before {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            top: -40px;
            right: 0;
            box-shadow: 20px 20px 0 var(--grey);
            z-index: -1;
        }

        #sidebar .side-menu li.active::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            bottom: -40px;
            right: 0;
            box-shadow: 20px -20px 0 var(--grey);
            z-index: -1;
        }

        #sidebar .side-menu li a {
            width: 100%;
            height: 100%;
            background: var(--light);
            display: flex;
            align-items: center;
            border-radius: 48px;
            font-size: 16px;
            color: var(--dark);
            white-space: nowrap;
            overflow-x: hidden;
        }

        #sidebar .side-menu.top li.active a {
            color: var(--blue);
        }

        #sidebar.hide .side-menu li a {
            width: calc(48px - (4px * 2));
            transition: width .3s ease;
        }

        #sidebar .side-menu li a.logout {
            color: var(--red);
        }

        #sidebar .side-menu.top li a:hover {
            color: var(--blue);
        }

        #sidebar .side-menu li a .bx {
            min-width: calc(60px - ((4px + 6px) * 2));
            display: flex;
            justify-content: center;
            font-size: 20px;
        }

        /* CONTENT */
        #content {
            position: relative;
            width: calc(100% - 220px);
            left: 220px;
            transition: .3s ease;
        }

        #sidebar.hide ~ #content {
            width: calc(100% - 60px);
            left: 60px;
        }

        /* NAVBAR */
        #content nav {
            height: 56px;
            background: var(--light);
            padding: 0 24px;
            display: flex;
            align-items: center;
            grid-gap: 24px;
            font-family: var(--lato);
            position: sticky;
            top: 0;
            left: 0;
            z-index: 1000;
        }

        #content nav::before {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            bottom: -40px;
            left: 0;
            border-radius: 50%;
            box-shadow: -20px -20px 0 var(--light);
        }

        #content nav a {
            color: var(--dark);
        }

        #content nav .bx.bx-menu {
            cursor: pointer;
            color: var(--dark);
        }

        #content nav .nav-link {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
        }

        #content nav .switch-mode {
            display: block;
            min-width: 50px;
            height: 25px;
            border-radius: 25px;
            background: var(--grey);
            cursor: pointer;
            position: relative;
        }

        #content nav .switch-mode::before {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            bottom: 2px;
            width: calc(25px - 4px);
            background: var(--blue);
            border-radius: 50%;
            transition: all .3s ease;
        }

        #content nav #switch-mode:checked + .switch-mode::before {
            left: calc(100% - (25px - 4px) - 2px);
        }

        #content nav .profile img {
            width: 36px;
            height: 36px;
            object-fit: cover;
            border-radius: 50%;
        }

        body.dark {
            --light: #0C0C1E;
            --grey: #060714;
            --dark: #FBFBFB;
        }

        /* Profile & Dropdown Styles */
        .profile-icon-container {
            position: relative;
            display: inline-block;
        }

        .profile-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid var(--blue);
            object-fit: cover;
            transition: all 0.2s;
        }

        .profile-icon:hover {
            transform: scale(1.05);
            border-color: #93c5fd;
        }

        /* Dropdown */
        .dropdown {
            position: absolute;
            right: 0;
            top: 48px;
            width: 260px;
            background: var(--light);
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            display: none;
            z-index: 1000;
            padding: 0;
            overflow: hidden;
            border: 2px solid var(--grey);
        }

        .dropdown.active {
            display: block;
        }

        .dropdown-header {
            padding: 12px;
            background: var(--grey);
            border-bottom: 1px solid var(--grey);
        }

        .dropdown-profile {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .dropdown-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .dropdown-profile-info h3 {
            margin: 0;
            font-size: 14px;
            color: var(--dark);
        }

        .dropdown-profile-info p {
            margin: 0;
            font-size: 12px;
            color: var(--dark-grey);
        }

        .dropdown-menu {
            padding: 8px;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 8px;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            color: var(--dark);
            cursor: pointer;
            transition: background 0.2s;
            font-size: 14px;
        }

        .dropdown-item:hover {
            background: var(--grey);
        }

        .dropdown-item.logout {
            color: var(--red);
        }

        .dropdown-item.logout:hover {
            background: var(--red);
            color: var(--light);
        }

        /* Modal Overlay */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-profile {
            background: var(--light);
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
        }

        .modal-popup {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid var(--blue);
            background: var(--blue);
        }

        .modal-popup h2 {
            color: white;
            font-size: 18px;
            margin: 0;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 30px;
            cursor: pointer;
            line-height: 1;
        }

        .modal-body {
            padding: 16px;
            color: var(--dark);
        }

        .modal-body label {
            color: var(--dark);
        }

        .modal-body h3 {
            color: var(--dark);
        }

        /* Profile Picture Section */
        .profile-picture-section {
            text-align: center;
            margin-bottom: 24px;
        }

        .profile-picture-wrapper {
            position: relative;
            display: inline-block;
            margin-bottom: 8px;
        }

        .profile-picture-large {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--blue);
            display: block;
            margin: 0 auto;
        }

        .camera-btn {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 36px;
            height: 36px;
            background: var(--blue);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        }

        .camera-btn:hover {
            background: #2563eb;
            transform: scale(1.1);
        }

        input[type="file"] {
            display: none;
        }

        /* Password Input & Eye Icon */
        .password-input-wrapper {
            position: relative;
            width: 100%;
        }

        .form-input {
            width: 100%;
            padding: 12px 42px 12px 16px;
            background: var(--grey);
            border: 2px solid var(--grey);
            border-radius: 8px;
            color: var(--dark);
            font-size: 14px;
            transition: all 0.2s;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .toggle-password {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .toggle-password:hover {
            color: var(--dark);
        }

        /* Success message */
        .success-message {
            background: #10b981;
            color: white;
            padding: 10px;
            border-radius: 8px;
            display: none;
            margin-bottom: 12px;
        }

        .success-message.show {
            display: flex;
        }

        .form-hint.info {
            margin-top: 8px;
            font-size: 12px;
            color: var(--dark-grey);
            padding-left: 16px;
        }

        /* MAIN */
        #content main {
            width: 100%;
            padding: 36px 24px;
            font-family: var(--poppins);
            max-height: calc(100vh - 56px);
            overflow-y: auto;
        }

        #content main .head-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            grid-gap: 16px;
            flex-wrap: wrap;
        }

        #content main .head-title .left h1 {
            font-size: 36px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--dark);
        }

        #content main .head-title .left .breadcrumb {
            display: flex;
            align-items: center;
            grid-gap: 16px;
        }

        #content main .head-title .left .breadcrumb li {
            color: var(--dark);
        }

        #content main .head-title .left .breadcrumb li a {
            color: var(--dark-grey);
            pointer-events: none;
        }

        #content main .head-title .left .breadcrumb li a.active {
            color: var(--blue);
            pointer-events: unset;
        }

        /* Stats Cards */
        #content main .box-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            grid-gap: 24px;
            margin-top: 36px;
        }

        #content main .box-info li {
            padding: 24px;
            background: var(--light);
            border-radius: 20px;
            display: flex;
            align-items: center;
            grid-gap: 24px;
        }

        #content main .box-info li .bx {
            width: 80px;
            height: 80px;
            border-radius: 10px;
            font-size: 36px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #content main .box-info li:nth-child(1) .bx {
            background: var(--light-blue);
            color: var(--blue);
        }

        #content main .box-info li:nth-child(2) .bx {
            background: var(--light-yellow);
            color: var(--yellow);
        }

        #content main .box-info li:nth-child(3) .bx {
            background: var(--light-orange);
            color: var(--orange);
        }

        #content main .box-info li:nth-child(4) .bx {
            background: var(--light-blue);
            color: var(--blue);
        }

        #content main .box-info li .text h3 {
            font-size: 24px;
            font-weight: 600;
            color: var(--dark);
        }

        #content main .box-info li .text p {
            color: var(--dark);
        }

        /* Content Sections */
        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
        }

        #content main .table-data {
            display: flex;
            flex-wrap: wrap;
            grid-gap: 24px;
            margin-top: 24px;
            width: 100%;
            color: var(--dark);
        }

        #content main .table-data > div {
            border-radius: 20px;
            background: var(--light);
            padding: 24px;
            overflow-x: auto;
            width: 100%;
        }

        #content main .table-data .head {
            display: flex;
            align-items: center;
            grid-gap: 16px;
            margin-bottom: 24px;
        }

        #content main .table-data .head h3 {
            margin-right: auto;
            font-size: 24px;
            font-weight: 600;
        }

        /* Buttons */
        .btn-primary {
            padding: 10px 20px;
            background: var(--blue);
            color: white;
            border: none;
            border-radius: 36px;
            cursor: pointer;
            font-weight: 500;
        }

        .btn-primary:hover {
            background: #003d80;
        }

        .btn-success {
            padding: 10px 20px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 36px;
            cursor: pointer;
            font-weight: 500;
        }

        .btn-danger {
            padding: 8px 16px;
            background: var(--red);
            color: white;
            border: none;
            border-radius: 36px;
            cursor: pointer;
            font-weight: 500;
            font-size: 14px;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--dark);
            font-weight: 600;
        }

        .form-control {
            width: 100%;
            padding: 12px;
            border: 2px solid var(--grey);
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
            background: var(--light);
            color: var(--dark);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--blue);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 100px;
        }

        /* Feature Editor */
        .feature-editor {
            border: 2px solid var(--grey);
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            background: var(--light);
        }

        .feature-editor-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .feature-editor-header h3 {
            font-size: 18px;
            color: var(--dark);
            font-weight: 600;
        }

        /* Alert */
        .alert {
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: none;
            font-weight: 500;
        }

        .alert.show {
            display: block;
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
        }

        .alert-error {
            background: #f8d7da;
            color: #721c24;
        }

        /* Section Backgrounds */
        .section-bg {
            background: var(--grey);
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
        }

        .section-bg h3 {
            color: var(--dark);
            margin-bottom: 15px;
            font-size: 18px;
            font-weight: 600;
        }

        @media screen and (max-width: 768px) {
            #sidebar {
                width: 60px;
            }

            #content {
                width: calc(100% - 60px);
                left: 60px;
            }

            #content main .box-info {
                grid-template-columns: 1fr;
            }
        }

        .analytics-box {
  background: var(--panel, #fff);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.analytics-box .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-box .head h3 {
  font-size: 18px;
  font-weight: 700;
}

.analytics-box .head span {
  color: #777;
  font-size: 13px;
}

.chart-container {
  position: relative;
  height: 260px;
  margin-top: 10px;
}

.analytics-summary {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 20px;
}

.analytics-summary h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.analytics-summary p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #777;
}

.positive {
  color: #4CAF50;
}