/* style.css */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #379cc4;
  background: linear-gradient(90deg, rgba(55, 156, 196, 1) 9%, rgba(76, 184, 155, 1) 32%, rgba(87, 199, 133, 1) 52%, rgba(237, 221, 83, 1) 76%, rgba(237, 221, 83, 1) 88%);
  min-height: 100vh;
  color: #1a1a1a;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}


body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* LOGIN PAGE */
.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.logo h1 {
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.logo span {
  color: #64748b;
  font-size: 16px;
  font-weight: 400;
}

.auth-form {
  margin-top: 40px;
}

.input-group {
  position: relative;
  margin-bottom: 28px;
}

.input-group input {
  width: 100%;
  padding: 20px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
  background: white;
}

.input-group label {
  position: absolute;
  left: 24px;
  top: 20px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.3s ease;
  font-weight: 500;
  z-index: 3 !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
  top: -8px;
  left: 16px;
  font-size: 12px;
  color: #667eea;
  background: white;
  padding: 0 8px;
  border-radius: 6px;
}

.auth-form .btn-primary {
  width: 100%;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.switch-link {
  color: #64748b;
  font-size: 14px;
}

.switch-link a {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
}

.switch-link a:hover {
  text-decoration: underline;
}

/* APP PAGE*/
.app-page {
  min-height: 100vh;
}

.app-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 24px 32px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.username {
  font-weight: 500;
  color: #64748b;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.btn-logout {
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Todo Input Section */
.todo-input-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group.large {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

#newTaskInput {
  flex: 1;
  padding: 20px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
}

#newTaskInput:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.btn-add {
  padding: 20px 32px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Tasks Section */
.tasks-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tasks-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.stats {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 20px 32px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Tasks List */
.tasks-list {
  list-style: none;
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  max-height: 600px;
}

.task-item {
  padding: 20px;
  margin-bottom: 16px;
  background: white;
  border-radius: 16px;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.task-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.task-item.completed {
  opacity: 0.7;
  border-left-color: #10b981;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-checkbox.checked {
  background: #10b981;
  border-color: #10b981;
}

.task-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.task-content {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
}

.task-content.completed {
  text-decoration: line-through;
  color: #94a3b8;
}

.task-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.task-item:hover .task-actions {
  opacity: 1;
}

.btn-edit,
.btn-delete {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit {
  background: #3b82f6;
  color: white;
}

.btn-edit:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.btn-delete {
  background: #ef4444;
  color: white;
}

.btn-delete:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: #64748b;
}

.empty-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 24px;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1e293b;
}

.empty-state p {
  font-size: 16px;
}

/* Edit Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease;
}

.modal.active {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

#editTaskInput {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

#editTaskInput:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Scrollbar */
.tasks-list::-webkit-scrollbar {
  width: 8px;
}

.tasks-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.tasks-list::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 4px;
}

.tasks-list::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .app-container {
    padding: 16px;
  }

  .glass-card {
    padding: 40px 32px;
    margin: 20px;
  }

  .app-header {
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 8px;
  }

  .input-group.large {
    flex-direction: column;
  }

  .tasks-stats {
    flex-direction: column;
    align-items: center;
  }

  .modal-content {
    padding: 32px 24px;
    margin: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 32px;
  }

  .glass-card {
    padding: 32px 24px;
  }

  .logo {
    font-size: 24px;
  }

  .stat-number {
    font-size: 28px;
  }
}

/* Task buttons*/
.task-actions button {
  padding: 8px 12px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-edit {
  background: #3b82f6 !important;
  color: white !important;
}

.btn-edit:hover {
  background: #2563eb !important;
  transform: scale(1.05);
}

.btn-delete {
  background: #ef4444 !important;
  color: white !important;
}

.btn-delete:hover {
  background: #dc2626 !important;
  transform: scale(1.05);
}

.task-actions {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.task-item:hover .task-actions {
  opacity: 1;
}

/* PASSWORD GENERATOR PAGE */

.generator-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.password-display {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 2rem;
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #6e51b1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.password-display.strong {
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
  border-color: #667eea;
}

.password-display.weak {
  box-shadow: 0 0 20px rgba(14, 100, 180, 0.3);
  border-color: #667eea;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-group label {
  font-weight: 500;
  color: rgba(2, 2, 2, 0.9);
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4facfe;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(79, 172, 254, 0.4);
}

.length-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4facfe;
  text-align: center;
}

.generate-btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  height: 56px;
}

.copy-section {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;

}

.btn-copy {
  padding: 0.75rem 1.5rem;
  background: rgba(13, 84, 165, 0.418);
  border: 1px solid rgb(36, 19, 75);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.copy-status {
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-status.show {
  opacity: 1;
  color: #28a745;
}

#copyBtn:not(.copied) {
  transition: all 0.3s ease;
}

/* Dashboard */
.dashboard-section {
  flex: 1;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.tool-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.tool-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.tool-content p {
  color: #64748b;
  font-size: 16px;
}

.tool-arrow {
  margin-left: auto;
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
}

/* Tool pages */
.tool-section .glass-card.large {
  max-width: 1000px;
  margin: 0 auto;
}

.back-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-link:hover {
  text-decoration: underline;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px 0;
}

.upload-zone {
  border: 3px dashed #e2e8f0;
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
}

.upload-zone.highlight {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.upload-zone h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.upload-zone p {
  color: #64748b;
  font-size: 16px;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.rpn-input-section {
  margin-bottom: 48px;
}

.result-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  margin-top: 24px;
}

.result-box.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.result-box.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.history-section,
.examples-section {
  margin-top: 48px;
}

.history-section h4,
.examples-section h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1e293b;
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Courier New', monospace;
}

.history-item:last-child {
  border-bottom: none;
}

.expr {
  color: #1e293b;
  font-weight: 500;
}

.result {
  color: #10b981;
  font-weight: 600;
}

.time {
  color: #64748b;
  font-size: 14px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.btn-example {
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-example:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.results-section {
  margin-top: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 равные колонки */
  gap: 24px;
  margin-top: 32px;
}

.result-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 24px;
  max-height: 350px; /* Одинаковая высота */
  overflow-y: auto;
}

.result-card.full {
  flex: 1 1 100%;
  max-height: 400px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .results-grid {
    flex-direction: column;
  }

  .result-card {
    max-width: 100%;
  }
}

.ip {
  color: #64748b;
  font-size: 14px;
}

.method {
  color: #1e293b;
}

.count {
  font-weight: 600;
  color: #10b981;
}

.error-url {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 4px solid #ef4444;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  word-break: break-all;
}

.no-results {
  padding: 40px;
  text-align: center;
  color: #10b981;
  font-size: 18px;
}

.btn-primary.large {
  padding: 20px 48px;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }
}

/* Password Generator */
.generator-section {
  max-width: 600px;
  margin: 0 auto;
}

.password-box {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 40px;
  font-family: 'Courier New', monospace;
  font-size: 24px;
  text-align: center;
  letter-spacing: 2px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: all 0.3s ease;
  word-break: break-all;
}

.password-box.generated {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  font-size: 20px;
  letter-spacing: 1px;
}

.password-box.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.copy-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-copy {
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-copy.copied {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.copy-status {
  font-weight: 500;
  min-width: 120px;
}

.copy-status.success {
  color: #10b981;
}

.copy-status.error {
  color: #ef4444;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.setting-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1e293b;
  font-size: 16px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.length-value {
  font-weight: 700;
  font-size: 24px;
  color: #667eea;
  min-width: 40px;
  text-align: center;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.checkbox-label:hover {
  background: rgba(102, 126, 234, 0.05);
}

.checkbox-label input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input:checked+.checkmark {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
}

.checkbox-label input:checked+.checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.strength-indicator {
  text-align: center;
  margin-top: 32px;
}

.strength-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.strength-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease, background 0.3s ease;
}

.strength-fill.weak {
  background: #ef4444;
}

.strength-fill.medium {
  background: #f59e0b;
}

.strength-fill.good {
  background: #10b981;
}

.strength-fill.excellent {
  background: linear-gradient(135deg, #10b981, #059669);
}

.strength-text {
  font-weight: 600;
  font-size: 18px;
}

.btn-primary.large {
  width: 100%;
  padding: 24px;
  font-size: 18px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .password-box {
    font-size: 20px;
    padding: 24px 32px;
  }
}