/* Basic Reset and Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body - Dark Mode */
body {
  font-family: "Roboto", sans-serif;
  background-color: #0f172a; /* Deep dark blue-black */
  line-height: 1.6;
  color: #e2e8f0; /* Soft white/grey text */
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
}

.article-container {
  max-width: 800px;
  margin: 40px auto;
  background-color: #1e293b; /* Slightly lighter dark blue */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Header & Navigation */
.top {
  border-bottom: 1px solid #334155;
  background-color: #1e293b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff; /* Bright Cyan */
  padding-bottom: 10px;
  border-bottom: 3px solid #38bdf8;
  text-align: center;
  margin: auto;
}

.title:hover {
  color: #25abe4;
}

/* Sidebar */
#sidebar {
  position: fixed;
  left: -300px;
  top: 0;
  width: 250px;
  height: 100%;
  background: #0f172a;
  padding: 80px 20px 20px;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.5);
  transition: 0.4s ease;
  z-index: 9999;
}

#sidebar.show {
  left: 0;
}

#sidebar a {
  display: block;
  color: #cbd5e1;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid #1e293b;
}

#sidebar a:hover {
  color: #38bdf8;
  padding-left: 10px;
}

#menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  background: #38bdf8;
  color: #0f172a;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10000;
}

/* Typography */
h1 {
  font-size: 2.2em;
  color: #f8fafc;
  margin-bottom: 15px;
  border-bottom: 2px solid #334155;
  padding-bottom: 10px;
}

h2 {
  font-size: 1.6em;
  color: #38bdf8;
  margin-top: 35px;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.3em;
  color: #94a3b8;
  margin-top: 25px;
}

p {
  margin-bottom: 20px;
  text-align: justify;
  color: #cbd5e1;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
}

hr {
  border: 0;
  border-top: 1px solid #334155;
  margin: 30px 0;
}

/* Tables - Dark Style */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background-color: #0f172a;
  border-radius: 5px;
  overflow: hidden;
}

table th, table td {
  border: 1px solid #334155;
  padding: 12px;
  text-align: left;
}

table th {
  background-color: #38bdf8;
  color: #0f172a;
  font-weight: bold;
}

table tr:nth-child(even) {
  background-color: #1e293b;
}

/* Footer - Full Width but Centered Content */
.footer {
  background-color: #020617;
  color: #94a3b8;
  padding: 50px 0 20px;
  margin-top: 60px;
  border-top: 4px solid #38bdf8;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-title, .footer-section h4 {
  color: #f8fafc;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section ul li a:hover {
  color: #38bdf8;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid #1e293b;
  width: 100%;
  font-size: 12px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .article-container {
    margin: 20px;
    padding: 20px;
  }
  
  .nav {
    padding: 15px;
  }
  
  .title {
    font-size: 16px;
  }

  table {
    font-size: 12px;
  }
  
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.3em; }
}
/* Sidebar Button Updated Style */
#menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  background: transparent; /* Blue color remove kar diya */
  color: #38bdf8; /* Sirf icon ka color bright rakha hai */
  padding: 5px;
  font-size: 28px; /* Thora bara size taake clear nazar aaye */
  cursor: pointer;
  z-index: 10000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

#menu-btn:hover {
  color: #ffffff; /* Hover par icon white ho jayega */
  transform: scale(1.1); /* Halka sa zoom effect */
}

#menu-btn.is-open {
  background: transparent; /* Open hone par bhi background nahi hoga */
  color: #38bdf8;
  width: auto; /* Width ko fix se auto kar diya */
  left: 210px; /* Sidebar ke andar adjust ho jayega */
  transform: rotate(0deg); /* Rotation remove kar di clean look ke liye */
}