﻿:root {
  /* Page specific overrides */
}

.password-panel {
  max-width: 1100px;
  margin: 0 auto;
}

.interactive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Result Section */
.result-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.password-display-wrapper {
  position: relative;
  background: transparent;
  padding: 16px 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.password-display-wrapper:hover {
  transform: none;
  box-shadow: none;
}

.password-display-wrapper textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  resize: none;
  outline: none;
  text-align: center;
  cursor: pointer;
  height: auto;
  overflow: hidden;
  padding: 0;
}

.display-actions {
  display: flex;
  justify-content: center;
  margin-top: -8px; 
}
/* 
.password-display-wrapper:hover .display-actions {
  opacity: 1;
} 
*/

.click-hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 99px;
  pointer-events: none;
}

.action-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -8px;
}

/* Settings Section */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.length-control-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.count-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.count-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-2);
  padding: 6px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.count-value {
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  color: var(--text);
}

.count-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.count-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.count-btn:active {
  transform: scale(0.95);
}

.count-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Checkbox styles now inherited from styles.css */


/* Strength Section Compact */
.strength-section-compact {
  background: var(--surface-1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border);
}

.strength-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.strength-badge {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.strength-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center; /* Center align for better look */
}

.metric-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.1rem; /* Increased size */
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace; /* Use monospaced for numbers */
  color: var(--text);
}

.strength-footer-note {
  margin: 0;
  text-align: center; /* Center align */
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .interactive-card {
    padding: 24px; /* Slightly more padding than before 20px */
  }
  
  .password-display-wrapper textarea {
    font-size: 1.8rem;
  }
  
  .options-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }
  
  .strength-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .metric-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border); /* Divider for list view */
    padding-bottom: 8px;
  }
  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
