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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef1f6 100%);
  color: #2c3e50;
  padding: 2rem 1rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 2rem;
}

header {
  margin-bottom: 2rem;
}

header h1 {
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #0055d4, #36cfc9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.2rem;
}

header p {
  color: #555;
  font-size: 1rem;
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus {
  border-color: #0055d4;
  outline: none;
}

input[type="file"] {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  background: #f9f9f9;
}

.tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.tab {
  padding: 0.8rem 1.2rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #777;
  transition: color 0.2s, border-color 0.2s;
}

.tab.active {
  color: #0055d4;
  border-bottom-color: #0055d4;
}

.tab-content {
  margin-bottom: 1rem;
}

.tab-content.hidden {
  display: none;
}

button {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  opacity: 0.9;
}

#analyzeBtn,
#analyzeUrlBtn {
  background: linear-gradient(90deg, #007acc, #36cfc9);
  color: white;
  font-weight: 600;
}

.results-section {
  margin-top: 2rem;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  background: #f9f9fd;
}

.result-section {
  margin-top: 1.2rem;
}

.result-section ul {
  list-style: none;
  padding-left: 0;
}

.result-section li {
  margin-bottom: 0.6rem;
  padding: 0.6rem;
  background: #f0f7ff;
  border-radius: 8px;
  border: 1px solid #d0e6ff;
}

.result-section li strong {
  color: #0055d4;
}

.tables {
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: left;
  font-size: 0.9rem;
}

table th {
  background: #eef2f7;
  font-weight: 600;
}

#errorText {
  color: #d32f2f;
  padding: 0.8rem;
  background: #ffebee;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
}

.loading {
  margin: 1rem 0;
  padding: 0.8rem;
  background: #f0f4ff;
  border-radius: 8px;
  text-align: center;
  color: #333;
}