:root {
  --primary-color: #dc2626;
  --secondary-color: #7c2d12;
  --accent-color: #f59e0b;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  
  --gradient-danger: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--neutral-800);
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: var(--gradient-danger);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-lg);
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.warning-banner {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nav a {
  background: white;
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.nav a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.main {
  min-height: 60vh;
}

.section {
  display: none;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.section.active {
  display: block;
}

.section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.vulnerability-info {
  background: #fef2f2;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
}

.vulnerability-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.vuln-list {
  list-style: none;
}

.vuln-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vuln-number {
  background: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.blog-posts {
  margin-top: 2rem;
}

.post {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
}

.post h4 {
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.post small {
  color: var(--neutral-600);
}

.post a {
  color: var(--primary-color);
  text-decoration: none;
}

.post a:hover {
  text-decoration: underline;
}

.form-container, .search-container, .upload-container, .profile-container {
  max-width: 600px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--neutral-700);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group small {
  color: var(--neutral-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

button {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.login-hints, .search-hints, .upload-hints {
  background: #fff7ed;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  border: 1px solid var(--warning-color);
}

.login-hints p, .search-hints p, .upload-hints p {
  margin-bottom: 0.5rem;
}

.login-hints code, .search-hints code, .upload-hints code {
  background: var(--neutral-200);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary-color);
  font-weight: 600;
}

.admin-content {
  background: #fef2f2;
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px dashed var(--primary-color);
}

.access-warning {
  background: var(--warning-color);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.user-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.user-item {
  padding: 1rem;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.user-item a {
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.user-item a:hover {
  background: var(--primary-color);
  color: white;
}

.system-info {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
}

.system-info p {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: var(--neutral-100);
  border-radius: 4px;
}

.search-results {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--neutral-100);
  border-radius: 8px;
  min-height: 100px;
}

.profile-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--neutral-200);
}

.profile-actions h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.profile-actions button {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.footer {
  background: var(--neutral-800);
  color: white;
  padding: 2rem 0;
  text-align: center;
  border-radius: 20px 20px 0 0;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-600);
}

.footer-info p {
  font-size: 0.875rem;
  color: var(--neutral-400);
}

.creator-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.creator-info h3 {
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.creator-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.creator-info em {
  color: var(--accent-color);
  font-style: italic;
}

#sessionId {
  color: var(--warning-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nav a {
    width: 200px;
    text-align: center;
  }
  
  .section {
    padding: 1.5rem;
  }
  
  .user-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .profile-actions button {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .header {
    padding: 1.5rem 0;
  }
  
  .header h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 1rem;
  }
}