/* ====================================================== */
/* 1. ANİMASYONLU ARKA PLAN VE GENEL ANİMASYONLAR   */
/* ====================================================== */

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Giriş ve sihirbaz sayfasında kullanılacak hareketli arka plan */
.animated-background,
.wizard-page-body {
  background: linear-gradient(-45deg, #6a85b6, #bac8e0, #4c5a9b, #a8c2e9);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

/* Ana panelde animasyonlu arka plan */
.animated-background-panel {
  background: linear-gradient(-45deg, #e0eafc, #cfdef3, #e0eafc, #cfdef3);
  background-size: 400% 400%;
  animation: gradientAnimation 20s ease infinite;
}

/* Elementler için Giriş (Fade In) Animasyonları */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}
.fade-in-down {
  animation: fadeInDown 0.6s ease-in-out;
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-in-out 0.2s;
  animation-fill-mode: backwards;
}
.fade-in-left {
  animation: fadeInLeft 0.6s ease-in-out 0.2s;
  animation-fill-mode: backwards;
}
.fade-in-right {
  animation: fadeInRight 0.6s ease-in-out 0.4s;
  animation-fill-mode: backwards;
}

/* ====================================================== */
/* 2. GİRİŞ SAYFASI (LOGIN) STİLLERİ         */
/* ====================================================== */

body.animated-background {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.login-container h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2em;
  color: #333;
}
.login-subtitle {
  margin-top: 0;
  margin-bottom: 2rem;
  color: #666;
}
.login-container .form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}
.login-container .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.login-container .form-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.login-container .form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
.login-container .btn {
  width: 100%;
  padding: 0.9rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
}
.login-container .btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.login-container .error {
  color: #d8000c;
  background-color: #ffd2d2;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #ffb8b8;
}

/* ====================================================== */
/* 3. ANA PANEL STİLLERİ (index.php)                  */
/* ====================================================== */

/* Genel Ayarlar */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: #333;
}

/* Header */
.main-header {
  background-color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.main-header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #0056b3;
}
.user-info .logout-btn {
  background-color: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  margin-left: 1rem;
  transition: background-color 0.2s ease;
}
.user-info .logout-btn:hover {
  background-color: #c82333;
}

/* Ana Konteyner */
.container {
  display: flex;
  height: calc(100vh - 70px);
}

/* Kenar Çubukları ve Ana İçerik */
.sidebar-left,
.sidebar-right,
.content-main {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  overflow-y: auto;
  backdrop-filter: blur(5px);
}
.sidebar-left {
  flex: 0 0 250px;
  border-right: 1px solid #ddd;
}
.content-main {
  flex: 1 1 35%;
  border-right: 1px solid #ddd;
}
.sidebar-right {
  flex: 1 1 65%;
}

/* İçerik Başlığı */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.content-header h3 {
  margin: 0;
  padding: 0;
  border: none;
}
.personel-count {
  font-size: 0.9em;
  font-weight: bold;
  color: #555;
  background-color: #e9ecef;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
}

h3 {
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

/* Form Elemanları (Genel) */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}
.form-group input {
  width: 95%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button,
.btn-add {
  width: 100%;
  padding: 0.7rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add {
  background-color: #28a745;
}

button:hover,
.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Personel Kart Görünümü */
#personel-kart-gosterimi {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.departman-karti {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
}

.departman-baslik {
  font-size: 1.2em;
  color: #0056b3;
  margin: 0 0 1rem 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.personel-karti-listesi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.personel-karti {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.8rem;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.personel-karti:hover {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.personel-karti.inactive-personnel {
  background-color: #e9ecef;
  color: #999;
  text-decoration: line-through;
}

.personel-karti.inactive-personnel:hover {
  background-color: #dc3545;
  color: white;
  border-color: #c82333;
}


/* Personel Detay Alanı */
.detay-icerik {
  margin-top: 1rem;
}
.detay-buton-grup {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.detay-buton-grup .btn-add,
.detay-buton-grup .btn-separate {
  flex: 1;
  margin-top: 0;
}
.btn-separate {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  color: white;
  background-color: #dc3545;
}
.durum-bilgisi {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}
.durum-bilgisi.aktif {
  background-color: #d4edda;
  color: #155724;
}
.durum-bilgisi.ayrildi {
  background-color: #f8d7da;
  color: #721c24;
}
.detay-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}
.detay-grup {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.75rem;
}
.detay-grup label {
  display: block;
  font-size: 0.8em;
  font-weight: bold;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.detay-grup span,
.detay-grup a {
  font-size: 0.95em;
  color: #333;
}
.detay-grup.ana-baslik strong {
  font-size: 1.4em;
  color: #0056b3;
}
.detay-grup.ana-baslik span {
  font-size: 1em;
  color: #555;
}
.detay-grid-container h4 {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007bff;
  color: #007bff;
}
.detay-grid-container h4:first-of-type {
  margin-top: 0;
}
.grid-span-2 {
  grid-column: span 2;
}
.grid-span-3 {
  grid-column: 1 / -1;
}
.profil-resmi-container {
  text-align: center;
  margin-bottom: 1.5rem;
}
.profil-resmi-detay {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e9ecef;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Pop-up (Modal) Stilleri */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-box {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
  max-width: 90%;
}
.modal-box p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.1em;
}
.modal-box button {
  padding: 0.6rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
.modal-box.success button {
  background-color: #28a745;
  color: white;
}
.modal-box.error button {
  background-color: #dc3545;
  color: white;
}

/* ====================================================== */
/* 4. PERSONEL EKLEME SİHİRBAZI (WIZARD) STİLLERİ     */
/* ====================================================== */

.wizard-page-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 0;
  box-sizing: border-box;
}
.wizard-container {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.wizard-container h2 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
}
.wizard-progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}
.wizard-progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background-color: #e0e0e0;
  width: 100%;
  z-index: 1;
}
.wizard-progress-bar .progress-line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background-color: #007bff;
  width: 0%;
  z-index: 2;
  transition: width 0.4s ease;
}
.wizard-progress-bar .step {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  color: #999;
  z-index: 3;
  transition: all 0.4s ease;
  position: relative;
}
.wizard-progress-bar .step strong {
  position: absolute;
  top: 50px;
  font-size: 0.8em;
  font-weight: 600;
  color: #999;
  width: 120px;
  text-align: center;
  transition: color 0.4s ease;
}
.wizard-progress-bar .step.active {
  border-color: #007bff;
  background-color: #007bff;
  color: #fff;
  transform: scale(1.1);
}
.wizard-progress-bar .step.active strong {
  color: #007bff;
}
.wizard-progress-bar .step.completed {
  border-color: #28a745;
  background-color: #28a745;
  color: #fff;
}
.wizard-progress-bar .step.completed strong {
  color: #333;
}
.form-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.form-step.active {
  display: block;
}
.form-step h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #555;
}
.wizard-container .form-group input,
.wizard-container .form-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.wizard-container .form-group label {
  font-weight: 600;
  color: #444;
}
.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}
.wizard-buttons button {
  padding: 0.8rem 2.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  width: auto;
  transition: all 0.3s ease;
}
.wizard-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-prev {
  background-color: #6c757d;
  color: white;
}
.btn-next {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
}
.btn-submit {
  background: linear-gradient(45deg, #28a745, #218838);
  color: white;
}
.wizard-cancel-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
}
.wizard-cancel-link:hover {
  text-decoration: underline;
}

