:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  --card-hover-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --bg-soft: #f8fafc;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Layout container ayarı */
.container-wrapper {
  flex: 1 0 auto;
  width: 100%;
}

footer {
  flex-shrink: 0;
}

main {
  display: block;
  padding-top: 20px;
}

.dashboard-container {
  padding: 40px 0;
  background-color: var(--bg-soft);
  min-height: 100vh; /* Sayfa boyu kadar gri arka plan */
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 28px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-outline-dark {
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* Hero Section Refined */
.hero-section {
  background-color: #ffffff;
  color: var(--text-main);
  padding: 60px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Accordion Styles */
.accordion-item {
    border: none !important;
    background: transparent !important;
    margin-bottom: 1.5rem;
}

.accordion-button {
    border-radius: 20px !important;
    padding: 0 !important;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    box-shadow: none !important;
}

.accordion-button::after {
    margin-right: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-collapse {
    border: none !important;
}

/* Dashboard Specifics */
.dashboard-container {
  padding: 40px 0;
  background-color: var(--bg-soft);
  min-height: calc(100vh - 200px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 24px;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--card-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.dash-card-header {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Profile Area */
.profile-img-container {
  text-align: center;
  margin-bottom: 20px;
}

.profile-img-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.personality-box {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.personality-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

/* Events Area */
.event-rect {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border-left: 6px solid var(--primary-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.event-rect:hover {
  transform: scale(1.01);
}

.past-event-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
}

.past-event-item:last-child {
  border-bottom: none;
}

.rating-smiles {
  display: flex;
  gap: 12px;
  font-size: 1.5rem;
  cursor: pointer;
}

.smile-btn {
  opacity: 0.4;
  transition: all 0.2s ease;
}

.smile-btn:hover, .smile-btn.active {
  opacity: 1;
  transform: scale(1.2);
}

/* Badges */
.badge-item {
  width: 50px;
  height: 50px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  filter: grayscale(1);
  opacity: 0.5;
}

.badge-item.earned {
  filter: none;
  opacity: 1;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

/* Info Links */
.info-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-link:hover {
  color: var(--primary-color);
}

/* Network Illustration Area */
.network-viz {
  position: relative;
  height: 450px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  border: 8px solid #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.dots-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  background-image: radial-gradient(#3b82f6 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Onboarding & Flow Specifics */
.flow-container {
  max-width: 800px;
  margin: 40px auto;
}

.onboarding-stepper {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.step-indicator.active {
  opacity: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-control {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Test Page Specifics */
.likert-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .likert-container {
    flex-direction: column;
  }
}

.likert-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-align: center;
}

.likert-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #eff6ff;
}

.likert-btn.selected {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.question-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 16px;
  display: block;
}

.interactive-choice {
  cursor: pointer;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  text-align: center;
}

.interactive-choice:hover {
  border-color: var(--primary-color);
  background: #f8fafc;
}

/* Events Page Specifics */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 32px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--card-shadow);
}

.month-display {
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 150px;
  text-align: center;
}

.event-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.event-date-badge {
  width: 50px;
  height: 50px;
  background: #eff6ff;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

/* Admin Specifics */
/* Gold Link for Admin */
.nav-link-gold {
  color: #d4af37 !important; /* Gold color */
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.nav-link-gold:hover {
  color: #f9d71c !important; /* Brighter gold on hover */
  transform: scale(1.05);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.nav-attention {
    background-color: #ffc107 !important; /* Bootstrap warning color */
    color: #000 !important;
    border-radius: 5px;
    animation: pulse-warning 2s infinite;
    font-weight: 600;
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid #f1f5f9;
  height: 100%;
  padding: 24px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.admin-nav-link:hover, .admin-nav-link.active {
  background: #eff6ff;
  color: var(--primary-color);
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--card-shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.admin-table tr {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.admin-table td, .admin-table th {
  padding: 16px;
  border: none;
}

.admin-table tr td:first-child {
  border-radius: 12px 0 0 12px;
}

.admin-table tr td:last-child {
  border-radius: 0 12px 12px 0;
}

.admin-tile {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
  display: block;
  box-shadow: var(--card-shadow);
}

.admin-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-color);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
