/* common.css - unchanged from previous version */
:root {
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --card-bg: #ffffff;
  --border-color: #dee2e6;
  --code-bg: #e9ecef;
  --nav-bg: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.dark-theme {
  --bg-color: #212529;
  --text-color: #f8f9fa;
  --primary-color: #6ea8fe;
  --secondary-color: #adb5bd;
  --card-bg: #343a40;
  --border-color: #495057;
  --code-bg: #2b3035;
  --nav-bg: #2b3035;
  --shadow: 0 4px 6px rgba(0,0,0,0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: var(--transition);
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
  transition: var(--transition);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

h1 {
  color: var(--primary-color);
  font-size: 2.2em;
  margin: 0;
}

h2 {
  color: var(--primary-color);
  margin: 25px 0 15px 0;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}

h3 {
  margin: 20px 0 10px 0;
  color: var(--secondary-color);
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

#theme-toggle {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s;
}

#theme-toggle:hover {
  background: var(--primary-color);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color);
}

.nav-links a {
  background: var(--nav-bg);
  padding: 10px 20px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.nav-links a:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

.card {
  background: var(--code-bg);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

pre, code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--code-bg);
  border-radius: 5px;
  padding: 2px 5px;
}

pre {
  padding: 15px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: white;
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }
  header {
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 1.8em;
  }
}
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9em;
}
.breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
/* Port coloring */
.secure {
  color: green;
  font-weight: bold;
}

.insecure {
  color: red;
  font-weight: bold;
}

.neutral {
  color: black;
}

/* Disclaimer styling */
.disclaimer {
  font-size: 0.9em;
  color: darkorange;
  font-weight: bold;
  margin-bottom: 10px;
}