/* ====================================================== */
/* 5. MOBİL UYUMLULUK (RESPONSIVE DESIGN)             */
/* ====================================================== */

/* Tablet ve küçük masaüstü cihazlar için */
@media (max-width: 1024px) {
  .sidebar-left {
    flex: 0 0 200px;
  }
  .content-main {
    flex: 1 1 40%;
  }
  .sidebar-right {
    flex: 1 1 60%;
  }
  .detay-grid-container {
    grid-template-columns: 1fr 1fr;
  }
  .grid-span-3 {
    grid-column: span 2;
  }
  .dashboard-container .stat-cards,
  .dashboard-container .chart-container {
    flex-direction: column;
  }
  .dashboard-container .chart-box {
    width: 100%;
  }
}

/* Mobil cihazlar için */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .main-header h1 {
    margin-bottom: 0.5rem;
  }
  .user-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .user-info .logout-btn {
    margin-left: 0;
  }

  .container {
    flex-direction: column;
    height: auto;
  }
  .sidebar-left,
  .content-main,
  .sidebar-right {
    flex: 1 1 auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  .sidebar-right {
    border-bottom: none;
  }

  .login-container,
  .wizard-container,
  .form-container {
    padding: 1.5rem;
    margin: 1rem;
    box-shadow: none;
  }

  .wizard-progress-bar .step strong {
    display: none;
  } /* Adım isimlerini mobilde gizle */

  .detay-grid-container {
    grid-template-columns: 1fr;
  }
  .grid-span-2,
  .grid-span-3 {
    grid-column: span 1;
  }
  .detay-buton-grup {
    flex-direction: column;
  }
  .personel-karti-listesi {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .container-table {
    padding: 1rem;
  }
  .container-table table,
  .container-table thead,
  .container-table tbody,
  .container-table th,
  .container-table td,
  .container-table tr {
    display: block;
  }
  .container-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .container-table tr {
    border: 1px solid #ccc;
    margin-bottom: 0.5rem;
  }
  .container-table td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }
  .container-table td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
  }
  /* Tablo verilerine etiket ekleme */
  .container-table td:nth-of-type(1):before {
    content: "Kullanıcı Adı";
  }
  .container-table td:nth-of-type(2):before {
    content: "Rol";
  }
  .container-table td:nth-of-type(3):before {
    content: "İşlemler";
  }
}
/* ... mevcut css kodlarınız ... */

/* Departman Başlığına Tıklanabilirlik Stili */
.departman-baslik {
  font-size: 1.2em;
  color: #0056b3;
  margin: 0 0 1rem 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  cursor: pointer; /* Tıklanabilir olduğunu belirtir */
  transition: color 0.3s ease;
}

.departman-baslik:hover {
  color: #007bff; /* Üzerine gelince renk değiştirir */
}


/* Departman Detay Alanı Stilleri */
.departman-detay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.departman-detay-grup {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.departman-detay-grup h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1em;
  color: #343a40;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
}

.departman-detay-grup .detay-grup {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.departman-detay-grup .detay-grup:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


/* ... geri kalan css kodlarınız ... */

/* ... mevcut css kodlarınız ... */

/* GÜNCELLENMİŞ PERSONEL KARTI STİLLERİ */
.personel-karti {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px; /* İç boşluğu biraz azalttık */
}

.kart-profil-resmi {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.kart-bilgi {
    display: flex;
    flex-direction: column;
}

.kart-ad-soyad {
    font-weight: bold;
    font-size: 0.9rem;
}

.kart-unvan {
    font-size: 0.8rem;
    color: #666;
}

/* PERSONEL DETAY ALANI ZİMMET STİLLERİ */
.zimmet-item {
    padding: 5px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.zimmet-item:last-child {
    border-bottom: none;
}
.zimmet-item strong {
    color: #333;
}
.zimmet-item span {
    color: #777;
    margin-left: 5px;
}

/* FİLTRE FORMU GENİŞLİĞİ */
.sidebar-left select, .sidebar-left input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Önemli */
}