:root {
    --h1: bold 16px; 
    --h2: bold 14px;
    --p: 14px;
    --p2: 12px;
  
    /* Light mode colors */
    --gray100: hsl(0, 0%, 0%); /* Text (was white, now black) */
    --gray70: hsl(0, 0%, 40%); /* Secondary info (was dark gray, now light gray) */
    --gray20: #e0e0e0;
    --gray10: #f7f7f7;
    --gray0: hsl(0, 0%, 100%); /* Background (was black, now white) */
    
    --border-color: #0d0d0d19;
  
    background-color: var(--gray0);
    color: var(--gray100);
  }

p {
    font-size: var(--p);
    font-weight: var(--p);
    line-height: 1.4em;
    color: var(--gray70);
}

i {
    font-size: 18px;
    color: var(--gray70);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family:"Roboto", sans-serif;}
body { display: flex; flex-direction: column; height: 100vh; background: #f5f5f5;}
h2{
    font-weight: 600;
}
.main-platform-container {
    display: flex;
    height: 100%;
    overflow: hidden;
    max-width: 100%;
}
button {background-color: #f5f5f5; border: none; cursor: pointer;}
.sidebar {  
    position: static;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 6px;
    height: auto;
    width: 220px;
    z-index: 1000;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-toggle-btn {
    display: none;
}


.test-button {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-button i {
    font-size: 16px;
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.test-button p {
    margin: 0;
}
.test-button:hover {
    background-color: #e0e0e0;
}
.test-button:hover i {
    color: var(--gray100);
}
.test-button:hover p {
    color: var(--gray100);
}
.main-content {
    flex: 1;
    background: white;
    border-radius: 10px;
    border: 1px solid #ececf1;
    margin: 0 5px 0 0;
    height: 99%;
    max-width: 100%;            /* Prevent exceeding container width */
    box-sizing: border-box;     /* Include border in width calculation */
    overflow-y: auto;
}
.top-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 0rem 15px;
    }

    .nav-left, .nav-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-left{
        gap: 8px;
        }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fff;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    .dropdown-content p {
        padding: 0.5rem 1rem;
        color: #333;
        cursor: pointer;
    }

    .dropdown:hover .dropdown-content {
        display: block;
        z-index: 9999;
    }

    .dropdown {
    position: relative;
    display: inline-block;
    z-index: 9999;
  }

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
}

.dropdown-btn:hover {
    background-color: #e7e7e7;
    color: #333;
}

.dropdown-btn svg{
    width: 10px;
    height: 12px;
    color: #c0c0c0;
}
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 12px;
    z-index: 1;
    border: 1px solid #eee;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content button {
    width: 100%;
    background-color: #ffffff;
    color: var(--gray100);
    font-size: var(--p);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 16px;
    text-align: left;
    transition: all 0.3s ease;
  }

    .dropdown-content button:hover {
        background-color: #f5f5f5;
    }

    .products-dropdown .dropdown-content a {
        display: block;
        background-color: #ffffff;
        color: var(--gray100);
        font-size: var(--p);
        border-radius: 6px;
        text-decoration: none;
        padding: 8px 16px;
        transition: all 0.3s ease;
        font-family: 'Fira Code', monospace;
    }

    .dropdown-content a:hover {
        background-color: #f5f5f5;
    }

    .products-dropdown .dropdown-btn:hover {
        background-color: #e7e7e7;
        color: #28a745;
    }

    .products-dropdown .dropdown-content a:hover {
        background-color: #d4edda;
        color: #155724;
    }

    .active {
        background-color: #e3e3eb !important; /* Highlight color */
        color: #000000 !important;
        font-weight: bold;
    }
    .active>p{
        color: #000000 !important;
    }
    .active i{
        color: #000000 !important;
    }
@media (max-width: 900px) {
    .main-content{
        margin: 3px;
        width: 100%!important;
    }
    .top-nav{
        width: 100vw !important;
        padding: 0 8px;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 8px rgba(0,0,0,0.08);
        border-right: 1px solid #ececf1;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 99999;
    }
    .sidebar-toggle-btn {
        display: flex;
        z-index: 1100;
        border: none;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .sidebar .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
        padding: 0 8px;
    }
    .sidebar .sidebar-nav .profile-picture {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .profile-picture{
        display: none !important    ;
    }
    .test-button {
        height: 48px;
        padding: 0 16px;
    }
    .dropdown-content {
        min-width: 200px;
        max-width: 90vw;
    }
    header {
        padding: 12px 16px;
    }
}
@media (max-width: 480px) {
    .sidebar {
        width: 200px;
    }
    .test-button {
        height: 52px;
        padding: 0 12px;
    }
    .dropdown-content {
        min-width: 180px;
        max-width: 95vw;
    }
    .top-nav {
        padding: 0 4px;
    }
    .nav-left, .nav-right {
        gap: 0.5rem;
    }
}


/* For Header sections and buttons inside them */
    header {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px 24px;
        border-bottom: solid 1px #0d0d0d19;
        justify-content: space-between;
    }

    .title {
      font-size: clamp(20px, 2.5vw, 28px);
      font-weight: 700;
      letter-spacing: 0.2px;
      
    }

    .spacer { flex: 1; }

    .btn.primary {
      background: #111;
      color: white;
      border: none;
      padding: 0.45rem 1.1rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.9rem;
      transition: background 0.25s ease;
      font-weight: 600;
    }

    .btn.primary:hover {
      background: #222;
    }
    .btn.primary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
    .btn.success { background: linear-gradient(180deg, #1d2a25, #142019); border-color: #1f3b30; }
    .btn.danger { background: linear-gradient(180deg, #2a1d1d, #201414); border-color: #3b1f1f; }
