/* Base Terminal CSS overrides and CRT styling */
:root {
  --primary-color: #00ff00;
  --secondary-color: #00cc00;
  --background-color: #000000;
  --font-color: #00ff00;
  --font-stack: "Inconsolata", "Monaco", "Menlo", "Lucida Console", monospace;
  --global-font-size: 14px;
  --global-line-height: 1.4em;
}

body {
    background-color: black;
    background-image: radial-gradient(
      rgba(0, 150, 0, 0.75), black 120%
    );
    height: 100vh;
    margin: 0;
    overflow: hidden;
    padding: 0;
    color: #00ff00;
    font: 1.1rem Inconsolata, monospace;
    text-shadow: 0 0 5px #00ff00;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1000;
}

::selection {
  background: #0080FF;
  text-shadow: none;
}

/* Console Container */
.console-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Console Header */
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #00ff00;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.console-title {
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 0 10px #00ff00;
}

.console-status {
  font-size: 0.9rem;
  color: #00cc00;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.console-status.online {
  color: #44ff44;
  background: rgba(68, 255, 68, 0.1);
  border: 1px solid #44ff44;
  text-shadow: 0 0 5px #44ff44;
  animation: pulse 2s infinite;
}

.console-status.offline {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  text-shadow: 0 0 5px #ff4444;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Console Output */
.console-output {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #00ff00 transparent;
}

.console-output::-webkit-scrollbar {
  width: 8px;
}

.console-output::-webkit-scrollbar-track {
  background: transparent;
}

.console-output::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
}

/* Boot Sequence */
.boot-sequence {
  margin-bottom: 2rem;
}

.boot-sequence pre {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  text-align: center;
  margin: 1rem 0;
  font-size: 0.7rem;
}

.boot-info {
  text-align: center;
  margin: 1rem 0;
}

