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

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

/* LOGIN PAGE */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.card {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 60px;
  text-align: center;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}

.subtitle {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 30px;
  font-size: 14px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
}

input::placeholder, textarea::placeholder {
  color: #6b7280;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

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

.btn-primary:active {
  transform: translateY(0);
}

.info {
  margin-top: 20px;
  padding: 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
  text-align: center;
}

.info small {
  color: #93c5fd;
}

/* DASHBOARD */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-small {
  font-size: 32px;
}

header h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 0;
}

.btn-logout {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid #dc2626;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.dashboard {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 30px 40px;
  min-height: calc(100vh - 140px);
}

/* SIDEBAR */
.sidebar {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  height: fit-content;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 18px;
}

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-btn {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 15px;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.mode-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.mode-info {
  margin-top: 30px;
  padding: 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
}

.mode-info h4 {
  color: #93c5fd;
  margin-bottom: 8px;
  font-size: 16px;
}

.mode-info p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
}

/* CONTENT */
.content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-section, .output-section {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-section h3, .output-section h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 20px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

.btn-generate {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 15px;
}

.btn-generate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.btn-copy {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-copy:hover {
  background: rgba(59, 130, 246, 0.3);
}

.output-box {
  background: rgba(2, 6, 23, 0.8);
  color: #d1d5db;
  padding: 25px;
  border-radius: 10px;
  white-space: pre-wrap;
  line-height: 1.8;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  min-height: 300px;
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.output-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.output-box::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 10px;
}

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

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  header {
    padding: 15px 20px;
  }
  
  .dashboard {
    padding: 20px;
  }
  
  .card {
    padding: 30px 25px;
  }
}
