/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0e1a;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar {
  background-color: #1a1f2e;
  border-bottom: 1px solid #2d3748;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4299e1;
  text-decoration: none;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #a0aec0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: #2d3748;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Centering utilities */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-text {
  text-align: center;
}

.center-block {
  margin: 0 auto;
}

.main-content {
  flex: 1;
  padding: 3rem 0;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4299e1, #9f7aea, #48bb78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a0aec0;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms */
.paste-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: #1a1f2e;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #2d3748;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ffffff;
}

.form-input,
.form-select,
.code-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #4a5568;
  border-radius: 8px;
  background-color: #0a0e1a;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.code-textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.code-textarea {
  font-family: 'Courier New', monospace;
  min-height: 300px;
  resize: vertical;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: #3182ce;
  color: white;
}

.btn-primary:hover {
  background-color: #2c5282;
  color: white;
}

.btn-secondary {
  background-color: #4a5568;
  color: #ffffff;
  border: 1px solid #718096;
}

.btn-secondary:hover {
  background-color: #718096;
  color: #ffffff;
}

.btn-danger {
  background-color: transparent;
  color: #f87171;
  border: 1px solid #f87171;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background-color: #f87171;
  border-color: #f87171;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.25);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  min-width: auto;
}

.btn-sm .btn-icon {
  width: 14px;
  height: 14px;
  margin-right: 0.3rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Paste View */
.paste-view {
  padding: 2rem 0;
}

.paste-header {
  background-color: #1a1f2e;
  padding: 2rem;
  border-radius: 12px 12px 0 0;
  border: 1px solid #2d3748;
  border-bottom: none;
  flex-wrap: wrap;
  gap: 1rem;
}

.paste-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2d3748;
  word-break: break-word;
}

.paste-header .paste-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.paste-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.paste-language {
  background-color: #3182ce;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.paste-date,
.paste-expires {
  color: #a0aec0;
  font-size: 0.875rem;
}

.paste-permanent {
  color: #48bb78;
  font-size: 0.875rem;
  font-weight: 600;
}

.paste-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.paste-content {
  background-color: #0a0e1a;
  border: 1px solid #2d3748;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.code-container {
  overflow-x: auto;
}

.code-container pre {
  margin: 0;
  padding: 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  background: transparent;
  color: #ffffff;
}

.code-container code {
  font-family: inherit;
}

/* Auth Pages */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.auth-card {
  background-color: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 3rem;
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #2d3748;
}

.auth-link {
  color: #4299e1;
  font-weight: 600;
}

/* Dashboard */
.dashboard-section {
  padding: 2rem 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #4299e1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #a0aec0;
}

.pastes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.paste-card {
  background-color: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.paste-card:hover {
  transform: translateY(-2px);
}

.paste-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.paste-id {
  color: #a0aec0;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.paste-preview {
  background-color: #0a0e1a;
  border: 1px solid #2d3748;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #a0aec0;
  overflow: hidden;
  max-height: 100px;
  margin-bottom: 1rem;
}

.paste-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: rgba(245, 101, 101, 0.1);
  border: 1px solid #f56565;
  color: #fed7d7;
}

/* Footer */
.footer {
  background-color: #1a1f2e;
  border-top: 1px solid #2d3748;
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
  color: #a0aec0;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background-color: #1a1f2e;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #0a0e1a;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: #4299e1;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.feature-card p {
  color: #a0aec0;
  margin: 0;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .nav-left,
  .nav-right {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .paste-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .paste-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .paste-form {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 8px;
  }
  
  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 8px;
  }
  
  .auth-section {
    padding: 2rem 0;
  }
  
  .main-content {
    padding: 2rem 0;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .form-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .auth-card {
    padding: 1.25rem;
    margin: 0.5rem;
  }
  
  .paste-form {
    padding: 1.25rem;
    margin: 0.5rem;
  }
  
  .nav-left,
  .nav-right {
    gap: 0.75rem;
  }
  
  .btn-full {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* Syntax Highlighting */
.highlight {
  background: transparent !important;
}

.highlight pre {
  background: transparent !important;
  color: #ffffff !important;
}

.highlight .c { color: #718096; font-style: italic; }
.highlight .k { color: #9f7aea; font-weight: bold; }
.highlight .l { color: #4299e1; }
.highlight .n { color: #ffffff; }
.highlight .o { color: #ed8936; }
.highlight .p { color: #ffffff; }
.highlight .s { color: #48bb78; }
.highlight .nb { color: #4299e1; }
.highlight .nc { color: #f6e05e; }
.highlight .nf { color: #9f7aea; }
.highlight .nt { color: #ed8936; }
.highlight .nv { color: #f6e05e; }
.highlight .mi { color: #4299e1; }
.highlight .mf { color: #4299e1; }
.highlight .s1 { color: #48bb78; }
.highlight .s2 { color: #48bb78; }
.highlight .cm { color: #718096; font-style: italic; }
.highlight .cp { color: #ed8936; }
.highlight .c1 { color: #718096; font-style: italic; }

/* Password Requirements Styling */
.password-requirements {
  margin-top: 0.75rem;
  padding: 1rem;
  background-color: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 8px;
  font-size: 0.875rem;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.requirement:last-child {
  margin-bottom: 0;
}

.req-icon {
  font-weight: bold;
  font-size: 0.75rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #e53e3e;
  color: #ffffff;
  flex-shrink: 0;
}

.requirement.valid .req-icon {
  background-color: #38a169;
}

.req-text {
  color: #a0aec0;
}

.requirement.valid .req-text {
  color: #68d391;
}

/* Password Reset Styles */
.reset-section {
  padding: 3rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.reset-card {
  background-color: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.reset-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reset-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.reset-header p {
  color: #a0aec0;
  font-size: 1rem;
}

.reset-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reset-success {
  background-color: #065f46;
  border: 1px solid #059669;
  color: #6ee7b7;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.reset-success svg {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Secondary button style */
.btn-secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #ffffff;
  border: 1px solid #4b5563;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #4b5563, #374151);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 85, 99, 0.4);
}

/* Dashboard actions spacing */
.dashboard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .dashboard-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dashboard-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Forgot password note styling */
.forgot-password-note {
  margin-top: 1rem;
  text-align: center;
  opacity: 0.7;
}

.forgot-password-note small {
  color: #a0aec0;
  font-size: 0.8rem;
}