.boot-info p {
  margin: 0.5rem 0;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Command Lines */
.command-line {
  margin: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.command-line .prompt {
  color: #00cc00;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.command-line .command {
  color: #ffffff;
  margin-right: 0.5rem;
}

.command-output {
  margin: 0.5rem 0 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid #00ff00;
  white-space: pre-wrap;
  word-break: break-word;
}

.error {
  color: #ff4444 !important;
  text-shadow: 0 0 5px #ff4444;
}

.success {
  color: #44ff44 !important;
  text-shadow: 0 0 5px #44ff44;
}

.warning {
  color: #ffff44 !important;
  text-shadow: 0 0 5px #ffff44;
}

.stats-grid {
  display: flex;
}

.stat-label {
  max-width: 12rem;
  margin: 0.2rem;
}

/* Console Input */
.console-input-line {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  flex-shrink: 0;
  position: relative;
}

.prompt {
  color: #00cc00;
  margin-right: 0.5rem;
  flex-shrink: 0;
  font-weight: bold;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  text-shadow: 0 0 5px #ffffff;
  padding: 0;
  margin: 0;
}

.cursor {
  color: #00ff00;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Terminal CSS Component Overrides */
.terminal h1, .terminal h2, .terminal h3, .terminal h4, .terminal h5, .terminal h6 {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

.terminal a {
  color: #00ccff;
  text-shadow: 0 0 5px #00ccff;
}

.terminal code {
  background-color: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid #00ff00;
}

.terminal pre {
  background-color: rgba(0, 255, 0, 0.05);
  border: 1px solid #00ff00;
  color: #00ff00;
  margin: 0;
}

/* Table styling for system info */
.terminal table {
  border-collapse: collapse;
  margin: 1rem 0;
}

.terminal table th,
.terminal table td {
  border: 1px solid #00ff00;
  padding: 0.5rem;
  text-align: left;
}

.terminal table th {
  background-color: rgba(0, 255, 0, 0.1);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }
  
  .console-container {
    padding: 0.5rem;
  }
  
  .console-header {
    padding: 0.3rem 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .boot-sequence pre {
    font-size: 0.5rem;
  }
  
  .command-input {
    font-size: 0.9rem;
  }
}

/* Timeline Styling */
.terminal-timeline {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.terminal-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #00ff00, #00cc00, #00ff00);
  box-shadow: 0 0 10px #00ff00;
}

.terminal-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.terminal-timeline-marker {
  display: none;
  position: absolute;
  left: -35px;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: #00ff00;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff00;
  z-index: 10;
}

.terminal-timeline-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 5px #00ff00;
}

.terminal-timeline-content {
  background: rgba(0, 255, 0, 0.03);
  border: 1px solid #00ff00;
  border-radius: 8px;
  padding: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.terminal-timeline-content:hover {
  background: rgba(0, 255, 0, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  transform: translateX(5px);
}

.terminal-timeline-content h4 {
  margin: 0 0 0.5rem 0;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
  font-size: 1.1rem;
}

.terminal-timeline-content p {
  margin: 0 0 1rem 0;
  color: #ffffff;
  line-height: 1.6;
}

.terminal-timeline-content small {
  color: #00cc00;
  font-size: 0.875rem;
  font-style: italic;
}

/* Media Object Styling */
.terminal-media {
  display: flex;
  align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #00ff00;
  background: rgba(0, 255, 0, 0.03);
  border-radius: 4px;
}

.terminal-media-figure {
  flex-shrink: 0;
  line-height: 0.25rem;
  margin-right: 1rem;
  padding-left: 0.4rem;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #00ff00;
  border-radius: 4px;
  background: rgba(0, 255, 0, 0.1);
  text-shadow: 0 0 5px #00ff00;
}

.terminal-media:nth-child(even) .terminal-media-figure {
  order: 2;
  margin-right: 0;
  margin-left: 1rem;
}

.terminal-media-content {
  flex: 1;
}

.terminal-media-content h4 {
  margin: 0 0 0.5rem 0;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

.terminal-media-content p {
  margin: 0;
  color: #ffffff;
  line-height: 1.5;
}

/* Terminal Figure Styling */
.terminal-figure {
  margin: 2rem 0;
  text-align: center;
  border: 1px solid #00ff00;
  padding: 1rem;
  background: rgba(0, 255, 0, 0.03);
}

.terminal-figure figcaption {
  margin-top: 1rem;
  color: #00cc00;
  font-style: italic;
  font-size: 0.9rem;
}

/* Alert Styling */
.terminal-alert {
  padding: 1rem;
  border-left: 4px solid #00ff00;
  background: rgba(0, 255, 0, 0.1);
  color: #ffffff;
  display: flex;
}

.terminal-alert-primary {
  border-left-color: #00ccff;
  background: rgba(0, 204, 255, 0.1);
}

.terminal-alert-error {
  border-left-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.terminal-alert-success {
  border-left-color: #44ff44;
  background: rgba(68, 255, 68, 0.1);
}

.terminal-alert-warning {
  border-left-color: #ffff44;
  background: rgba(255, 255, 68, 0.1);
}

.terminal-alert-info {
  border-left-color: #00ccff;
  background: rgba(0, 204, 255, 0.1);
}

/* Card Styling */
.card {
  border: 1px solid #00ff00;
  margin: 0;
  background: rgba(0, 255, 0, 0.03);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stats-grid .card {
  margin: 0.2rem;
}

.card .content {
  display: flex;
  flex-direction: column;
}

.card header {
  background: rgba(0, 255, 0, 0.1);
  padding: 1rem;
  font-weight: bold;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
  border-bottom: 1px solid #00ff00;
}

.card p,
.card ul {
  padding: 1rem;
  margin: 0;
  color: #ffffff;
}

.card footer {
  background: rgba(0, 255, 0, 0.05);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #00cc00;
  border-top: 1px solid #00ff00;
}

/* Progress Bar Styling */
.terminal-progress {
  width: 100%;
  height: 1.5rem;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
  position: relative;
}

.terminal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ff00, #00cc00);
  box-shadow: 0 0 10px #00ff00;
  transition: width 0.3s ease;
  position: relative;
}

.terminal-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Navigation Styling */
.terminal-nav {
  border: 1px solid #00ff00;
  background: rgba(0, 255, 0, 0.03);
  padding: 1rem;
  margin: 1rem 0;
}

.terminal-nav h3 {
  margin: 0 0 1rem 0;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

.terminal-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terminal-nav li {
  margin: 0.5rem 0;
}

.terminal-nav a {
  color: #00ccff;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  transition: all 0.2s;
}

.terminal-nav a:hover,
.terminal-nav a.active {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

.terminal-nav-list {
  list-style: none;
  padding: 0;
}

.terminal-nav-list li {
  margin: 0.5rem 0;
}

.terminal-nav-list ul {
  margin-left: 2rem;
  margin-top: 0.5rem;
}

.terminal-breadcrumb {
  font-family: monospace;
  color: #00cc00;
}

.terminal-breadcrumb a {
  color: #00ccff;
  text-decoration: none;
}

.terminal-breadcrumb a:hover {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

@media (max-width: 480px) {
  .boot-sequence pre {
    font-size: 0.4rem;
  }
  
  .console-title {
    font-size: 1rem;
  }
  
  .terminal-timeline {
    padding-left: 1rem;
  }
  
  .terminal-timeline-item {
    padding-left: 1.5rem;
  }
  
  .terminal-media {
    flex-direction: column;
  }
  
  .terminal-media-figure {
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: center;
  }
  
  .terminal-media:nth-child(even) .terminal-media-figure {
    order: 0;
    margin-left: 0;
    margin-bottom: 1rem;
  }
}

/* Keyboard Shortcuts Overlay */
.keyboard-shortcuts-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.shortcuts-content {
  background: #000000;
  border: 2px solid #00ff00;
  border-radius: 8px;
  max-width: 800px;
  max-height: 90vh;
  width: 90%;
  overflow-y: auto;
  box-shadow: 0 0 30px #00ff00;
}

.shortcuts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #00ff00;
  background: rgba(0, 255, 0, 0.05);
}

.shortcuts-header h2 {
  margin: 0;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

.close-btn {
  background: none;
  border: 1px solid #ff4444;
  color: #ff4444;
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 68, 68, 0.2);
  text-shadow: 0 0 5px #ff4444;
}

.shortcuts-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.shortcut-section h3 {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 0.5rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 0.8rem;
}

.shortcut-item kbd {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #00ff00;
  text-shadow: 0 0 3px #00ff00;
  min-width: fit-content;
  flex-shrink: 0;
}

.shortcut-item code {
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid #00ccff;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #00ccff;
  text-shadow: 0 0 3px #00ccff;
  min-width: fit-content;
  flex-shrink: 0;
}

.shortcut-item span {
  color: #ffffff;
  font-size: 0.95rem;
  flex: 1;
}

.shortcuts-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #00ff00;
  background: rgba(0, 255, 0, 0.03);
  text-align: center;
}

.shortcuts-footer p {
  margin: 0;
  color: #00cc00;
  font-size: 0.9rem;
}

.shortcuts-footer kbd {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #00ff00;
  text-shadow: 0 0 3px #00ff00;
}

/* Responsive design for shortcuts overlay */
@media (max-width: 768px) {
  .shortcuts-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .shortcuts-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .shortcuts-header {
    padding: 1rem;
  }
  
  .shortcut-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

/* Login Button Styling */
.login-container {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 2px solid #00ccff;
  background: rgba(0, 204, 255, 0.05);
}

.login-container div {
  display: flex;
  flex-direction:column;
  padding: 0.2rem;
}

.login-button {
  background: #007acc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin: 5px;
  transition: background-color 0.3s;
}

.login-button:hover {
  background: #005a9e;
}

.login-button.passkey-button {
  background: #28a745;
}

.login-button.passkey-button:hover {
  background: #1e7e34;
}

/* Form Improvements */
form {
  display: flex;
  flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group div {
    display: flex;
    margin: 0.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #00ff00;
  font-weight: bold;
  text-shadow: 0 0 5px #00ff00;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='number'],
.form-group input[type='url'],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #00ff00;
  background: rgba(0, 255, 0, 0.05);
  color: #ffffff;
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group input[type='password']:focus,
.form-group input[type='number']:focus,
.form-group input[type='url']:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ccff;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
  background: rgba(0, 255, 0, 0.1);
}

.form-group input[type='checkbox'],
.form-group input[type='radio'] {
  margin-right: 0.5rem;
  accent-color: #00ff00;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #00cc00;
}

/* Button improvements for forms */
.form .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.form .btn:last-child {
  margin-right: 0;
}

/* Passkey Authentication Styles */
.passkey-auth {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00;
    border-radius: 5px;
    margin: 20px;
    padding: 20px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #00ff00;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    padding: 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    background: rgba(0, 255, 0, 0.1);
}

.auth-tab.active {
    background: rgba(0, 255, 0, 0.2);
    border-bottom: 2px solid #00ff00;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #00ff00;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 3px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    border-radius: 3px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.auth-button:active {
    transform: scale(0.98);
}

.auth-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
}

.auth-info p {
    margin: 5px 0;
    color: #00ff00;
}

/* Loading state */
.auth-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-button.loading::after {
    content: " ⏳";
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Error state */
.auth-error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 12px;
}

/* Success state */
.auth-success {
    color: #44ff44;
    text-shadow: 0 0 5px #44ff44;
    background: rgba(68, 255, 68, 0.1);
    border: 1px solid #44ff44;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

/* P2P and WebRTC Styles */
.p2p-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 1rem;
  z-index: 10000;
  max-width: 300px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  animation: slideInRight 0.3s ease-out;
}

.p2p-notification-content {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

.p2p-notification-content span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.p2p-notification-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-accept, .btn-decline {
  padding: 0.3rem 0.8rem;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-stack);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-accept {
  background: rgba(68, 255, 68, 0.2);
  border-color: #44ff44;
  color: #44ff44;
}

.btn-accept:hover {
  background: rgba(68, 255, 68, 0.4);
  text-shadow: 0 0 5px #44ff44;
  box-shadow: 0 0 10px rgba(68, 255, 68, 0.5);
}

.btn-decline {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ff4444;
}

.btn-decline:hover {
  background: rgba(255, 68, 68, 0.4);
  text-shadow: 0 0 5px #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* File Download Styles */
.file-download-link {
  color: #00ccff;
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 1px solid #00ccff;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.file-download-link:hover {
  background: rgba(0, 204, 255, 0.2);
  text-shadow: 0 0 5px #00ccff;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

.file-received {
  border-left-color: #00ccff !important;
}

.file-info {
  color: #00ccff;
  text-shadow: 0 0 5px #00ccff;
  font-weight: bold;
}

/* Video Stream Styles */
.remote-video {
  max-width: 100%;
  max-height: 300px;
  border: 2px solid #00ff00;
  border-radius: 8px;
  margin: 0.5rem 0;
  background: #000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.local-video {
  width: 200px;
  height: 150px;
  border: 2px solid #0ff;
  border-radius: 8px;
  margin: 0.5rem 0;
  background: #000;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.remote-stream {
  border-left-color: #ff00ff !important;
}

.local-stream {
  border-left-color: #0ff !important;
}

.stream-info {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.local-stream .stream-info {
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
}

/* P2P Status Indicators */
.p2p-status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.p2p-status.connected {
  background: rgba(68, 255, 68, 0.2);
  border: 1px solid #44ff44;
  color: #44ff44;
}

.p2p-status.pending {
  background: rgba(255, 255, 68, 0.2);
  border: 1px solid #ffff44;
  color: #ffff44;
}

.p2p-status.disconnected {
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid #ff4444;
  color: #ff4444;
}

/* WebRTC Connection Status */
.webrtc-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ff00;
  border-radius: 5px;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #00ff00;
  z-index: 1000;
}

.webrtc-status.connected {
  border-color: #44ff44;
  color: #44ff44;
}

.webrtc-status.disconnected {
  border-color: #ff4444;
  color: #ff4444;
}

/* Media Controls */
.media-controls {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.media-btn {
  padding: 0.3rem 0.6rem;
  border: 1px solid #00ff00;
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.media-btn:hover {
  background: rgba(0, 255, 0, 0.2);
  text-shadow: 0 0 5px #00ff00;
}

.media-btn.active {
  background: rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.media-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive P2P Elements */
@media (max-width: 768px) {
  .p2p-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .p2p-notification-buttons {
    flex-direction: column;
  }
  
  .remote-video {
    max-height: 200px;
  }
  
  .webrtc-status {
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
  }
}

/* File Upload Interface */
.file-upload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upload-container {
    background: var(--terminal-bg);
    border: 2px solid var(--terminal-green);
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.upload-container h3 {
    margin: 0 0 20px 0;
    color: var(--terminal-green);
    text-align: center;
}

.upload-area {
    border: 2px dashed var(--terminal-green);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--terminal-bright-green);
}

.upload-area.dragover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--terminal-bright-green);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 0;
    color: var(--terminal-text);
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--terminal-dark);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--terminal-green);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--terminal-text);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-close:hover {
    color: var(--terminal-red);
}

/* File System Enhancements */
.file-listing {
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.file-icon {
    margin-right: 8px;
    font-size: 16px;
}

.file-storage {
    margin-right: 8px;
    font-size: 14px;
}

.file-name {
    flex: 1;
    color: var(--terminal-text);
}

.file-size {
    color: var(--terminal-dim);
    margin-right: 15px;
    text-align: right;
    min-width: 80px;
}

.file-date {
    color: var(--terminal-dim);
    min-width: 120px;
}

/* File type colors */
.file-type-text { color: var(--terminal-text); }
.file-type-image { color: var(--terminal-blue); }
.file-type-document { color: var(--terminal-yellow); }
.file-type-archive { color: var(--terminal-magenta); }
.file-type-code { color: var(--terminal-cyan); }

/* Storage indicators */
.storage-local { color: var(--terminal-dim); }
.storage-server { color: var(--terminal-green); }

/* File operation feedback */
.file-success { color: var(--terminal-green); }
.file-error { color: var(--terminal-red); }
.file-warning { color: var(--terminal-yellow); }
.file-info { color: var(--terminal-blue); }

/* Drag and Drop Overlay */
.drag-drop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}

.drag-drop-content {
  text-align: center;
  padding: 2rem;
  border: 2px dashed #00ff00;
  border-radius: 10px;
  background: rgba(0, 255, 0, 0.05);
  min-width: 300px;
  max-width: 500px;
}

.drag-drop-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.drag-drop-content h3 {
  color: #00ff00;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  text-shadow: 0 0 10px #00ff00;
}

.drag-drop-content p {
  color: #00cc00;
  margin: 0.5rem 0;
  font-size: 1rem;
}

.drag-drop-upgrade {
  color: #00ffff !important;
  font-size: 0.9rem;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Enhanced upload progress */
.upload-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff00, #00cc00);
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Blog Post Card Actions */
.card-actions {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.read-post-btn {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 0.5rem 1rem;
  font-family: var(--font-stack);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.read-post-btn:hover {
  background: rgba(0, 255, 0, 0.2);
  border-color: #44ff44;
  color: #44ff44;
  text-shadow: 0 0 8px #44ff44;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  transform: translateY(-1px);
}

.read-post-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.read-post-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.3);
}

/* Blog Content Styling */
.blog-meta {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 5px;
  padding: 1rem;
  margin: 1rem 0;
}

.blog-meta p {
  margin: 0.5rem 0;
  color: #00cc00;
}

.blog-content {
  line-height: 1.6;
  margin: 1rem 0;
}

.blog-content p {
  margin: 1rem 0;
}

.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
  color: #00ff00;
  margin: 1.5rem 0 1rem 0;
  text-shadow: 0 0 5px #00ff00;
}

.blog-content h1 { font-size: 1.8rem; }
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.3rem; }
.blog-content h4 { font-size: 1.1rem; }

.blog-content ul, .blog-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin: 0.5rem 0;
}

.blog-content blockquote {
  border-left: 3px solid #00ff00;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #00cc00;
}

.blog-content code {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  font-family: var(--font-stack);
  color: #00ff00;
}

.blog-content pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 5px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.blog-content pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Connect Button (P2P) */
.connect-btn {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-stack);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
  margin-left: 0.5rem;
}

.connect-btn:hover {
  background: rgba(0, 255, 0, 0.2);
  border-color: #44ff44;
  color: #44ff44;
  text-shadow: 0 0 8px #44ff44;
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
  transform: translateY(-1px);
}

.connect-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.connect-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.3);
}

/* Reply Button (Messaging) */
.reply-btn {
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid #2196F3;
  color: #2196F3;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-stack);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px #2196F3;
  box-shadow: 0 0 8px rgba(33, 150, 243, 0.2);
}

.reply-btn:hover {
  background: rgba(33, 150, 243, 0.2);
  border-color: #42A5F5;
  color: #42A5F5;
  text-shadow: 0 0 8px #42A5F5;
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.3);
  transform: translateY(-1px);
}

.reply-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.2);
}

.reply-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

/* File Action Buttons */
.file-action-btn {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 0.2rem 0.4rem;
  font-family: var(--font-stack);
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px #00ff00;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
}

.file-action-btn:hover {
  background: rgba(0, 255, 0, 0.2);
  border-color: #44ff44;
  color: #44ff44;
  text-shadow: 0 0 5px #44ff44;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
  transform: translateY(-1px);
}

.file-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 3px rgba(0, 255, 0, 0.2);
}

.file-action-btn:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 255, 0, 0.3);
}

