/* Çocuk Teması CSS */
:root {
  /* Ana renkler */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  /* Yeni canlı renkler */
  --accent-purple: #9333ea;
  --accent-pink: #ec4899;
  --accent-yellow: #facc15;
  --accent-green: #22c55e;
  --accent-orange: #f97316;

  /* Arka plan renkleri */
  --bg-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

  /* Gölgeler */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Animasyonlar */
  --transition-normal: all 0.3s ease;
}

/* Genel Stil */
body {
  background-color: #f8fafc;
  background-image: var(--bg-pattern);
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: #334155;
}

/* Header Stili */
header {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-600));
  border-bottom: none;
  box-shadow: var(--shadow-md);
}

header h1 {
  font-family: "Nunito", "Comic Sans MS", cursive;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Navigasyon Stili */
nav {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--primary-200);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav a {
  color: var(--primary-700) !important;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition-normal);
  margin: 0.25rem;
  padding: 0.5rem 1rem !important;
}

nav a:hover {
  background-color: var(--primary-100) !important;
  transform: translateY(-2px);
}

nav a.active {
  background-color: var(--primary-500) !important;
  color: white !important;
}

/* Kartlar ve Bileşenler */
.bg-white,
.card {
  border-radius: 1rem !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
  border: none !important;
}

.bg-primary-50 {
  background-color: #f0f9ff !important;
  border-color: #bae6fd !important;
  border-radius: 0.75rem !important;
}

/* Butonlar */
button,
.btn,
[type="submit"],
[type="button"] {
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  transition: var(--transition-normal) !important;
  box-shadow: var(--shadow-sm) !important;
}

button:hover,
.btn:hover,
[type="submit"]:hover,
[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.bg-primary-600,
.bg-primary-600:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600)) !important;
}

.bg-yellow-500,
.bg-yellow-500:hover {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange)) !important;
}

.bg-red-500,
.bg-red-500:hover {
  background: linear-gradient(135deg, var(--accent-pink), #ef4444) !important;
}

/* Form Elemanları */
input,
select,
textarea {
  border-radius: 0.5rem !important;
  transition: var(--transition-normal) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-400) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Tablolar */
table {
  border-radius: 0.75rem !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
}

thead {
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200)) !important;
}

th {
  font-weight: 700 !important;
  color: var(--primary-800) !important;
}

/* Bildirimler ve Uyarılar */
.bg-green-100 {
  background-color: #dcfce7 !important;
  border-color: #86efac !important;
}

.bg-red-100 {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

.bg-yellow-100 {
  background-color: #fef9c3 !important;
  border-color: #fde047 !important;
}

/* Animasyonlar */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Özel Bileşenler */
.child-icon {
  position: relative;
  display: inline-block;
  margin-right: 0.5rem;
}

.child-icon::before {
  content: "👶";
  font-size: 1.2em;
}

.teacher-icon {
  position: relative;
  display: inline-block;
  margin-right: 0.5rem;
}

.teacher-icon::before {
  content: "👩‍🏫";
  font-size: 1.2em;
}

.parent-icon {
  position: relative;
  display: inline-block;
  margin-right: 0.5rem;
}

.parent-icon::before {
  content: "👨‍👩‍👧";
  font-size: 1.2em;
}

/* Sayfa Başlıkları */
h2.text-2xl {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--primary-700);
}

h2.text-2xl::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-purple), var(--primary-500));
  border-radius: 2px;
}

/* Footer Stili */
footer {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900)) !important;
  color: white !important;
  border-top: 3px solid var(--primary-600);
  padding: 1.5rem 0 !important;
}

/* Duyuru Kartları */
.announcement-card {
  transition: var(--transition-normal);
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  nav ul {
    justify-content: center;
  }

  h2.text-2xl {
    font-size: 1.5rem;
  }
}

/* Çocuk Profil Kartı */
.child-profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem !important;
  box-shadow: var(--shadow-md) !important;
}

.child-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to right,
    var(--accent-yellow),
    var(--accent-green),
    var(--accent-purple),
    var(--accent-pink)
  );
}

/* Yemek Takip Kartları */
.meal-card {
  border-radius: 1rem !important;
  box-shadow: var(--shadow) !important;
  transition: var(--transition-normal);
}

.meal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

/* Mesaj Baloncukları */
.message-bubble {
  border-radius: 1.5rem !important;
  padding: 1rem !important;
  max-width: 80%;
}

.message-bubble.sent {
  border-bottom-right-radius: 0.25rem !important;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500)) !important;
  color: white !important;
}

.message-bubble.received {
  border-bottom-left-radius: 0.25rem !important;
  background-color: white !important;
  border: 1px solid var(--primary-200) !important;
}

