/* Genel body ayarları - yüklene ekranı varken kaydırmayı engellemek için */
body {
  margin: 0;
  overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

/* Yüklenme Ekranı Stilleri */
#loadingScreen {
  /* ID changed from yuklenmeEkrani */
  position: fixed;
  /* Ekranı tamamen kapla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  /* Beyaz arka plan */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Diğer her şeyin üstünde görünmesini sağla */
  transition: opacity 0.5s ease-out;
  /* Gizlerken yumuşak geçiş */
}

.spinner {
  border: 8px solid #f3f3f3;
  /* Açık gri halka */
  border-top: 8px solid #3498db;
  /* Mavi dönen kısım */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
  /* Daha hızlı dönmesi için 1.5s */
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#loadingScreen p {
  font-size: 1.5em;
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* Ana İçerik Stilleri (Görünür olduğunda opacity geçişi için) */
#mainContent.visible {
  flex-grow: 1;

  /* ID changed from anaIcerik, class changed from gorunur */
  opacity: 1;
}

#mainContent {
  /* ID changed from anaIcerik */
  opacity: 0;
  /* Başlangıçta gizli */
  transition: opacity 1s ease-in-out;
  /* Yavaşça belirginleşmesi için geçiş */
}

/* Genel Stil Ayarları */
:root {
  /* Ana Renkler */
  --primary-green: #1d7a1d; /* Koyu yeşil (2 ton koyulaştırılmış) */
  --darker-green: #154b15; /* Daha koyu yeşil (2 ton koyulaştırılmış) */

  --primary-brown: #723a10; /* ORİJİNAL EN KOYU KAHVERENGİ (Butonlar) */
  --light-brown: #d2be9b; /* ORİJİNAL ÇOK AÇIK KAHVERENGİ (Inputlar) */
  --lighter-brown: #ffffff; /* YENİ BEYAZ (Arka Planlar) - PANDA KÜRKÜ RENGİ */
  --light-blue-bg: #a3d9a3; /* Genel açık arka plan */

  --card-bg: #ffffff; /* Kartların arka planı */

  --text-dark: #333d5a; /* Koyu metin rengi */
  --text-light: #f8f9fa; /* Açık metin rengi */

  --border-light: #e0e0e0; /* Açık kenarlıklar */

  --hover-blue: #3a89be; /* Hover durumları için daha açık mavi */

  --accent-green: #2ecc71; /* Belirli aksanlar, başarılı durumlar için yeşil */
  --accent-orange: #d8632d; /* Uyarı veya belirli aksanlar için turuncu */
  --border-color: rgba(133, 160, 133, 1); /* Yeşilimsi kenarlık rengi  */
  --border-radius-card: 12px; /* Kartlar için daha büyük border-radius */
  --border-radius-sm: 8px; /* Genel küçük elemanlar için */
}

body {
  height: 100%;

  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  /* Genel arka plan rengi: Belirgin bir yeşil ve bambu gölgesi ile yapraklar */
  background-color: #a3d9a3; /* Pastel orta yeşil */
  background-image: url("assets/bambu-pastel-yesil.jpg");
  background-repeat: repeat;
  background-size: cover; /* Eklendi: Görselin tüm alanı kaplamasını sağlar */
}

h1 {
  font-family: "Montserrat", sans-serif;
  color: var(--welcome-color);
  font-size: 2.5em;
  margin-bottom: 15px;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--dark-text);
  margin-bottom: 15px;
}

p {
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color-dark);
}

/* Başlık ve Navigasyon */
.main-header {
  background: linear-gradient(
    135deg,
    rgba(10, 68, 8, 0.6),
    rgba(165, 231, 165, 0.6)
  );
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  max-width: 1200px;
  margin: 0 40px;
}

.logo {
  font-family: "Montserrat", sans-serif;
  color: #ffffff; /* Gökkuşağı arka planı için beyaz metin */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
  /* Logo üzerine gelindiğinde renk değişimi */
  font-weight: 600;
  font-style: italic;
  font-variant: small-caps;
  font-size: 2.3em;
}

.main-header .navbar .nav-links a {
  color: #ffffff; /* Gökkuşağı arka planı için beyaz metin */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--dark-text);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: flex; /* Mobil menü toggle'ı göster */
  position: absolute; /* Header'ın sağ üstüne yerleştir */
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: 0.4s;
}
.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Bölüm Stilleri */
section {
  padding: 80px 0;
  text-align: center;
  /* Tüm bölümler arka planı ana sayfa ile aynı olacak */
  background-color: var(--site-background-green); /* Bölüm arka planı yeşil */
  background-image: url("assets/bambu-pastel-yesil.png");
  background-repeat: repeat;
  background-size: cover;
}

