/* ================================
   PRODUCTION MOBILE-FIRST UI SYSTEM
================================ */

/* ===== GLOBAL RESET ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f9fc;
  color: #1e293b;
  line-height: 1.7;
  font-size: 16px;
}

/* ===== VARIABLES ===== */

:root {
  --primary: #0096C7;
  --secondary: #023E8A;
  --accent: #4cc9f0;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,.06);
}

/* ================= HEADER ================= */

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

header h1 {
  font-size: 1.2rem;
  margin: 0;
}

header p {
 text-align:center;
}

header button {
  align-self: flex-end;
}

/* ================= LAYOUT ================= */

.main-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.content-container {
  flex: 1;
  min-width: 0;
  padding: 20px;
  max-width: 850px;
  margin: auto;
}

/* ================= SIDEBAR ================= */

.tabs {
  width: 260px;
  background: var(--card);
  padding: 20px 16px;
  box-shadow: 0 0 40px rgba(0,0,0,.12);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform .3s ease;
}

.tab-btn {
  display: block;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.tab-btn:hover {
  background: var(--accent);
  color: #fff;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

/* ================= CARD ================= */

.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* ================= ACCORDION ================= */

.accordion-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: #eef4ff;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-btn:hover {
  background: var(--accent);
  color: #fff;
}

.accordion-content {
  display: none;
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* ================= MEDIA ================= */

img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: none;
}

/* ================= MOBILE MENU ================= */

.mobile-menu-btn {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ===== OVERLAY ===== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  pointer-events: none;
  z-index: 900;
}

.overlay.show {
  display: block;
  pointer-events: auto;
}

/* ================= MOBILE ================= */

@media (max-width: 900px){
    
header{
  align-items:center;
}

.mobile-menu-btn{
  display:block;
  margin:8px auto;
}

.tabs{
  position:fixed;
  top:0;
  left:0;
  width:260px;
  max-width:80%;
  height:100vh;
  background:#fff;
  transform:translateX(-100%);
  transition:transform .3s ease;
  overflow-y:auto;
  z-index:1000;
  pointer-events:none;
  flex:none;
}

.tabs.open{
  transform:translateX(0);
  pointer-events:auto;
}

.content-container{
  width:100%;
  padding:18px 14px;
}

body{
  font-size:17px;
}

}

/* ================= DESKTOP ================= */

@media (min-width: 1000px){

.main-layout{
  display:flex;
  max-width:1200px;
  margin:30px auto;
  gap:30px;
}

.tabs{
  flex:0 0 260px;
  width:260px;
  height:auto;
  position:sticky;
  top:20px;
  align-self:flex-start;
}

.content-container{
  flex:1;
  max-width:850px;
  margin:0;
}

header{
  padding:18px 30px;
}

}

/* ================= TABLES ================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

thead {
  background: var(--primary);
  color: #fff;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e8f0;
}

tbody tr:hover {
  background: #f2f6ff;
}

/* ================= FOOTER ================= */

.site-footer {
  background: #0f2f66;
  color: #fff;
  padding: 10px 10px;
  margin-top: 10px;
  text-align:center;
}

/* ================= SIDEBAR SECTIONS ================= */

.sidebar-section{
  margin-bottom:15px;
}

.sidebar-toggle{
  width:100%;
  background:#4cc9f0;
  color:white;
  border:none;
  padding:10px;
  font-weight:600;
  cursor:pointer;
  border-radius:6px;
}

.sidebar-links{
  list-style:none;
  padding-left:10px;
  display:none;
}

.sidebar-links li{
  margin:8px 0;
}

.sidebar-links a{
  text-decoration:none;
  color:#333;
}

.sidebar-links a:hover{
  color:#2c7be5;
}

.sidebar a.active{
  background: #4cc9f0;
  color: #fff;
  font-weight:600;
}

/* ================= HOME ICON ================= */

.home-link{
  display:flex;
  align-items:center;
}

.home-icon{
  width:22px;
  height:22px;  
  fill: white;
}