/* File Listing Styles */
.file-listing {
  margin: 1rem 0;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 0, 0.1);
  transition: background-color 0.2s ease;
}

.file-item:hover {
  background: rgba(0, 255, 0, 0.05);
}

.file-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.file-storage {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.file-sync {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  color: #ffff44;
  text-shadow: 0 0 5px #ffff44;
}

.file-name {
  flex: 1;
  font-weight: bold;
  margin-right: 1rem;
}

.file-size {
  margin-right: 1rem;
  font-family: monospace;
  color: #00cc00;
}

.file-date {
  margin-right: 1rem;
  font-size: 0.9rem;
  color: #00cc00;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

/* Responsive adjustments for file listing */
@media (max-width: 768px) {
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .file-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .file-action-btn {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
  }
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.6;
    color: var(--font-color);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-weight: bold;
}

.markdown-content h1 { font-size: 2rem; }
.markdown-content h2 { font-size: 1.7rem; }
.markdown-content h3 { font-size: 1.4rem; }
.markdown-content h4 { font-size: 1.2rem; }
.markdown-content h5 { font-size: 1.1rem; }
.markdown-content h6 { font-size: 1rem; }

.markdown-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(0, 255, 0, 0.05);
    font-style: italic;
}

.markdown-content blockquote p {
    margin: 0;
}

.markdown-content code {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-stack);
    font-size: 0.9em;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.markdown-content pre {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

.markdown-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--font-color);
    font-size: 0.9em;
    line-height: 1.4;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--primary-color);
}

