  /* Theme palette */
  :root {
    --teal: #2aa5a2;
    --teal-dark: #0c5c56;
    --navy: #161e2d;
    --cyan-light: #e0f7fa;
    --white: #ffffff;
    --text: #e0f7fa;
    --muted: rgba(224, 247, 250, 0.65);
    --border: rgba(224, 247, 250, 0.12);
    --shadow: rgba(0, 0, 0, 0.35);
  }

  /* General body */
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--navy);
    color: var(--text);
    margin: 0;
    padding: 0;
  }

  /* Layout helpers */
  .container {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 20px;
  }

  .card {
    background: rgba(12, 92, 86, 0.08);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
    padding: 16px 16px 8px 16px;
  }

  /* Navbar */
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--teal-dark);
    padding: 10px 20px;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  nav .logo {
    display: flex;
    align-items: center;
    
  }
  .logo-text{
      font-weight: 700;
      color: black;
      font-size: 1.8rem;
      letter-spacing: 0.3px;
      position: relative;
      bottom: 4px;
  }
  nav .logo img {
    height: 50px;
    width: 50px;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2));
  }

  nav .icons {
    display: flex;
    align-items: center;
    color: var(--cyan-light);
  }

  nav .icons i {
    font-size: 1.1rem;
    margin-left: 14px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
  }

  nav .icons i:hover {
    color: var(--white);
    transform: translateY(-1px);
  }

  /* Header */
  h1 {
    text-align: left;
    color: var(--white);
    margin: 16px 0 16px 0;
    font-size: 1.9rem;
    letter-spacing: 0.2px;
  }

  h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--cyan-light));
    border-radius: 2px;
    margin-top: 8px;
  }

  /* File tree */
  #file-tree {
    padding: 12px 6px 12px 6px;
  }

  ul {
    list-style: none;
    padding-left: 18px;
    margin: 0;
  }

  li {
    margin: 4px 0;
    position: relative;
  }

  /* Icons rendered via DOM, not pseudo-elements */
  .folder-btn .icon { display: inline-flex; width: 16px; color: var(--cyan-light); opacity: 0.9; }
  .file a i { color: var(--teal); margin-right: 6px; opacity: 0.9; }

  .folder {
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
    display: inline-block;
    color: var(--cyan-light);
    margin: 0;
  }

  .folder:hover {
    background: rgba(42, 165, 162, 0.18);
    color: var(--white);
    transform: translateX(1px);
  }

  .file a {
    color: var(--teal);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
  }

  .file a:hover {
    background: rgba(42, 165, 162, 0.12);
    color: var(--white);
    transform: translateX(1px);
  }

  /* Collapsible effect */
  ul ul {
    margin-left: 16px;
    border-left: 1px dashed var(--border);
    padding-left: 10px;
  }

  /* Optional: smooth collapse animation */
  ul ul {
    transition: max-height 0.2s ease-out;
    overflow: hidden;
  }

  /* Toolbar */
  .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .btn, .icon-btn {
    background: rgba(42, 165, 162, 0.12);
    border: 1px solid var(--border);
    color: var(--cyan-light);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
  }

  .btn:hover, .icon-btn:hover {
    background: rgba(42, 165, 162, 0.22);
    color: var(--white);
    transform: translateY(-1px);
  }

  .search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 92, 86, 0.18);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 10px;
  }

  .search input {
    background: transparent;
    border: none;
    color: var(--cyan-light);
    outline: none;
    width: 240px;
  }

  /* Breadcrumbs */
  .breadcrumbs {
    color: var(--muted);
    margin: 10px 0 14px 0;
    font-size: 0.95rem;
  }

  .crumb { cursor: pointer; color: var(--cyan-light); }
  .crumb:hover { color: var(--white); }
  .crumb-sep { margin: 0 6px; color: var(--muted); }

  /* Chevron and folder button */
  .folder-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: inherit;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
  }

  .folder-btn .chevron { width: 14px; display: inline-flex; transition: transform 0.2s ease; opacity: 0.9; }
  .folder.open .chevron { transform: rotate(90deg); }
  .folder .badge {
    margin-left: 6px;
    background: rgba(42, 165, 162, 0.18);
    color: var(--cyan-light);
    border: 1px solid var(--border);
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 999px;
  }

  /* Animations */
  .fade-in { animation: fadeIn 220ms ease both; }
  li { animation: itemIn 260ms ease both; }
  .expand { animation: growDown 180ms ease-in-out both; }
  .collapse { animation: growUp 160ms ease-in-out both; }

  @keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
  @keyframes itemIn { from { opacity: 0; transform: translateY(2px) } to { opacity: 1; transform: none } }
  @keyframes growDown { from { opacity: 0; transform: scaleY(0.95) } to { opacity: 1; transform: scaleY(1) } }
  @keyframes growUp { from { opacity: 1; height: auto } to { opacity: 0; height: 0 } }

  /* Ripple */
  .ripple {
    position: absolute;
    width: 12px; height: 12px;
    background: radial-gradient(circle, rgba(42,165,162,0.35) 0%, rgba(42,165,162,0.0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ripple 600ms ease-out forwards;
  }
  @keyframes ripple { from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8) } to { opacity: 0; transform: translate(-50%, -50%) scale(8) } }

  /* Skeleton */
  .skeleton { margin-bottom: 12px; }
  .skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    background-size: 200% 100%;
    border-radius: 8px;
    margin: 10px 0;
    animation: shimmer 1.1s infinite;
  }
  @keyframes shimmer { from { background-position: 200% 0 } to { background-position: 0 0 } }

  /* Context menu */
  .context-menu {
    position: absolute;
    background: var(--navy);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
    border-radius: 10px;
    padding: 6px;
    z-index: 1000;
  }
  .context-menu button {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--cyan-light);
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
  }
  .context-menu button:hover { background: rgba(42,165,162,0.18); color: var(--white); }

  /* Toasts */
  .toasts {
    position: fixed;
    right: 16px; bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1100;
  }
  .toast {
    background: rgba(12, 92, 86, 0.95);
    color: var(--white);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--shadow);
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .toast.show { opacity: 1; transform: translateY(0); }

  /* Header pulse */
  .pulse-accent:hover::after { animation: accentPulse 1.6s ease infinite; }
  @keyframes accentPulse { 0% { transform: scaleX(1) } 50% { transform: scaleX(1.12) } 100% { transform: scaleX(1) } }