:root {
    --bg: #f8fafc;
    --text: #1e293b;
    --primary: #2563eb;
    --card: #ffffff;
    --border: #e2e8f0;
}

body.dark {
    --bg: #0f172a;
    --text: #f1f5f9;
    --card: #1e293b;
    --border: #334155;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    line-height: 1.6; 
}

header {
    background: #0f172a;
    color: white;
    /* padding: 1rem 5%; */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
  font-size: 22px;
  font-weight: bold;
}

header nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.generator-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

#password {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn.primary { background: var(--primary); color: white; }
.btn.outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

.strength-meter {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 10px 0;
}

#strengthBar {
    height: 100%;
    width: 0;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.content-box {
    margin-top: 3rem;
    padding: 20px;
    border-top: 2px solid var(--border);
}

.dark-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.site-footer {
  margin-top: 60px;
  padding: 40px 20px 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.site-footer h4 {
  margin-bottom: 10px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  opacity: 0.8;
}

.site-footer {
  margin-top: 60px;
  padding: 40px 20px 20px;
  background: #0a2540; /* FORCE COLOR */
  color: #ffffff;
  border-top: none;
}

.site-footer a {
  color: #9fd3ff;
  text-decoration: none;
}

/* Navigation Styling */
.main-header {
    background: #0f172a;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  margin: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-primary {
  background: #0a2540;
  color: white;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.blog-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.blog-cta {
  margin-top: 30px;
  text-align: center;
}

/* .creator-box {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
} */

.creator-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0a2540;
}

/* Table Styling */
.table-container { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: 12px; border: 1px solid var(--border); text-align: center; }
th { background: #0f172a; color: white; }

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    margin-top: 10px;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    display: block;
    margin: 0 !important;
}
.dropdown-content a:hover { background-color: #f1f5f9; }

/* Session Log Styling */
.password-log {
    margin-top: 25px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 20px;
    border-radius: 12px;
}
.log-entry {
    background: white;
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}