   /* --- 1. GLOBAL RESET & FOUNDATION --- */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 :root {
     --sidebar-width: 300px;
     /* --header-bg: linear-gradient(135deg, #1741fa 0%, #f8101b 100%); */
     --header-bg: linear-gradient(135deg, #007bff,#00c6ff); 
     --nav-bg: #182439;
     --primary-green: #10b981;
       --active-green: #05548b;
     --sidebar-bg: #1a202c;
     --sidebar-hover: #2d3748;
     --text-primary: #f7fafc;
     --text-secondary: #cbd5e0;
     --border-color: #4a5568;
 }

 html,
 body {
     height: 100vh;
     overflow: hidden;
     background-color: #000000;
 }

 /* --- 2. GRID LAYOUT --- */
 .container {
     display: grid;
     height: 100vh;
     grid-template-columns: var(--sidebar-width) 1fr;
     grid-template-rows: auto auto 1fr auto;
     grid-template-areas:
         "header header"
         "navigation navigation"
         "sidebar main"
 }

 html,
 body,
 .container,
 main {
     overflow-x: hidden;
 }

 /* --- 3. HEADER & TEXT EFFECTS --- */
 header {
     grid-area: header;
     background: var(--header-bg);
     color: #fff;
     min-height: 110px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
     padding: 15px;
 }

 header h2 {
     font-size: clamp(0.8rem, 3vw, 2.5rem);
     font-weight: 700;
     letter-spacing: 2px;
     -webkit-box-reflect: below -10px linear-gradient(transparent, rgba(255, 255, 255, 0.25));
 }

 header h2 span {
     display: inline-block;
     transition: 0.3s transform ease, 0.3s color ease;
     cursor: pointer;
    font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;

 }

 header h2 span:hover {
     color: #f3f707;
     transform: translateY(-8px) rotate(15deg) scale(1.1);
 }

 /* --- 4. NAVIGATION BAR --- */
 .top-navigation {
     grid-area: navigation;
     background: var(--nav-bg);
     padding: 12px 20px;
     display: flex;
     /* border-bottom: 3px solid var(--primary-green); */
     justify-content: space-between;
     align-items: center;
     color: white;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     gap: 10px;
 }

 .top-navigation .logo {
     height: 40px;
     transition: 0.3s transform ease;
 }

 .top-navigation .logo:hover {
     transform: scale(1.05);
 }

.mob{
    order: 3;
}

 .menu-toggle {
     display: none;
     background: none;
     border: none;
     color: white;
     font-size: 24px;
     cursor: pointer;
     transition: 0.3s;
 }

 .menu-toggle:hover {
     transform: scale(1.1);
 }

 #openTab{
     background: var(--primary-green);
     color: white;
     border: none;
     padding: 10px 18px;
     border-radius: 25px;
     cursor: pointer;
     transition: 0.3s ease;
     font-weight: 600;
     font-size: 13px;
     box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
 }

 #pageTitle {
     flex: 1;
     text-align: center;
     font-weight: 600;
     font-size: 15px;
     color: var(--text-primary);
 }

 #openTab:hover {
     background: var(--active-green);
     transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
 }

 /* --- 5. SIDEBAR (SCROLLABLE) --- */
 .sidebar {
     grid-area: sidebar;
     background: var(--sidebar-bg);
     color: var(--text-primary);
     padding: 15px;
     overflow-y: auto;
     border-right: 3px solid var(--border-color);
     transition: 0.3s;
 }

 .sidebar h3 {
     font-size: 13px;
     /* background: linear-gradient(155deg,#0a12ea 0%, #820202 100%); */
   background-color: var(--primary-green);  
     padding: 10px;
     margin: 15px 0 10px 0;
     text-align: center;
     border-radius: 8px;
     font-weight: 700;
     letter-spacing: 0.5px;
     text-transform: uppercase;
     box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
 }

 .sidebar .logo {
     display: none;
     border-radius: 8px;
     margin-bottom: 15px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
 }

 .project-list {
     list-style: none;
 }

 .project-list a {
     display: block;
     padding: 10px 12px;
     margin: 6px 0;
     background: var(--sidebar-hover);
     color: var(--text-secondary);
     text-decoration: none;
     border-radius: 8px;
     font-size: 13px;
     transition: 0.3s ease;
     border-left: 3px solid transparent;
     font-weight: 400;
 }

 .project-list a:hover {
     background: #374151;
     padding-left: 16px;
     border-left-color: var(--primary-green);
     color: var(--text-primary);
 }

 .project-list a.active {
     /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
     background-color: var(--active-green);
     color: white;
     border-left-color: #ffd700;
     box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
 }

 /* --- 6. MAIN CONTENT & IFRAME --- */
 main {
     grid-area: main;
     /* display: flex;
     flex-direction: column; */
     padding: 0;
     background: #000000;
     overflow-y: auto;
     margin: 0;
 }


 iframe {
     width: 100%;
     height: 100%;
     border: none;
     display: block;
     margin: 0;
 }


 /* --- 7. FOOTER --- */
 footer {
     grid-area: footer;
     background: #222;
     color: #888;
     padding: 10px;
     text-align: center;
     font-size: 12px;
 }

 .quicklink a {
     color: var(--active-green);
     text-decoration: none;
     margin: 0 5px;
 }

 /* --- SIDEBAR FOOTER DESIGN --- */
 .sidebar-footer {
     margin-top: 30px;
     padding-top: 20px;
     border-top: 2px solid var(--border-color);
     text-align: center;
 }

 .sidebar-quicklinks p {
     color: #9ca3af;
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 1.5px;
     margin-bottom: 10px;
     font-weight: 700;
 }
 .sidebar-quicklinks a{color: var(--active-green);}
 .copyright {
     margin-top: 15px;
     padding: 10px;
     font-size: 11px;
     color: #6b7280;
     line-height: 1.5;
 }

 /* Remove the old footer grid area if you aren't using the bottom footer anymore */
 .container {
     grid-template-rows: auto auto 1fr;
     /* Removed the last 'auto' row */
     grid-template-areas:
         "header header"
         "navigation navigation"
         "sidebar main";
 }
