
/* Base styles same as before */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

#nav-bar {
  background-color: #2b2d42;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h3 {
  margin: 0;              /* remove browser default spacing */
  line-height: 1;         /* avoid extra vertical space */
  display: flex;
  align-items: center;    /* vertically center */
  font-size: 20px;        /* optional: adjust text size if needed */
}

.logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  transition: background 0.3s ease;
}

.nav-links a:hover {
  background-color: #8d99ae;
  border-radius: 5px;
}

.nav-links a.active {
  background-color: #8d99ae;
  border-radius: 5px;
}

/* Dropdown */
.dropdown {
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  margin-left: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* always under the dropdown row */
  left: 0;
  background-color: #2b2d42;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 5px;
  margin-top: 5px;
  z-index: 10;
  width: max-content; /* adjust width to content */
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 180px;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: white;
}

.dropdown-menu a:hover {
  background-color: #8d99ae;
  border-radius: 0;
}

/* Mobile */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #2b2d42;
    width: 100%;
    display: none;
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    justify-content: center;
    margin: 5px 0;
  }

  /* Keep Kids Zone + arrow in a fixed row */
  .dropdown {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: relative; /* dropdown menu will position absolute relative to this */
  }

  .dropdown-menu {
    position: absolute;
    top: 100%; /* always below the row */
    left: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin-top: 5px;
  }

  .dropdown-menu li {
    width: 100%;
  }
}







































* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    overflow-x: hidden;
    overflow-y: auto;   /* enables vertical scroll */
}

/* ===== SCALE WRAPPER ===== */
.scale-wrapper {
    width: 100%;
    overflow: hidden;
}

/* ===== DESIGN WIDTH ===== */
.container {
    width: 1200px;   /* Base design width */
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    transform-origin: top left;
}

/* ===== TITLE ===== */
h1 {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    gap: 40px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 200px;
    background: #eeeeee;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* ===== GRID ===== */
.content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    height: 120px;
    background: #e0e0e0;
    border-radius: 15px;
}

/* ==================================================
   TRUE PROPORTIONAL SQUEEZE
   ================================================== */

/* @media (max-width: 1200px) {
    .container {
        transform: scale(calc(100vw / 1200));
        width: calc(1200px * (100vw / 1200));
    }
} */


.container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
}

.layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 18%;              /* responsive */
    min-width: 120px;        /* prevents collapse */
    background: #eeeeee;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content {
    width: 82%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.card {
    height: 120px;
    background: #e0e0e0;
    border-radius: 15px;
}


/* ==================================================
   MOBILE STRUCTURE (LIKE YOUR DRAWING)
   ================================================== */

@media (max-width: 768px) {

    .container {
        width: 100%;
        padding: 20px;
        margin: 20px auto;
        transform: none;
    }

    .layout {
        display: flex;
        gap: 20px;
    }

    .sidebar {
        width: 110px;   /* slimmer sidebar */
        padding: 15px;
        gap: 15px;
    }

    .sidebar button {
        padding: 8px;
        font-size: 12px;
    }

    .content {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns */
        gap: 15px;
    }

    .card {
        height: 90px;
    }

    h1 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

.sidebar button.active {
    background: #333;
    color: white;
}






/* ============back button css============= */


.container{
    position: relative;
}

.back-btn{
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    border: none;
    background: #2b2d42;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.back-btn:hover{
    background:#8d99ae;
}

























/* ===== Attractive Colors Upgrade ===== */

/* Page background */
body{
    background: linear-gradient(135deg,#f0f2f5,#e6ecf5);
}

/* Title color */
h1{
    color:#2b2d42;
}

/* Sidebar */
.sidebar{
    background: linear-gradient(180deg,#edf2f4,#dfe6ee);
}

/* Sidebar buttons */
.sidebar button{
    background:#ffffff;
    transition: all 0.25s ease;
}

.sidebar button:hover{
    background:#8d99ae;
    color:white;
}

/* Active filter button */
.sidebar button.active{
    background:#2b2d42;
    color:white;
}

/* Cards */
.card{
    background: linear-gradient(145deg,#ffffff,#e6e9ef);
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover effect */
.card:hover{
    transform: translateY(-4px);
    box-shadow:0 8px 18px rgba(0,0,0,0.15);
}

/* Card button */
.card button{
    background:#2b2d42;
    color:white;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
}

.card button:hover{
    background:#8d99ae;
}

/* Container subtle shadow */
.container{
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}



/* =========================Backgorund colour================== */





/* Add a base background color for everything */
html, body {
    background-color: #f0f4f8;  /* light neutral background */
    /* keep existing flex setup */
    display: flex;
    flex-direction: column;
    min-height: 100%;
}






/* ===== Dark Theme Background ===== */

body{
    background: linear-gradient(135deg,#5f6edf,#2b2d42,#1b1d2b);
}

/* Container contrast on dark bg */
.container{
    background: #f8f9fb;
}

/* Sidebar darker tone */
.sidebar{
    background: #e2e6ec;
}

/* Cards brighter for contrast */
.card{
    background: #ffffff;
}




















/*======================Tools Icon Images=======================*/

.card {
    height: 120px;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card img{
    width: 100%;
    height: 70%;
    object-fit: contain;   /* keeps icon ratio and fits properly */
    padding: 10px;
}

.card button{
    width: 100%;
    border-radius: 0 0 15px 15px;
}














/* Tool card layout */
.card{
    height:120px;
    background:#ffffff;
    border-radius:15px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:space-between;
    padding:10px;
}

/* Tool icon */
.card img{
    width:60px;
    height:60px;
    object-fit:contain;
}

/* Button wrapper */
.card a{
    width:100%;
}

/* Test buttons */
.card button{
    width:100%;
    padding:8px 10px;
    border:none;
    border-radius:8px;
    background:#2b2d42;
    color:white;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.25s ease;
}

/* Hover effect */
.card button:hover{
    background:#8d99ae;
    transform:translateY(-1px);
}











/* ===========maybe it will be required for future================= */


 /* enable vertical scroll */

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto; 
}











.content{
    width: 82%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;

    max-height: 500px;   /* height of scroll area */
    overflow-y: auto;    /* vertical scroll */
}









.content::-webkit-scrollbar{
    width:6px;
}

.content::-webkit-scrollbar-thumb{
    background:#8d99ae;
    border-radius:10px;
}

/*========END============*/
























/* Make page stretch full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content grows and pushes footer down */
main {
  flex: 1;
}

/* Footer styles */
footer {
  background-color: #2b2d42;
  color: white;
  padding: 20px 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-content p {
  margin: 10px 0;
  font-size: 1rem;
}

.footer-content ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 10px 0;
  padding: 0;
}

.footer-content ul li a {
  text-decoration: none;
  color: #ffffffcc;
  transition: color 0.3s ease;
}

.footer-content ul li a:hover {
  color: #ffffff;
}

/* Responsive styling */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-content ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-content ul li {
    margin: 5px 10px;
  }
}

.p1 {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #ffff;
}


footer {
  background-color: #2b2d42;
  color: white;
  padding: 20px 40px;
  margin-top: auto;
}