section h2 {
  font-size: 3em;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: (var(--primary-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
/* Duyarlı Tasarım */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: var(--light-text);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 70px;
    /* Başlık yüksekliğinize göre ayarlayın */
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  section h2 {
    font-size: 2.2em;
  }

  .about-grid,
  .services-grid,
  .team-grid,
  .culture-highlights {
    grid-template-columns: 1fr;
  }

  .main-footer .container {
    flex-direction: column;
    gap: 15px;
  }

  .social-links {
    margin-top: 10px;
  }
}
/* Panda Bölümü - Sohbet Arayüzü */
.panda-section {
  background-color: var(--light-bg);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px; /* Sohbet için yeterli alan sağlayın */
}

#panda-mascot-toggle {
  position: fixed;
  bottom: 20px; /* Ekranın altından 20px yukarıda */
  right: 20px; /* Ekranın sağından 20px solda */
  width: 180px;
  height: auto;
  z-index: 1001; /* Sohbet kutusunun üzerinde olması için daha yüksek z-index */
  animation: float 6s ease-in-out infinite;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

#panda-mascot-toggle img {
  width: 100%;
  height: auto;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

#panda-mascot-toggle img:hover {
  transform: scale(1.05);
}
/* Yükleme göstergesi için küçük spinner */
.spinner-small {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

#loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  color: var(--dark-text);
  font-size: 0.9em;
}

#loading-indicator p {
  margin: 0;
}
/* Panda Asistanı Sohbet Kutusu */
#panda-chat-container {
  position: fixed;
  /* Panda maskotunun hemen üstünde konumlandır */
  bottom: 200px; /* Panda maskotunun yüksekliği (yaklaşık 150px) + bottom değeri (20px) + biraz boşluk (10px) = 180px */
  right: 20px;
  width: 350px; /* Sohbet için genişlik artırıldı */
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Panda maskotundan daha düşük z-index */
  display: flex;
  flex-direction: column;
  max-height: 450px; /* Sohbet geçmişi için maksimum yükseklik */
  overflow: hidden;
}

#panda-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(86, 165, 86, 0.65);
  color: var(--light-text);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

#panda-chat-header h3 {
  margin: 0;
  color: var(--light-text);
  font-size: 1.1em;
}

#close-chat-button {
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.2em;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

#close-chat-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#panda-messages-display {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panda-message-bubble {
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 0.95em;
  line-height: 1.4;
}

.assistant-message {
  background-color: var(--border-light);
  align-self: flex-start;
  color: var(--dark-text);
  border-bottom-left-radius: 5px;
}

.user-message {
  background-color: var(--primary-color);
  color: var(--light-text);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

#panda-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background-color: var(--accent-orange);
}

#userInput {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-right: 10px;
  font-size: 0.9em;
}

#userInput:focus {
  outline: none;
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 2px rgba(42, 116, 36, 0.2);
}

#sendButton {
  background-color: var(--border-light);
  color: var(--primary-brown);
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#sendButton:hover {
  background-color: var(--primary-color-dark);
}

/* Animasyonlar (zaten tanımlı, referans için tutuluyor) */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(2deg);
  }

  60% {
    transform: rotate(-2deg);
  }
}

/* ===== Yeni Çalışan Portalı Düzeni Stilleri ===== */

.employee-portal-layout {
  display: flex;
  min-height: calc(100vh - 70px); /* Header yüksekliğine göre ayarlandı */
}

/* Sol Sidebar */
.sidebar {
  width: 280px;
  background-color: rgba(21, 75, 21, 0.55); /* Koyu yeşil, %55 opaklık */
  color: var(--text-light);
  padding: 25px 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative; /* Mobil menü için */
  z-index: 900; /* Dashboard içeriğinin altında ama header'ın üstünde */
}

