:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #f72585;
  --text-color: #2b2d42;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --success-color: #4cc9f0;
  --warning-color: #f8961e;
  --error-color: #ef233c;
}

/* Base Styles */
body {
  background-color: #f5f7fa;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-bg);
}

/* Scrollbar (modern) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Typography */
h1, h2, .maintitle {
  font-family: 'Poppins', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }

p, td, th, .gen, .genmed, .gensmall {
  font-size: 15px;
  color: var(--text-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Tables & Structure */
.bodyline {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: none;
  overflow: hidden;
}

.forumline {
  border: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  font-weight: 600;
  padding: 12px 15px;
  border: none !important;
}

td {
  padding: 10px 15px;
}

td.row1 { background-color: rgba(67, 97, 238, 0.05); }
td.row2 { background-color: rgba(67, 97, 238, 0.1); }
td.row3 { background-color: rgba(67, 97, 238, 0.15); }

/* Buttons & Forms */
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  outline: none;
}

input.button, input.mainoption {
  background: var(--primary-color);
  color: white !important;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

input.button:hover, input.mainoption:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Special Elements */
.code {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  color: #d63384;
}

.quote {
  background: #f8f9fa;
  border-left: 3px solid var(--primary-color);
  padding: 10px 15px;
  margin: 10px 0;
  font-style: italic;
}

/* Modern Pagination */
.pgbutt a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  margin: 0 2px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.2s;
}

.pgbutt a:hover {
  background: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* QR Code (modernized) */
#qr img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#qr img:hover {
  transform: scale(5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* Avatar Placeholder */
.guestavatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4cc9f0, #4361ee);
  color: white;
  font-size: 36px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .bodyline, .forumline {
    border-radius: 0;
  }
  
  th, td {
    padding: 8px 10px;
  }
}