.markdown-content th,
.markdown-content td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.markdown-content th {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    font-weight: bold;
}

.markdown-content tr:nth-child(even) {
    background: rgba(0, 255, 0, 0.02);
}

.markdown-content tr:hover {
    background: rgba(0, 255, 0, 0.05);
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s ease;
}

.markdown-content a:hover {
    color: #44ff44;
    border-bottom-color: #44ff44;
    text-shadow: 0 0 5px #44ff44;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    margin: 1rem 0;
}

.markdown-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 2rem 0;
}

.markdown-content strong {
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 3px var(--primary-color);
}

.markdown-content em {
    color: #44ff44;
    font-style: italic;
}

.markdown-content del {
    color: #ff4444;
    text-decoration: line-through;
}

/* Syntax Highlighting Overrides for Terminal Theme */
.markdown-content .token.comment,
.markdown-content .token.prolog,
.markdown-content .token.doctype,
.markdown-content .token.cdata {
    color: #00aa00;
}

.markdown-content .token.punctuation {
    color: #44ff44;
}

.markdown-content .token.property,
.markdown-content .token.tag,
.markdown-content .token.boolean,
.markdown-content .token.number,
.markdown-content .token.constant,
.markdown-content .token.symbol,
.markdown-content .token.deleted {
    color: #ffaa00;
}

