:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* Navigation */
nav {
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

/* Buttons */
.btn {
  background-color: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
  font-size: 0.95rem;
  text-align: center;
}

.btn:hover { 
  background-color: var(--primary-hover); 
}

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

/* Modal & Popups */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.login-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #0f172a;
  color: white;
  padding: 2rem 1rem;
}

.sidebar h2 { 
  margin-bottom: 2rem; 
  color: #818cf8; 
  font-size: 1.3rem;
  text-align: center;
}

.sidebar ul { 
  list-style: none; 
  padding: 0; 
  margin: 0;
}

.sidebar li { 
  margin-bottom: 0.8rem; 
}

.sidebar a { 
  color: #94a3b8; 
  text-decoration: none; 
  display: block; 
  padding: 0.7rem 1rem; 
  border-radius: 6px; 
  transition: 0.2s;
}

.sidebar a.active, 
.sidebar a:hover { 
  background: #1e293b; 
  color: white; 
}

.content {
  flex: 1;
  padding: 2.5rem;
  background-color: var(--bg-color);
}

.dashboard-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* User & Data Tables */
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.user-table th, 
.user-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.user-table th { 
  background: #f1f5f9; 
  font-weight: 600;
  color: #475569;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 99;
}

/* Index Page Specific Styles */
.hero-section {
  text-align: center;
  padding: 6rem 1rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.btn-hero {
  background: white !important;
  color: #4f46e5 !important;
  font-weight: bold;
}

.btn-register {
  background: #10b981 !important;
  padding: 0.4rem 1rem !important;
}

.btn-login {
  padding: 0.4rem 1rem !important;
}

.about-section {
  padding-top: 4rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.about-text h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.about-text p {
  line-height: 1.6;
  color: #475569;
}

.btn-insta {
  margin-top: 1rem;
}

.gallery-section {
  padding-top: 5rem;
}

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

.gallery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-info {
  padding: 1.5rem;
}

.gallery-info p {
  color: #64748b;
  font-size: 0.95rem;
}

.contact-section {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-icon {
  font-size: 1.8rem;
  color: #4f46e5;
  margin-bottom: 1rem;
}

.contact-card a {
  color: #64748b;
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  background: #e2e8f0;
  color: #475569;
  margin-top: 3rem;
}

/* Register / Auth Page Styles */
.auth-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-color);
}

.auth-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.auth-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-color);
}

.auth-card label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-card input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  display: block;
  text-decoration: none;
}

.btn-secondary {
  background-color: #64748b !important;
}

.btn-secondary:hover {
  background-color: #475569 !important;
}