:root {
    --primary-color: #4f46e5;
    --secondary-color: #f8fafc;
    --accent-color: #10b981;
    --danger-color: #ef4444;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.dashboard-container {
    background: var(--secondary-color);
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-success {
    background: var(--accent-color);
    border: none;
    border-radius: 10px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: white;
    border-radius: 15px;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    position: relative;
    margin: 15px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #e2e8f0;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
}

.website-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.alert-success {
    border: none;
    background: linear-gradient(135deg, var(--accent-color), #34d399);
    color: white;
    border-radius: 10px;
}

.alert-danger {
    border: none;
    background: linear-gradient(135deg, var(--danger-color), #f87171);
    color: white;
    border-radius: 10px;
}

.brand-logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Recent Activity Section */
.recent-activity {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px 0;
  overflow: hidden; /* keep rounded corners around table */
}

/* Title styling to match brand */
.recent-activity h3 {
  margin: 0 0 16px 0;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.2px;
}

/* Table wrapper for responsiveness */
#activityTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden; /* clip children corners */
  font-size: 14px;
}

/* Table head */
#activityTable thead th {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: white;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  position: sticky;
  top: 0; /* helpful if table scrolls */
  z-index: 1;
}

/* Table rows */
#activityTable tbody tr {
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Zebra striping */
#activityTable tbody tr:nth-child(odd) {
  background: #f9fafb; /* subtle contrast with white */
}

/* Hover lift to match .card:hover feel */
#activityTable tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  background: #f8fafc;
}

/* Table cells */
#activityTable th,
#activityTable td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb; /* soft divider */
}

/* Remove last row divider for clean end */
#activityTable tbody tr:last-child td {
  border-bottom: none;
}

/* Column-specific tweaks */
#activityTable td:nth-child(1) {
  width: 56px;
  color: #6b7280; /* muted index */
}

#activityTable td:nth-child(3) {
  font-family: 'Monaco', 'Courier New', monospace; /* IP looks good monospaced */
  font-size: 13px;
  color: #111827;
  letter-spacing: 0.2px;
}

#activityTable td:nth-child(5) {
  white-space: nowrap; /* keep timestamp on one line */
  color: #374151;
}

/* Status pills (Success/Error) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px; /* pill shape */
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  user-select: none;
}

/* Success pill uses accent gradient */
.status.success {
  color: white;
  background: linear-gradient(135deg, var(--accent-color), #34d399);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* Error pill uses danger gradient */
.status.error {
  color: white;
  background: linear-gradient(135deg, var(--danger-color), #f87171);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

/* Optional icons inside status (if added later) */
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

/* Responsive: stack or scroll on small screens */
@media (max-width: 640px) {
  .recent-activity {
    padding: 16px;
  }
  #activityTable {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 10px;
  }
  #activityTable th,
  #activityTable td {
    padding: 12px 14px;
  }
}
#authSection, #dashboardSection {
  display: none;
}