/* Password Protection Overlay */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg, #ffffff);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark mode support */
.coal .password-overlay,
.navy .password-overlay,
.ayu .password-overlay {
  background: var(--bg, #1a1a2e);
}

.password-box {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
}

.password-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.password-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg, #333);
}

.coal .password-title,
.navy .password-title,
.ayu .password-title {
  color: var(--fg, #e0e0e0);
}

.password-message {
  font-size: 1rem;
  color: var(--fg, #666);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.coal .password-message,
.navy .password-message,
.ayu .password-message {
  color: var(--fg, #aaa);
}

.password-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border, #ddd);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--bg, #fff);
  color: var(--fg, #333);
  text-align: center;
  letter-spacing: 0.1em;
  transition: border-color 0.2s;
}

.password-input:focus {
  outline: none;
  border-color: #4a9eff;
}

.coal .password-input,
.navy .password-input,
.ayu .password-input {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: #e0e0e0;
}

.password-input::placeholder {
  color: #999;
  letter-spacing: normal;
}

.password-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  background: #4a9eff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.password-btn:hover {
  background: #3a8eef;
}

.password-btn:active {
  transform: scale(0.98);
}

.password-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.password-error.show {
  display: block;
}

.password-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #eee);
  font-size: 0.875rem;
  color: var(--fg, #888);
}

.coal .password-contact,
.navy .password-contact,
.ayu .password-contact {
  border-color: rgba(255,255,255,0.1);
  color: #888;
}

.password-contact a {
  color: #4a9eff;
  text-decoration: none;
}

.password-contact a:hover {
  text-decoration: underline;
}

/* Hide content when locked */
body.content-locked .content {
  display: none !important;
}

body.content-locked .sidebar {
  display: none !important;
}

body.content-locked .nav-wrapper {
  display: none !important;
}

/* Unlocked state */
body.content-unlocked .password-overlay {
  display: none !important;
}