/* ====== GLOBAL ====== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f0f7ff; /* Light blue background */
}
nav {
  background: #1e88e5;
  padding: 12px 0;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: left;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
nav ul li a:hover {
  text-decoration: underline;
}
H1{
  margin-left: 0px;
  padding: 5px;
  text-align: center ;
}
.container {
  display: flex;
  height: 100vh;
}
/* ===== MAIN CONTENT (SUBMENU + RESULT) ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column; /* 👈 upar-neeche */
  padding: 15px;
  padding-top: 5px;    /* default 15px hota hai */
}
/* ===== SIDEBAR ===== */
.sidebar{
  width: 550px;
  background: #004e92;
  color: white;
  padding: 20px 10px;
  overflow-y: auto;
  -webkit-text-fill-color: aquamarine;
  text-wrap-style:bold;
}
.menu-item {
  padding: 12px;
  margin-bottom: 8px;
  background: #006ad1;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
}
.menu-item:hover {
  background: #0084ff;
}
/* ===== SUBMENU  upar rahe===== */
.submenu {
  flex: none;          /* 👈 MOST IMPORTANT */
  height: auto;        /* 👈 sirf content jitni height */
  padding: 10px;
  margin-bottom: 10px;  
  text-align: left;
  -webkit-text-fill-color: rgb(228, 227, 238);
  text-wrap-style:bold;
  font-size: 14px;
  font-weight: bold; 
}
.submenu-item {
  display: inline-block;
  background: #0084ff;
  color: white;
  padding: 12px 20px;
  margin: 6px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s;
  font-size: 15px;
  row-gap: 4px;
  column-gap: 6px;
}
.submenu-item:hover {
  background: #d63b27;
  transform: translateY(-3px);
}
/* ===== RESULT AREA (CALCULATOR FORM) ===== */
.result-area {
  width: 99%;
  padding: 15px;
  background: #ffffff;
  margin-top: 5px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: left;
}
.result-area h2 {
  margin-top: 0;
  margin: 5px 0;   /* default ~20px hota hai */
  text-align: center;
}
/* ===== FORM INPUTS ===== */
.result-area input,
.result-area select {
  display: block;      /* 👈 sabse important */
  width: 95%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}
.result-area button {
  width: 50%;
  display: block;
  margin: 15px auto;   /* 👈 horizontal center */
  padding: 12px;
  margin-top: 10px;
  background: #0084ff;
  border: none;
  color: white;
  font-size: 17px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;  
}
.result-area button:hover {
  background: rgb(142, 124, 231);
  transform: translateY(-3px);
}
/* ===== RESULT TEXT ===== */
#result {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #004e92;
  text-align: center;
}
/* ===== ACTIVE MENU (CATEGORY) ===== */
.menu-item.active {
  background: #9cd4da;
  color: #07607d;
  font-weight: bold;
  border-left: 12px solid yellow;
}

/* ===== ACTIVE SUBMENU (CALCULATOR) ===== */
.submenu-item.active {
  background: #43a047;   /* Green */
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(67,160,71,0.7);
  position: relative;
}

/* ✔ CHECK MARK */
.submenu-item.active::after {
  content: " ✔";
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 16px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
  }
  .submenu {
    text-align: center;    
  }
}
#cams, #fps, #hours, #days, #months, #storage, #result-storage, #camera-storage-result {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #004e92;
  text-align: left;
  padding: 10px;
}