.markdown-content .token.selector,
.markdown-content .token.attr-name,
.markdown-content .token.string,
.markdown-content .token.char,
.markdown-content .token.builtin,
.markdown-content .token.inserted {
    color: #00aaff;
}

.markdown-content .token.operator,
.markdown-content .token.entity,
.markdown-content .token.url,
.language-css .token.string,
.language-style .token.string {
    color: #ff44ff;
}

.markdown-content .token.atrule,
.markdown-content .token.attr-value,
.markdown-content .token.keyword {
    color: #44ffff;
}

.markdown-content .token.function,
.markdown-content .token.class-name {
    color: #ffff44;
}

.markdown-content .token.regex,
.markdown-content .token.important,
.markdown-content .token.variable {
    color: #ff8844;
}

.markdown-content .token.important,
.markdown-content .token.bold {
    font-weight: bold;
}

.markdown-content .token.italic {
    font-style: italic;
}

.markdown-content .token.entity {
    cursor: help;
}

/* Markdown Error Styling */
.markdown-error {
    color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Responsive Markdown */
@media (max-width: 768px) {
    .markdown-content h1 { font-size: 1.6rem; }
    .markdown-content h2 { font-size: 1.4rem; }
    .markdown-content h3 { font-size: 1.2rem; }
    .markdown-content h4 { font-size: 1.1rem; }
    .markdown-content h5 { font-size: 1rem; }
    .markdown-content h6 { font-size: 0.9rem; }
    
    .markdown-content pre {
        padding: 0.75rem;
        font-size: 0.8em;
    }
    
    .markdown-content table {
        font-size: 0.9em;
    }
    
    .markdown-content th,
    .markdown-content td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .markdown-content h1 { font-size: 1.4rem; }
    .markdown-content h2 { font-size: 1.2rem; }
    .markdown-content h3 { font-size: 1.1rem; }
    .markdown-content h4 { font-size: 1rem; }
    .markdown-content h5 { font-size: 0.9rem; }
    .markdown-content h6 { font-size: 0.8rem; }
    
    .markdown-content pre {
        padding: 0.5rem;
        font-size: 0.75em;
    }
    
    .markdown-content table {
        font-size: 0.8em;
    }
    
    .markdown-content th,
    .markdown-content td {
        padding: 0.25rem;
    }
}

/* reCAPTCHA Styling */
.recaptcha-container {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  border-radius: 5px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.recaptcha-container h3 {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
  margin-top: 0;
  margin-bottom: 1rem;
}

.recaptcha-container p {
  color: #cccccc;
  margin-bottom: 1rem;
}

.recaptcha-container .g-recaptcha {
  display: inline-block;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 3px;
  padding: 5px;
}

.captcha-submit-btn {
  background: linear-gradient(135deg, #00ff00, #00cc00);
  color: #000000;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-family: var(--font-stack);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  text-shadow: none;
}

.captcha-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #44ff44, #00ff00);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.captcha-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.2);
}

.captcha-submit-btn:disabled {
  background: linear-gradient(135deg, #666666, #444444);
  color: #999999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.captcha-submit-btn:focus {
  outline: 2px solid #00ff00;
  outline-offset: 2px;
}

/* reCAPTCHA responsive adjustments */
@media (max-width: 768px) {
  .recaptcha-container {
    padding: 1rem;
    margin: 0.5rem 0;
  }
  
  .recaptcha-container .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }
  
  .captcha-submit-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .recaptcha-container .g-recaptcha {
    transform: scale(0.75);
  }
  
  .captcha-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}