/* Basic Reset and font */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  body {
    display: flex;
    height: 100vh;
    background-color: var(--primary);
  }

  /* Container for sidebar and main content */
  .layout-container {
    display: flex;
    width: 100%;
    height: 100%;
  }

  /* Sidebar */
        .sidebar {
            width: 160px;
            background-color: var(--sidebar-bg);
            padding: 20px 0;
            display: flex;
            flex-direction: column;
        }

        .logo {
            display: flex;
            align-items: center;
            padding: 0 20px;
            margin-bottom: 30px;
        }

        .logo-icon {
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            border-radius: 4px;
            margin-right: 10px;
            position: relative;
        }

        .logo-icon::after {
            content: 'P';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
            font-size: 14px;
        }

        .logo-text {
            font-size: 18px;
            font-weight: 600;
            color: white;
        }

        .nav-menu {
            list-style: none;
            flex-grow: 1;
        }

        .nav-item {
            margin-bottom: 8px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            color: #9ca3af;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s;
            border-radius: 8px;
            margin: 0 12px;
        }

        .nav-link:hover,
        .nav-link.active {
            background-color: #374151;
            color: white;
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            margin-right: 12px;
            opacity: 0.7;
        }

        .settings-section {
            padding: 20px;
            border-top: 1px solid #374151;
            margin-top: auto;
        }

        .settings-link {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            width: 134px;
            color: #9ca3af;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s;
            border-radius: 8px;
        }

        .settings-link:hover,
        .settings-link.active {
            background-color: #374151;
            color: white;
        }

  /* Main content area */
  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
  }

  /* Settings container */
  .settings-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
  }

  /* Settings menu and sections */
  .settingsbar {
    width: 250px;
    background-color: rgba(30, 30, 30, 0.3);
    padding: 30px 20px;
    border-radius: 10px;
  }

  .settingsbar h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
  }

  .spacing {
    margin-top: 20px;    /* space above the div */
    margin-bottom: 20px; /* space below the div */
  }


  .menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
  }

  .menu-item.active {
    color: #fff;
  }

  .menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #2070f0, #2b71e2);
    border-radius: 0 2px 2px 0;
  }

  .menu-item i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
  }

  /* Content sections */
  .content {
    flex: 1;
    margin-left: 20px;
    position: relative;
    max-width: calc(100% - 300px);
  }

  .content-section {
    opacity: 0;
    transform: translateX(20px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
  }

  .content-section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Section headers and paragraphs */
  .content-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
  }

    .content-section h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
  }

  .content-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
  }

  /* Buttons styling */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .btn-primary {
    background: linear-gradient(135deg, #2070f0, #2b71e2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(32, 112, 240, 0.3);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #1e68db, #2865cc);
    transform: translateY(-2px);
  }

  .btn-danger {
    background-color: #c62828;
    color: #fff;
  }

  .btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
  }

  select {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

input {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

  /* Switch toggle styles */
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  input:checked + .slider {
    background-color: #2196F3;
  }
  input:checked + .slider:before {
    transform: translateX(26px);
  }

  /* Responsive adjustments */
  @media(max-width: 768px) {
    body {
      flex-direction: column;
    }
    .layout-container {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      flex-direction: row;
      align-items: center;
      padding: 10px 0;
    }
    .settings-container {
      flex-direction: column;
      align-items: center;
    }
    .settingsbar {
      width: 100%;
      max-width: 100%;
      margin-bottom: 20px;
    }
    .content {
      max-width: 100%;
      margin-left: 0;
    }
  }