.sidebar-header {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar-header h2 {
  color: var(--text-light);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.btn-sidebar-action {
  display: inline-block;
  background-color: var(--accent-green);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-sidebar-action:hover {
  background-color: #3f9 (149, 66%, 35%);
}

.sidebar-nav {
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  color: var(--text-light);
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.05em;
}

.sidebar-nav a i {
  margin-right: 12px;
  font-size: 1.3em;
}

.sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-nav a.active {
  color: #fff;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

/* Ana Dashboard İçeriği */

.dashboard-content {
  flex-grow: 1;
  padding: 30px;
  display: grid;
  gap: 25px;
}

/* Dashboard Kartları */
.dashboard-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: var(--border-radius-card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
}

.dashboard-card h3 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.4em;
  display: flex;
  align-items: center;
}

.dashboard-card h3 i {
  margin-right: 10px;
  color: var(--primary-blue);
}

/* Takvim */
.calendar-grid {
  text-align: center;
  font-size: 0.9em;
}
.calendar-grid .month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 600;
}
.calendar-grid .month-nav button {
  background: none;
  border: 1px solid var(--border-light);
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  color: var(--text-dark);
  transition: background-color 0.2s;
}
.calendar-grid .month-nav button:hover {
  background-color: var(--light-blue-bg);
}
.calendar-grid .days-of-week,
.calendar-grid .dates-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-grid .days-of-week span {
  font-weight: 600;
  color: var(--primary-blue);
}
.calendar-grid .dates-grid span {
  padding: 8px;
  border-radius: 4px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s;
}
.calendar-grid .dates-grid span:hover {
  background-color: var(--light-blue-bg);
}
.calendar-grid .dates-grid .today {
  background-color: var(--accent-green);
  color: #fff;
  font-weight: 700;
}

/* Duyurular */
.announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.announcement-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.95em;
}
.announcement-list li:last-child {
  border-bottom: none;
}
.announcement-list .btn-view {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.announcement-list .btn-view:hover {
  background-color: var(--hover-blue);
}

/* Planner */
.planner-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}
.planner-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.95em;
}
.planner-list li:last-child {
  border-bottom: none;
}

/* Çalışan Kulüpleri */
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  text-align: center;
}
.club-item {
  background-color: rgba(115, 192, 96, 0.6);
  padding: 15px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: background-color 0.2s;
  color: var(--text-dark); /* Metin rengini belirle */
}
.club-item i {
  font-size: 1.5em;
  margin-bottom: 8px;
  color: var(--primary-blue);
}
.club-item:hover {
  background-color: var(--hover-blue);
  color: #fff;
}
.club-item:hover i {
  color: #fff;
}

/* Çalışan Dizini */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
  text-align: center;
}
.employee-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.85em;
}
.employee-avatar-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 5px;
  border: 2px solid var(--primary-blue);
}
.employee-avatar-card span {
  font-weight: 500;
  color: var(--text-dark);
}

/* Görev Atama */
.task-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.task-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}
.task-form input,
.task-form select {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  font-size: 0.95em;
  background-color: rgba(115, 192, 96, 0.3);
  color: var(--text-dark);
}
.task-form input:focus,
.task-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(50, 100, 155, 0.2);
}
.task-form button {
  align-self: flex-end;
}

/* Proje Listesi */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}
.project-list li:last-child {
  border-bottom: none;
}
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95em;
}
.project-status {
  font-size: 0.85em;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--light-blue-bg);
  color: var(--text-dark);
}
.project-status.in-progress {
  background-color: var(--accent-orange);
  color: #fff;
}
.project-status.completed {
  background-color: var(--accent-green);
  color: #fff;
}
.project-status.planning {
  background-color: #a0a0a0;
  color: #fff;
} /* Yeni durum */

.project-progress {
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 5px;
  height: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: var(--primary-blue);
  border-radius: 5px;
  transition: width 0.5s ease-in-out;
}

/* Genel Buton Stili */
.btn-primary {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #000000;
  border-radius: var(--border-radius-sm);
  font-size: 1em;
  font-weight: 600;
  background-color: var(--accent-orange);

  color: var(--text-light); /* Açık metin rengi */
  font-family: "Open Sans", sans-serif;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--hover-blue); /* Hover rengini */
}

/* Altbilgi (Footer) */
.main-footer {
  background-color: var(--site-background-green);
  width: 100%;
  color: var(--text-light);

  text-align: center;
}
.main-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Genişlik otomatik */
  padding: 20px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    rgba(10, 68, 8, 0.6),
    rgba(165, 231, 165, 0.6)
  );
}
.main-footer .social-links a {
  margin: 0 5px; /* Boşlukları düzenle */
}
.main-footer .social-links img {
  filter: invert(100%); /* İkonları beyaza çevir */
}

