/*Importing Font Style*/
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==============================
   Documentation Page Styles
   ============================== */

   * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* Colors */
  --white-color: #fff;
  --dark-color: #252525;
  --primary-color: #3b141c;
  --secondary-color: #0000FF;
  --light-pink-color: #faf4f5;
  --medium-gray-color: #ccc;

  /* Font size */
  --font-size-s: 0.9rem;
  --font-size-n: 1rem;
  --font-size-m: 1.12rem;
  --font-size-1: 1.5rem;
  --font-size-x1: 2rem;
  --font-size-xx1: 2.3rem;

  /* Font weight */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Border weight */
  --border-radius-s: 8px;
  --border-radius-m: 30px;
  --border-radius-circle: 50%;

  /* Site max width */
  --site-max-width: 1300px;
}

/* Container Width Control */
.container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 20px; 
}


.doc-header h1 {
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-bold);
}

.layout {
    display: flex;
}

.sidebar {
  position: fixed;
  top: 0; /* below header */
  left: 0;
  width: 220px;
  height: 100%;
  background-color: var(--secondary-color);
 padding: 20px 15px;
  overflow: auto;
}

.sidebar .logo {
  color: var(--white-color);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-bold);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-group {
  margin-bottom: 25px;
}

.nav-group h4 {
  color: var(--light-pink-color);
  font-size: var(--font-size-m);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  border-bottom: 1px solid var(--medium-gray-color);
  padding-bottom: 10px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin-bottom: 15px;
}

.nav-links li a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white-color);
  text-decoration: none;
  font-size: var(--font-size-n);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: var(--font-weight-semibold);
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

/* Icon colors only */
.nav-links li:nth-child(1) a i { color: #3498db; } 
.nav-links li:nth-child(2) a i { color: gold; } 
.nav-links li:nth-child(3) a i { color: gold; }
.nav-links li:nth-child(4) a i { color: #e67e22; }
.nav-links li:nth-child(5) a i { color: #f1c40f; } 
.nav-links li:nth-child(6) a i { color: gold; } 


.nav-links li a:hover {
  background: var(--primary-color);

}

.nav-links li a.active {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Main Documentation Layout */
.doc-container {
    margin-left: 240px;
    padding: 40px 20px;
    min-height: 100vh;
}

.content-section h2,
.content-section h3 {
    margin-left: 0;
}

.content-section p {
    margin-left: 0;
    margin-right: 0;
}

/* h3 headings */
.container h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-color);
}

.container h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--dark-color);
}

.container p + h3 {
  margin-top: 1.8rem;
}

.main-text {
  font-size: var(--font-size-n);
  line-height: 1.6;
  font-weight: 300;
  color: #1f2937;
  margin-bottom: 16px;
}

/* Full-bleed pre code blocks */
.content-section pre {
  background: var(--secondary-color);
  color: var(--white-color);
  border-radius: 6px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: var(--font-size-s);
  line-height: 1.5;
  margin-bottom: 20px;
}


.content-section pre code {
  display: block;
  font-family: inherit;
  padding: 0; /* padding handled by pre */
}

/* Airtime Page*/
.airtime-title i {
  margin-right: 8px;      
  color: gold;         
 font-size: 1.2em;       
 vertical-align: middle; 
}

/* DATA PAGE SPECIFIC STYLING */
.icon-data2 {
  margin-right: 8px;   
  font-size: 1.2em;    
  color: gold;     
  vertical-align: middle;
}

/* CABLE PAGE */
.icon-cable {
  margin-right: 8px;
  font-size: 1.2em;
  color: #e67e22; 
  vertical-align: middle;
}

/*  ELECTRICITY PAGE */
.icon-electricity {
  margin-right: 8px;
  font-size: 1.3em;
  color: gold;   
  vertical-align: middle;
}

/* Exam Page */
.icon-exam2 {
  font-size: 1.2em;
  color: gold;
}


/* Custom List Style */
.lists1 li {
  display: flex;
  align-items: center;
  margin: 10px 0;
  gap: 6px;
}

.lists1 li i {
  margin-left: 40px;
  font-size: 18px; 
}


.icon-airtime { color: green; }
.icon-data { color: blue; }
.icon-cable { color: orange; }
.icon-electricity { color: gold; }
.icon-exam { color: brown; }
.icon-other { color: purple; }
.icon-doc { color: gold; } 
.icon-format {color: gold;}
.icon-auth {color:gold;}
.icon-services {color: gold;}
.icon-user {color: gold}

.font-mono {
  font-family: monospace;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .doc-container {
  margin-left: 190px;
   padding: 40px;
  }
}

@media (min-width: 769px) {
  .content-section pre {
    width: calc(100vw - 240px);
    max-width: calc(100vw - 240px);
    overflow-x: hidden;         /* prevent horizontal scrolling */
    white-space: pre-wrap;      /* wrap long lines */
    word-break: break-word;     /* break very long words/urls */
    box-sizing: border-box;
    padding: 12px 16px;
  }
}

/* Small screens: scroll if code exceeds screen width */
@media (max-width: 768px) {
  .content-section pre {
    width: 100vw;
    max-width: none;
    overflow-x: auto;
    white-space: pre;           /* preserve formatting */
    box-sizing: border-box;
    padding: 12px 10px;
  }
}