  :root {
      --primary: #6c5ce7;
      --secondary: #a29bfe;
      --accent: #fd79a8;
      --success: #00b894;
      --warning: #fdcb6e;
      --danger: #e17055;
      --info: #0984e3;
      --light: #f8f9fa;
      --dark: #2d3436;
      --gray: #726f6f;
      --white: #ffffff;
      --border: #e5e5e5;
      --text: #000000;
    }

    /* Dark mode variables */
    .dark-mode {
      --primary: #a29bfe;
      --secondary: #6c5ce7;
      --accent: #ff9ff3;
      --light: #1d2125;
      --dark: #f8f9fa;
      --gray: #ececec;
      --white: #191b1c;
      --border: #ffffff;
      --text: #ffffff;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Inter', sans-serif;
    }

    body {
      background-color: var(--light);
      color: var(--dark);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      border-bottom: 1px solid var(--border);
      background: var(--white);
      box-shadow: 0 2px 15px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 100;
      width: 100%;
      transition: all 0.3s ease;
    }

    .text {
      color: var(--text);
    }

    .dark-mode header {
      box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    }

    .logo {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .logo i {
      font-size: 1.6rem;
    }

    .search {
      position: relative;
      width: 300px;
    }

    .search input {
      width: 100%;
      padding: 0.7rem 1rem 0.7rem 2.5rem;
      border-radius: 12px;
      border: 1px solid var(--border);
      outline: none;
      background-color: var(--light);
      transition: all 0.3s ease;
      color: var(--dark);
    }

    .search input:focus {
      background-color: var(--white);
      box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    }

    .dark-mode .search input:focus {
      background-color: var(--white);
    }

    .search i {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--gray);
    }

    .topbar-icons {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .icon-btn {
      position: relative;
      color: var(--gray);
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .icon-btn:hover {
      color: var(--primary);
    }

    .badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background-color: var(--accent);
      color: white;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.6rem;
      font-weight: 600;
    }

    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid var(--secondary);
      cursor: pointer;
    }

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .main {
      display: flex;
      flex-grow: 1;
      position: relative;
      transition: all 0.3s ease;
    }

    .sidebar {
      width: 80px;
      background: var(--white);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 2rem;
      border-right: 1px solid var(--border);
      position: fixed;
      top: 60px;
      left: 0;
      bottom: 0;
      z-index: 90;
      transition: all 0.3s ease;
    }

    .sidebar-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 2rem;
      color: var(--gray);
      fill: var(--gray);
      text-decoration: none;
      width: 100%;
      padding: 0.5rem 0;
      transition: all 0.3s ease;
      position: relative;
    }

    .sidebar-item i {
      font-size: 1.4rem;
      margin-bottom: 0.3rem;
    }

    .sidebar-item span {
      font-size: 0.7rem;
      font-weight: 500;
    }

    .sidebar-item.active, .sidebar-item:hover {
      color: var(--primary);
      border-right: 3px solid var(--primary);
      fill: var(--primary);
    }

    .content {
      flex: 1;
      padding: 2rem;
      min-height: calc(100vh - 60px);
      margin-left: 80px;
      margin-right: 320px;
      transition: all 0.3s ease;
    }

    .page-title {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      color: var(--dark);
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .page-title i {
      color: var(--primary);
    }

    .stats-container {
      display: flex;
      gap: 1.5rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .stat-card {
      background: var(--white);
      border-radius: 16px;
      padding: 1.5rem;
      box-shadow: 0 5px 15px rgba(0,0,0,0.03);
      min-width: 160px;
      flex: 1;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .dark-mode .stat-card {
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .stat-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

    .dark-mode .stat-card:hover {
      box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }

    .stat-number {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
      background: linear-gradient(to right, var(--primary), var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .stat-card:nth-child(2) .stat-number {
      background: linear-gradient(to right, var(--success), var(--info));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .stat-card:nth-child(3) .stat-number {
      background: linear-gradient(to right, var(--warning), var(--danger));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .stat-label {
      color: var(--gray);
      font-size: 0.9rem;
      font-weight: 500;
    }

    .divider {
      border-top: 1px solid var(--gray);
      margin: 1.5rem 0;
      opacity: 0.5;
    }

    .project-section {
      background: var(--white);
      border-radius: 16px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    }

    .dark-mode .project-section {
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .project-date {
      color: var(--gray);
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .project-date i {
      font-size: 1rem;
    }

    .project-title {
      font-weight: 600;
      margin-bottom: 0.3rem;
      font-size: 1.1rem;
      color: var(--dark);
    }

    .project-subtitle {
      color: var(--gray);
      font-size: 0.9rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .project-subtitle i {
      color: var(--accent);
    }

    .progress-container {
      display: flex;
      gap: 1.5rem;
      margin-bottom: 1rem;
    }

    .progress-item {
      flex: 1;
    }

    .progress-title {
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
      color: var(--gray);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .progress-title span {
      font-weight: 600;
      color: var(--dark);
    }

    .progress-bar {
      height: 8px;
      background: var(--light);
      border-radius: 4px;
      margin-bottom: 0.5rem;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      border-radius: 4px;
    }

    .progress-info {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      color: var(--gray);
    }

    .progress-info .days-left {
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .messages {
      width: 320px;
      background: var(--white);
      border-left: 1px solid var(--border);
      position: fixed;
      top: 60px;
      right: 0;
      bottom: 0;
      padding: 1.5rem;
      box-shadow: -2px 0 15px rgba(0,0,0,0.03);
      overflow-y: auto;
      z-index: 80;
      transition: all 0.3s ease;
    }

    .dark-mode .messages {
      box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    }

    .messages-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      position: sticky;
      top: 0;
      background: var(--white);
      padding: 1rem 0;
      z-index: 10;
      transition: all 0.3s ease;
    }

    .messages-header h3 {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--dark);
    }

    .messages-header i {
      color: var(--primary);
      cursor: pointer;
    }

    .message {
      margin-bottom: 1.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px dashed var(--gray);
    }

    .message:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .message-header {
      display: flex;
      align-items: center;
      margin-bottom: 0.5rem;
      gap: 0.8rem;
    }

    .message-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      overflow: hidden;
    }

    .message-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .message-user {
      font-weight: 600;
      color: var(--dark);
    }

    .message-time {
      font-size: 0.7rem;
      color: var(--gray);
      margin-left: auto;
    }

    .message-content {
      font-size: 0.85rem;
      color: var(--gray);
      line-height: 1.5;
      padding-left: 44px;
    }

    /* Chatbox specific styles */
    .chatbox-toggle {
      position: fixed;
      bottom: 75px;
      right: 20px;
      width: 60px;
      height: 60px;
      background: var(--primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
      z-index: 1000;
      display: none;
    }

    .chatbox-toggle i {
      transition: transform 0.3s ease;
    }

    .chatbox-toggle.active i {
      transform: rotate(180deg);
    }

    /* Mobile Navigation */
    .nav-bottom {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--white);
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
      z-index: 100;
    }

    .dark-mode .nav-bottom {
      box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

    .nav-items {
      display: flex;
      justify-content: space-around;
      padding: 0.8rem 0;
    }

    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--gray);
      text-decoration: none;
      font-size: 0.7rem;
      transition: all 0.3s ease;
    }

    .nav-item i {
      font-size: 1.2rem;
      margin-bottom: 0.3rem;
    }

    .nav-item.active, .nav-item:hover {
      color: var(--primary);
    }

    /* Apps Menu Styles */
    .apps-menu {
      position: absolute;
      left: 100%;
      bottom: 0;
      width: 300px;
      background: var(--white);
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.15);
      padding: 1rem;
      display: none;
      z-index: 1000;
      transform: translateX(10px);
    }

    .dark-mode .apps-menu {
      box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }

    .sidebar-item:hover .apps-menu {
      display: block;
    }

    .apps-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .app-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0.8rem;
      border-radius: 8px;
      transition: all 0.2s ease;
      cursor: pointer;
      text-decoration: none;
      color: var(--dark);
    }

    .app-item:hover {
      background-color: var(--light);
      transform: translateY(-2px);
    }

    .app-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      margin-bottom: 0.5rem;
    }

    .app-name {
      font-size: 0.7rem;
      text-align: center;
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
      .messages {
        width: 280px;
      }
      .content {
        margin-right: 280px;
      }
    }

    @media (max-width: 992px) {
      .messages {
        width: 250px;
      }
      .content {
        margin-right: 250px;
      }
    }

    @media (max-width: 768px) {
      header {
        padding: 1rem;
        border-bottom: 0px solid var(--border);
        background: var(--white);
      }

      .search {
        display: none;
      }

      .main {
        flex-direction: column;
        padding-bottom: 60px;
      }

      .sidebar {
        display: none;
      }

      .content {
        padding: 1.5rem 1rem;
        margin-left: 0;
        margin-right: 0;
      }

      .messages {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray);
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
        display: none;
      }

      .messages.active {
        display: block;
      }

      .stats-container {
        gap: 1rem;
      }

      .stat-card {
        min-width: calc(50% - 0.5rem);
      }

      .progress-container {
        flex-direction: column;
        gap: 1rem;
      }

      .nav-bottom {
        display: block;
      }

      .chatbox-toggle {
        display: flex;
      }

      /* Mobile styles for apps menu */
      .apps-menu {
        display: none !important; /* Force hide on mobile */
      }

      #des-menu-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
      }
    }

    @media (max-width: 480px) {
      .stat-card {
        min-width: 100%;
      }

      .page-title {
        font-size: 1.5rem;
      }
    }

    /* Dark Mode Transition Smoothing */
    body, header, .sidebar, .messages, .messages-header, 
    .stat-card, .project-section, .nav-bottom, .apps-menu {
      transition: background-color 0.3s ease, color 0.3s ease, 
                 border-color 0.3s ease, box-shadow 0.3s ease;
    }

    /* Dark Mode Toggle Button Styles */
    #darkModeToggle {
      background: transparent;
      border: none;
      color: var(--gray);
      cursor: pointer;
      font-size: 1.2rem;
      transition: color 0.3s ease;
      padding: 0.5rem;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #darkModeToggle:hover {
      color: var(--primary);
      background-color: rgba(108, 92, 231, 0.1);
    }

    .dark-mode #darkModeToggle {
      color: var(--accent);
    }