/* Masaüstü ve daha büyük ekranlar için kartların özel genişlikleri */
@media (min-width: 769px) {
  /* Mobil dışındaki ekranlar için */
  .dashboard-content {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 1 */
  }

  .welcome-card,
  .calendar-card,
  .employee-directory-card {
    grid-column: span 2; /* Bu kartlar 2 sütun genişliğinde yer kaplasın */
  }

  /* 3 sütunlu bir düzen ve bu ikisi bir sırayı dolduruyorsa */
  .project-list-card,
  .task-assignment-card {
    grid-column: span 1;
  }
  /* belirli bir kartın diğerlerinin altına geçmesini engellemek için */
  .some-other-card {
    grid-column: 1 / span 2;
  } /* 1. sütundan başla, 2 sütun kapla */
}

/* Duyarlı Tasarım */
@media (max-width: 768px) {
  .main-header .navbar {
    justify-content: space-between; /* Logo sola, hamburger menü sağa */
    padding: 15px 20px;
  }
  .main-header .menu-toggle {
    position: static; /* Pozisyonu statik yap */
    transform: none; /* Transformu kaldır */
  }
  .nav-links {
    /* Üstteki menü linkleri */
    display: none;
  }
  .discussion-forum-card {
    grid-column: span 1 !important; /* Mobil görünümde tek sütun yer kaplasın */
  }
  .employee-portal-layout {
    flex-direction: column; /* Dikey düzen */
  }

  .sidebar {
    width: 100%; /* Tam genişlik */
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Mobil menü olarak açılıp kapanması için fixed */
    top: 70px; /* Header altından başla */
    left: 0;
    height: calc(100vh - 70px); /* Ekranın geri kalanını kapla */
    overflow-y: auto; /* İçerik taşarsa kaydırılabilir olsun */
    transform: translateX(-100%); /* Başlangıçta ekran dışına gizle */
    transition: transform 0.3s ease-out;
  }

  .sidebar.active {
    /* JavaScript ile toggle edilecek sınıf */
    transform: translateX(0); /* Ekran içine getir */
  }
}
/* --- Discussion Forum Card Stilleri --- */
.discussion-forum-card {
  /* Dashboard kartlarının genel stillerini devralır */
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: var(--border-radius-card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;

  /* Tartışma formu için özel ayarlar */
  grid-column: span 2; /* Masaüstünde 2 sütun genişliğinde yer kaplasın */
  max-height: 300px; /* Maksimum yükseklik 300px */
  overflow-y: auto; /* İçerik taşarsa dikey kaydırma çubuğu çıksın */
}

.discussion-forum-card h3 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.4em;
  display: flex;
  align-items: center;
}

.discussion-forum-card h3 i {
  margin-right: 10px;
  color: var(
    --primary-blue
  ); /* İkon rengi için mevcut bir değişkeni kullanabiliriz */
}

.discussion-post {
  background-color: var(--light-blue-bg); /* Hafif yeşilimsi arka plan */
  border-radius: var(--border-radius-sm);
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.discussion-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.discussion-post-header strong {
  color: var(--text-dark);
  font-size: 1.1em;
}

.discussion-post-header span {
  font-size: 0.85em;
  color: #777;
}

.discussion-post-content {
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
}

.discussion-post-actions {
  display: flex;
  gap: 10px;
  margin-top: auto; /* İçeriğin en altına itilir */
}

.discussion-post-actions button {
  background: none;
  border: none;
  color: var(--primary-green); /* Yeşil tonunda butonlar */
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.discussion-post-actions button i {
  margin-right: 5px;
}

.discussion-post-actions button:hover {
  color: var(--darker-green);
}

.new-post-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
}

.new-post-area textarea {
  width: calc(100% - 20px); /* Padding'i hesaba kat */
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  font-family: "Open Sans", sans-serif;
  font-size: 0.95em;
  background-color: rgba(115, 192, 96, 0.3); /* Açık yeşil arka plan */
  color: var(--text-dark);
  resize: vertical; /* Sadece dikey olarak boyutlandırılsın */
  margin-bottom: 10px;
}

.new-post-area textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(29, 122, 29, 0.2);
}

.new-post-area button {
  background-color: var(--primary-green);
  color: var(--text-light);
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.new-post-area button:hover {
  background-color: var(--darker-green);
}

/* Mobil cihazlar için özel ayar (eğer dashboard-content içinde kullanılıyorsa) */
@media (max-width: 768px) {
  .discussion-forum-card {
    grid-column: span 1 !important; /* Mobil görünümde tek sütun yer kaplasın */
    max-height: none; /* Mobil'de kaydırma çubuğuna gerek kalmayabilir */
  }
}
