/* ============================= */
/*        GLOBAL RESET           */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #0f172a; /* Deep navy */
  color: #e2e8f0;
  min-height: 100%;
}


/* ============================= */
/*        COLOR SYSTEM           */
/* ============================= */

:root {
  --accent: #14b8a6;         /* professional teal */
  --muted: #94a3b8;
  --card-bg: rgba(255,255,255,0.03);
  --border-subtle: rgba(255,255,255,0.05);
}


/* ============================= */
/*         SIDEBAR               */
/* ============================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #0b1220;
  border-right: 1px solid var(--border-subtle);
  padding-top: 20px;
  transition: width 0.3s ease;
}

.sidebar.closed {
  width: 70px;
}

.sidebar .toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  margin-left: 20px;
  margin-bottom: 25px;
}

.side-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 14px;
}

.nav-item:hover {
  background: rgba(20,184,166,0.08);
  color: #fff;
}

.nav-item .icon {
  width: 25px;
  text-align: center;
}

.sidebar.closed .label {
  display: none;
}


/* ============================= */
/*          HEADER               */
/* ============================= */

.header {
  margin-left: 240px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 20px;
  font-weight: 600;
}

.logo .mark {
  color: var(--accent);
}


/* ============================= */
/*            MAIN               */
/* ============================= */

.main {
  margin-left: 240px;
  padding: 50px 60px;
  max-width: 1200px;
}


/* ============================= */
/*        TYPOGRAPHY             */
/* ============================= */

h1 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 15px;
}

h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

p {
  font-size: 15px;
  line-height: 1.7;
}


/* ============================= */
/*          CARDS                */
/* ============================= */

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;   /* adjust if needed */
}

.card p {
  flex-grow: 1;
}

.card .btn-primary,
.card a {
  margin-top: 20px;
  align-self: flex-start;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(20,184,166,0.3);
}

/* ========================= */
/* Attack Category Sections  */
/* ========================= */

.attack-category {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.attack-category h2 {
  font-size: 24px;
  margin-bottom: 25px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}
.attack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
/* ============================= */
/*         BUTTONS               */
/* ============================= */

.btn-primary {
  padding: 12px 18px;
  background: var(--accent);
  color: #021;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  padding: 12px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-outline:hover {
  background: rgba(20,184,166,0.1);
}


/* ============================= */
/*          SECTIONS             */
/* ============================= */

section {
  margin-bottom: 60px;
}


/* ============================= */
/*          FOOTER               */
/* ============================= */

footer {
  margin-left: 240px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border-subtle);
}


/* ============================= */
/*       RESPONSIVE              */
/* ============================= */

@media (max-width: 900px) {
  .sidebar {
    width: 70px;
  }

  .sidebar .label {
    display: none;
  }

  .header,
  .main,
  footer {
    margin-left: 70px;
  }

  .main {
    padding: 30px;
  }
}
.nav-item.active,
.sub-item.active {
  background: rgba(20,184,166,0.15);
  color: #ffffff;
  border-left: 3px solid var(--accent);
}