/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background:rgb(131, 131, 131);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
    transition: 0.3s;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #bcea66;
}

/* Custom Scrollbar for Main Content */
main::-webkit-scrollbar,
iframe::-webkit-scrollbar {
    width: 4px;
}

main::-webkit-scrollbar-track,
iframe::-webkit-scrollbar-track {
    background: rgb(131, 131, 131);
}

main::-webkit-scrollbar-thumb,
iframe::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
    transition: 0.3s;
}

main::-webkit-scrollbar-thumb:hover,
iframe::-webkit-scrollbar-thumb:hover {
    background: #bcea66;
}

/* Firefox scrollbar styling */
main {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) rgb(131, 131, 131);
}

/* --- 8. BADGE STYLING --- */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    vertical-align: middle;
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
}

/* --- 9. SEARCH CONTAINER STYLING --- */
.search-container {
    margin: 8px 0 10px 0;
    display: block;
}

.project-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: rgba(45, 55, 72, 0.5);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 12px;
    transition: 0.3s ease;
    box-sizing: border-box;
}

.project-search:focus {
    outline: none;
    background: rgba(45, 55, 72, 0.8);
    border-color: var(--primary-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.project-search::placeholder {
    color: var(--text-secondary);
}

.project-list li.hidden {
    display: none;
}

.sidebar h3.hidden {
    display: none;
}

 /* --- 8. RESPONSIVE DESIGN (MOBILE) --- */
 @media (max-width: 768px) {
     .container {
         grid-template-columns: 1fr;
         grid-template-areas:
             "header"
             "navigation"
             "main";
     }

     .menu-toggle {
         display: block;
     }

     .sidebar {
         position: fixed;
         /* top: 0; */
         bottom: 0;
         left: -100%;
         /* Fully hidden */
         width: 280px;
         height: 100vh;
         z-index: 1000;
         transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     }

     .sidebar.open {
         left: 0;
     }


     /* Overlay when menu is open */
     .overlay {
         position: fixed;
         inset: 0;
         background: rgba(0, 0, 0, 0.6);
         display: none;
         z-index: 999;
     }

     .overlay.show {
         display: block;
     }

     header {
         min-height: 55px;
         padding: 5px;
     }

     .sidebar .logo {
         display: none;
         width: auto;
         height: 40px;
         margin-bottom: 10px;
         border-radius: 8px;
     }

     #openTab{
         padding: 8px 14px;
         font-size: 12px;
     }

     #pageTitle {
         font-size: 14px;
         order: 3;
     }

     iframe {
        -webkit-overflow-style: none;
         -ms-overflow-style: none;
         scrollbar-width: none;
     }

     iframe::-webkit-scrollbar {
         display: none;
     }

     .top-navigation {
         justify-content: space-between;
     }

     .top-navigation .logo {
         display: none;
     }

     .desk {
         display: none;
     }

     .menu-toggle {
         order: 3;
     }

     /* Fix for mobile content overflow */
     main {
        background-color: black;
         height: auto;
         min-height: calc(100vh - 180px);
         overflow-y: auto;
     }

     iframe {
         height: auto;
         min-height: calc(100vh - 170px);
     }

 }
@media(max-width:900px) and (orientation:landscape){
    header{
        display: none;
    }
    .top-navigation{
        padding: 7px;
    }
    .top-navigation .logo{
        display: none;
    }
    .tab{
        padding: 1px;
    }
    .container{
        grid-template-columns: 250px 1fr;
    }
    .project-list a{
        font-size: smaller;
        padding: 5px;
    }
    .sidebar h3{
        font-size: 12px;
        padding: 5px;
    }
    #openTab, #openTab2, #pageTitle{
        font-size: 12px;
        padding: 5px 5px;
        margin-right: 10px;
    }
}









