/* ==========================================================================
   GLOBAL / BASE
   ========================================================================== */

:root{
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
  --soft: #e9ecef;
  --soft-2: #f1f1f1;

  --primary: #0d6efd;
  --primary-dark: #0a58ca;

  --shadow-soft: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-card: 0 2px 15px rgba(0,0,0,0.05);

  --radius-0: 0px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
}

body{
  background-color: var(--bg);
  font-size: 14px;
  color: var(--text);
}

/* Linkler */
a,
a:link,
a:visited{
  color: #495057;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.2s ease;
}

a:hover,
a:focus,
a:active{
  color: var(--primary);
  text-decoration: none;
}

/* Inline style ile kırmızıyı ez (profil linkleri vb.) */
a[style*="color: red"]{
  color: #b00020 !important; /* WCAG uyumlu koyu kırmızı */
}

/* ==========================================================================
   NAV TABS
   ========================================================================== */

.nav-tabs{ border-bottom: none; }

.nav-tabs .nav-link{
  background-color: var(--bg);
  color: #495057;
  border: 1px solid var(--border);
  border-bottom: none;
  margin-right: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-tabs .nav-link:hover{
  background-color: var(--soft);
  color: var(--text);
}

.nav-tabs .nav-link.active{
  background-color: var(--card-bg);
  color: var(--text);
  border-color: var(--border);
  border-bottom: none;
  font-weight: 600;
}

/* ==========================================================================
   CARDS (GENEL)
   ========================================================================== */

.card{
  color: var(--text);
  background-color: var(--card-bg);
}

.card-header{
  background-color: var(--soft);
  color: var(--text);
  font-weight: 500;
}

/* Border renkleriyle çakışan metinleri sabitle */
.card.border-warning,
.card.border-success,
.card.border-primary,
.card.border-danger,
.card.border-secondary,
.card.border-dark{
  color: var(--text);
}

.card-no-border{
  border-color: var(--border) !important;
}

/* Sayfa arkaplanlarını beyaz yapan ortak container */
.card-content{
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow-card);
}

/* Kart içindeki tablo sıkılaştırma */
.card .table{ margin-bottom: 4px; }
.card .table-responsive{ padding: 0px !important; }

/* ==========================================================================
   ÖZEL LINKLER / BAŞLIKLAR
   ========================================================================== */

/* ajax_profile_books linkleri (a ile aynı görünsün, ayrı sınıf kalsın) */
.ajax_profile_books{
  color: #495057;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.ajax_profile_books:hover{
  color: var(--primary);
  text-decoration: none;
}

/* İçerik başlığı linkleri */
.title-link{
  font-size: 1.2rem;
  font-weight: 500;
  color: #495057;
  text-decoration: none;

  /* taşma kontrolü */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;

  /* flex içinde taşmayı engeller */
  flex: 1 1 auto;
  min-width: 0;

  max-width: calc(100% - 40px);
  transition: color 0.3s ease;
}
.title-link:hover{ color: #007bff; }

/* h5 */
h5{
  color: #000;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   TABLES (AJAX dosyaları ve genel)
   ========================================================================== */

/* Genel tablo hizalama/taşma */
.table th, .table td{
  vertical-align: middle !important;
  word-break: break-word;
}


.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    width: 100%;
}

.tab-content .badge {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 0.75rem;
}










/* ajax_content.php, ajax_profile_*.php */
table.table{
  width: 100%;
  border-collapse: collapse;
}
table.table th,
table.table td{
  padding: 5px;
  border: 1px solid var(--border);
  text-align: left;
}
table.table th{
  background-color: var(--soft-2);
}
table.table td{
  word-break: break-word;
  white-space: normal;
}

/* Tarih (content-date) */
table.table td .content-date{
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Küçük tablo */
.table-sm td,
.table-sm th{
  padding: 0.3rem;
  font-size: 0.85rem;
}
.table thead th{ background-color: var(--soft-2); }

/* Filter input (tek yerde) */
.filter-input{
  width: 100%;
  box-sizing: border-box;
  height: 32px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 4px;
}








/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar{ border-right: 1px solid var(--border); }

.sticky-sidebar{
  position: sticky;
  top: 0px;
  overflow-y: auto;
  background: var(--card-bg);
  border-radius: var(--radius-6);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.sidebar-link{
  display: flex;
  align-items: center;
  padding: 10px 12px; /* Tıklama alanını (UX) biraz daha genişletelim */
  margin-bottom: 4px;
  border-radius: var(--radius-6);
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap; /* Metinlerin alt satıra geçmesini engeller */
  overflow: hidden; /* Taşmaları gizler */
  text-overflow: ellipsis; /* Çok uzun metinlerin sonuna üç nokta koyar */
}
.sidebar-link i{
  width: 24px; /* Kesin genişlik hizalamayı garantiler */
  margin-right: 12px; /* Metinle ikon arasındaki nefes payı */
  text-align: center;
  font-size: 1.1rem; /* İkonların daha okunaklı olması için hafif büyütebilirsin */
}
.sidebar-link:hover{
  background-color: #e7f1ff;
  color: var(--primary);
}
.sidebar-link.active{
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Aktif olduğunda text-danger sınıfının rengini geçersiz kıl ve beyaz yap */
.sidebar-link.active.text-danger {
  color: #fff !important;
}

/* Aktifken ikonun da beyaz kalmasını sağla */
.sidebar-link.active.text-danger i {
  color: #fff !important;
}

.sidebar-link.text-danger:hover{
  background-color: #f8d7da;
  color: #842029;
}













/* ==========================================================================
   LIST GROUP (mobilde taşma ve tarih konumu)
   ========================================================================== */

.list-group-item{ flex-wrap: wrap; }

.list-group-item .text-decoration-none{
  display: inline-block;
  word-break: break-word;
  white-space: normal;
}

.list-group-item small.text-muted{
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 12px;
}

.list-group-item a.text-decoration-none{
  display: block;
  padding-right: 70px;
}

@media (max-width: 576px){
  .list-group-item small.text-muted{
    top: 6px;
    right: 10px;
    font-size: 11px;
  }
}

/* ==========================================================================
   ADS (YAN REKLAMLAR)
   ========================================================================== */

.side-ad{
  position: fixed;
  width: 200px;
  top: 100px;
  z-index: 1000;

  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.left-ad{ left: 20px; }
.right-ad{ right: 20px; }

/* top-ad / bottom-ad aynıydı: tek blok yeterli */
.top-ad,
.bottom-ad{
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ==========================================================================
   CONTENT.PHP / CONTENT CARDS
   ========================================================================== */

/* content.php kartları: ortaklaştır */
.contentphp_card,
.content_add_card,
.content_edit_card{
  border-radius: var(--radius-0);
  border: none;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

.contentphp_card{ padding: 20px; }
.content_add_card,
.content_edit_card{ padding: 25px; }

.related-card{
  border-radius: var(--radius-0);
  border: 1px solid #ddd;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0px;
}

.content-card h3{
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #000;

  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.content-card h1{
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.content-card hr{
  margin: 1rem;
  border: 1px solid #ddd;
}

/* ==========================================================================
   INFO BOX
   ========================================================================== */

.info-box{
  background: #f1f3f5;
  border: 1px solid #ddd;
  border-radius: var(--radius-0);
  padding: 5px 5px;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  color: #000;
}

.info-box a{
  color: #495057;
  text-decoration: none;
}
.info-box a:hover{ color: #c1121f; }

.info-box .info-row{
  display: block;
  width: 100%;
  line-height: 2;
}

.info-box .info-item{
  display: inline;
  font-size: 12px;
  white-space: normal;
}

.info-box .info-item i{ margin: 0px; }
.info-box .info-item strong{ margin: 3px; }

.info-box .actor-link{ display: inline; }
.info-box strong{ color: #111; }

.info-box .actions{
  margin-top: 10px;
  display: flex;
  gap: 0px;
  flex-wrap: wrap;
  width: 100%;
}

.info-box .separator{
  margin: 0px;
  color: #555;
}

/* ==========================================================================
   POSTER WRAPPER (SIDE/TOP) + RESPONSIVE
   ========================================================================== */

.content-poster-wrapper{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  width: 100%;
}

/* side */
.content-poster-wrapper.poster-side{
  flex-wrap: nowrap;
}

/* poster box */
.content-poster-box{
  flex: 0 0 250px;
  height: 350px;
  border-radius: 0;
  margin: 0;
}

.content-poster-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* top */
.content-poster-wrapper.poster-top{
  flex-direction: column;
  align-items: center;
}
.content-poster-wrapper.poster-top .content-poster-box{
  flex: none;
  width: 100%;
  max-width: 700px;   /* daha geniş olabilir */
  height: auto;
}
.content-poster-wrapper.poster-top .content-poster-box img{
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
}

/* mobile */
@media (max-width: 576px){
  .content-poster-wrapper.poster-side{
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  .content-poster-box{
    width: 80%;
    height: auto;
    flex: none;
  }

  .content-poster-box img{
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* açıklama */
.content-card-description{
  flex: 1;
  margin-top: 0rem;
  font-size: 0.95rem;
  line-height: 1.4;
  align-self: stretch;
  text-align: left;
  width: 100%;

  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.content-card-description p{ margin: 0; }

.content-card-description a{
  color: var(--primary) !important;
}
.content-card-description a:hover{
  color: var(--primary-dark) !important;
  text-decoration: none;
}

/* Buton boyutları (ortak) */
.content-like-btn,
.save-btn,
.report-content,
.content-edit-btn,
.content-delete-btn,
.user-list-toggle-btn {
  font-size: 12px;
  padding: 3px 6px;
  line-height: 1.2;
  min-width: 50px;
  text-align: center;
  margin: 0px 5px 5px 0px;
}

/* ==========================================================================
   CONTENT_ADD.PHP (başlık önerileri + textarea + sayaçlar)
   ========================================================================== */

#titleSuggestions{
  position: absolute;
  top: 90%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: none;
}
#titleSuggestions .list-group-item{ cursor: pointer; }
#titleSuggestions .list-group-item:hover{ background-color: #f0f0f0; }

.counter-valid{ color: var(--muted); }
.counter-exceed{ color: red; }

textarea.auto-expand{
  width: 100%;
  min-height: 150px;
  max-height: 600px;
  overflow-y: auto;
  resize: vertical;
  line-height: 1.5;
  padding: 10px;
  font-size: 14px;
}
@media (max-width: 576px){
  textarea.auto-expand{ min-height: 150px; }
}

/* Bilgi mesaj kutusu */
.infoMessageBox_css{
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius-6);
  display: none;
}




/* İstatistik Konteynırı */
.stats-container {
    display: flex !important;
    flex-wrap: wrap !important; /* Mobilde alt alta geçmeye izin verir */
    width: 100% !important;
    margin-left: 1px;
}

/* Masaüstü ve Genel Ayarlar */
.stats-card {
    flex: 1 0 0px; /* Masaüstünde tam eşit böler */
    min-width: 80px; /* Kartların çok daralmasını önler */
    padding: 3px 2px !important;
    border: 1px solid #dee2e6;
    margin-left: -1px;
    text-align: center;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent !important;
}

/* İlk kartın kenarlığını düzelt */
.stats-card:first-child {
    margin-left: 0;
}

/* Yazıların hizalanması */
.stats-card h6 {
    color: #6c757d !important;
    font-size: 10px;
    font-weight: 500;
    margin: 0 !important;
    line-height: 1.1;
    white-space: nowrap;     /* Yazının taşmasını önler */
}

.stats-card h4 {
    color: #212529 !important;
    font-size: 14px;
    font-weight: 700;
    margin: 1px 0 0 0 !important;
    line-height: 1;
}

/* Üzerine gelince (Hover) çok hafif bir belirginlik */
.stats-card:hover {
    background-color: #f8f9fa !important;
}








/* Profil avatar + sosyal ikonlar */
.profile-avatar{
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.social-icons i{
  font-size: 1.3rem;
  margin: 10px 5px 0px 5px;
  color: #333;
  transition: 0.2s;
  cursor: default;
}
.social-icons i:hover{ color: var(--primary); }

/* Kullanıcı adı (mevcut sınıfa dokunmadan) */
.text-muted.mb-1{
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   ACCORDION
   ========================================================================== */

.accordion-header{
  padding: 12px 18px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.accordion-header:hover{ background-color: var(--soft-2); }

.accordion-header .accordion-title-link{
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.accordion-title-link{
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
}
.accordion-title-link:hover{ text-decoration: underline; }

.accordion-toggle{
  padding: 4px 8px;
  font-size: 0.85rem;
}

.accordion-button{
  background-color: transparent;
  border: none;
  padding: 10px 15px;
  color: #495057;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: none;
  overflow-wrap: break-word;
}
.accordion-button:focus{
  outline: none;
  box-shadow: none;
}

.accordion-body{
  padding: 20px;
  background-color: var(--bg);
  border-radius: 8px;
  color: #495057;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.accordion-body,
.accordion-body p{
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.accordion-item{
  margin-bottom: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.accordion-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Buton (outline secondary) */
.btn-outline-secondary{
  border: 1px solid #ced4da;
  color: #495057;
  transition: background-color 0.3s, border-color 0.3s;
}
.btn-outline-secondary:hover{
  background-color: #ced4da;
  color: var(--text);
}

/* Genel d-flex'i bozmamak için sadece hizalamayı standart yapın */
.d-flex {
  display: flex !important;
  flex-wrap: nowrap; /* Varsayılan Bootstrap davranışı */
  justify-content: flex-start; /* Her şey düzgünce sola yaslanır */
}

/* ==========================================================================
   FAVORİLER TABLOSU BUTONLAR
   ========================================================================== */

.table td .btn{
  display: block;
  width: 100%;
  margin-bottom: 5px;
}

/* ==========================================================================
   DESKTOP / MOBILE ONLY
   ========================================================================== */

@media (max-width: 768px){
  .desktop-only{ display: none !important; }
}
@media (min-width: 769px){
  .mobile-only{ display: none !important; }
}










/* ==========================================================================
   FILTERABLE TABLE + SABİT GENİŞLİK KOLONLAR
   ========================================================================== */

.filterable-table{
  table-layout: fixed;
  width: 100%;
}
.filterable-table td{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dizi ve Film tabloları (10 kolon) */
.table-dizi th, .table-dizi td,
.table-film th, .table-film td{ width: auto; }

.table-dizi th:nth-child(1), .table-dizi td:nth-child(1),
.table-film th:nth-child(1), .table-film td:nth-child(1){ width: 10%; }

.table-dizi th:nth-child(2), .table-dizi td:nth-child(2),
.table-film th:nth-child(2), .table-film td:nth-child(2){ width: 7%; text-align: center; }

.table-dizi th:nth-child(3), .table-dizi td:nth-child(3),
.table-film th:nth-child(3), .table-film td:nth-child(3){ width: 7%; text-align: center; }

.table-dizi th:nth-child(4), .table-dizi td:nth-child(4),
.table-film th:nth-child(4), .table-film td:nth-child(4){ width: 10%; }

.table-dizi th:nth-child(5), .table-dizi td:nth-child(5),
.table-film th:nth-child(5), .table-film td:nth-child(5){ width: 10%; }

.table-dizi th:nth-child(6), .table-dizi td:nth-child(6),
.table-film th:nth-child(6), .table-film td:nth-child(6){ width: 10%; text-align: center; }

.table-dizi th:nth-child(7), .table-dizi td:nth-child(7),
.table-film th:nth-child(7), .table-film td:nth-child(7){ width: 8%; }

.table-dizi th:nth-child(8), .table-dizi td:nth-child(8),
.table-film th:nth-child(8), .table-film td:nth-child(8){ width: 7%; text-align: center; }

.table-dizi th:nth-child(9), .table-dizi td:nth-child(9),
.table-film th:nth-child(9), .table-film td:nth-child(9){ width: 8%; }

.table-dizi th:nth-child(10), .table-dizi td:nth-child(10),
.table-film th:nth-child(10), .table-film td:nth-child(10){ width: 7%; text-align: center; }

.table-dizi th:nth-child(11), .table-dizi td:nth-child(11),
.table-film th:nth-child(11), .table-film td:nth-child(11){ width: 10%; text-align: center; }

.table-dizi th:nth-child(12), .table-dizi td:nth-child(12),
.table-film th:nth-child(12), .table-film td:nth-child(12){ width: 6%; text-align: center; }

/* Kitap tablosu (8 kolon) */
.table-kitap th:nth-child(1), .table-kitap td:nth-child(1){ width: 24%; }
.table-kitap th:nth-child(2), .table-kitap td:nth-child(2){ width: 7%; text-align: center; }
.table-kitap th:nth-child(3), .table-kitap td:nth-child(3){ width: 7%; text-align: center; }
.table-kitap th:nth-child(4), .table-kitap td:nth-child(4){ width: 10%; }
.table-kitap th:nth-child(5), .table-kitap td:nth-child(5){ width: 15%; }
.table-kitap th:nth-child(6), .table-kitap td:nth-child(6){ width: 7%; text-align: center; }
.table-kitap th:nth-child(7), .table-kitap td:nth-child(7){ width: 20%; }
.table-kitap th:nth-child(8), .table-kitap td:nth-child(8){ width: 10%; text-align: center; }

/* Blog ve Offtopic tabloları (6 kolon) */
.table-blog th:nth-child(1), .table-blog td:nth-child(1),
.table-offtopic th:nth-child(1), .table-offtopic td:nth-child(1){ width: 25%; }

.table-blog th:nth-child(2), .table-blog td:nth-child(2),
.table-offtopic th:nth-child(2), .table-offtopic td:nth-child(2){ width: 10%; text-align: center; }

.table-blog th:nth-child(3), .table-blog td:nth-child(3),
.table-offtopic th:nth-child(3), .table-offtopic td:nth-child(3){ width: 15%; }

.table-blog th:nth-child(4), .table-blog td:nth-child(4),
.table-offtopic th:nth-child(4), .table-offtopic td:nth-child(4){ width: 10%; text-align: center; }

.table-blog th:nth-child(5), .table-blog td:nth-child(5),
.table-offtopic th:nth-child(5), .table-offtopic td:nth-child(5){ width: 30%; }

.table-blog th:nth-child(6), .table-blog td:nth-child(6),
.table-offtopic th:nth-child(6), .table-offtopic td:nth-child(6){ width: 10%; text-align: center; }












/* ==========================================================================
   MAIN MENU
   ========================================================================== */

.main-menu{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.main-menu a{
  background-color: var(--bg);
  color: #495057;
  border-radius: var(--radius-8);
  font-weight: 500;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}
.main-menu a:hover{
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 576px){
  .main-menu a{
    flex: 1 1 100%;
    min-width: auto;
  }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination{
  justify-content: flex-start;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  padding: 0px !important;
}

.pagination .page-item .page-link{
  padding: 5px 12px;
  margin: 0;
  border: 1px solid var(--border);
  background-color: #fff;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-item:first-child .page-link{
  border-top-left-radius: var(--radius-6);
  border-bottom-left-radius: var(--radius-6);
}
.pagination .page-item:last-child .page-link{
  border-top-right-radius: var(--radius-6);
  border-bottom-right-radius: var(--radius-6);
}

.pagination .page-item.active .page-link{
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}

.pagination .page-item .page-link:hover{
  background-color: var(--primary);
  color: #fff;
}

/* Not: Aşağıdaki kural zaten var; aynı davranışı korumak için bırakıyorum */
.page-item.active .page-link{
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: #fff !important;
}

/* ==========================================================================
   SAYFA ALT SAĞ RESİM + SCROLL BAR
   ========================================================================== */

.sagaltkoseresmi{
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  width: 100px;
  height: 125px;
}

#pagescroll{
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #56ab2f, #a8e063);
}

/* ==========================================================================
   ANASAYFA
   ========================================================================== */

.anasayfasekmelikartbasliklari_css{
  width: 100%;
  padding: 0px 0px;
  border: 0px solid var(--muted);
  text-align: center;
}

.anasayfa_istatistik_avatar{
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 0px solid #ccc;
  object-fit: cover;
}

.anasayfa_icerik_baslik{
  display: inline-block;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

.min-width-0{ min-width: 0; }

.anasayfa_istatistik_custom_table{
  width: 100%;
  table-layout: fixed;
}
.anasayfa_istatistik_custom_table th{ width: 50%; text-align: left; }
.anasayfa_istatistik_custom_table td{ width: 50%; text-align: right; }

/* ==========================================================================
   SEARCH.PHP (live results + input ikon)
   ========================================================================== */

#live-results{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-0);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

#live-results a{
  display: flex;
  align-items: flex-start;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border-bottom: 1px solid #eee;
  line-height: 1.3;
}
#live-results a:hover{ background-color: var(--bg); }

#live-results a i{
  flex: 0 0 20px;
  text-align: center;
  align-self: flex-start;
  margin-top: 2px;
}

#live-results a span{
  flex: 1;
  display: block;
  white-space: normal;
  word-break: break-word;
}

.search-input{ position: relative; }
.search-input i.fa-search{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.search-input input{ padding-left: 35px !important; }

/* ==========================================================================
   CONTENT_EDIT.PHP
   ========================================================================== */

.autocomplete-box{
  position: absolute;
  width: 100%;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

/* ==========================================================================
   LOGOUT.PHP
   ========================================================================== */

.logout-page{
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
}
.logout-box{
  text-align: center;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-0);
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  animation: fadeIn 0.5s ease-in-out;
}

/* ==========================================================================
   MESSAGE.PHP (chat)
   ========================================================================== */

.message_sidebar{
  flex: 0 0 300px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-wrapper{
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  height: calc(100vh - 120px);
  width: 100%;
  overflow: hidden;
}

.message-list-item{
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.message-list-item:hover{ background: #f1f8ff; }
.message-list-item.active{ background: #e7f1ff; }

.avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.unread-dot{
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: auto;
}

.message-area{
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.messages-scroll{
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.message-bubble{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 15px;
  margin-bottom: 6px;
  position: relative;
  max-width: 90%;
  word-wrap: break-word;
  text-align: left;
  line-height: 1.4;
  white-space: normal;
}

.message-bubble.sent{
  background: #d1e7ff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.message-bubble.received{
  background: #f1f1f1;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message-bubble:hover .msg-time{
  opacity: 1;
  visibility: visible;
}

.msg-time{
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 4px;
  text-align: right;
}

.message-input{
  display: flex;
  gap: 10px;
  align-items: center;
}
.message-input textarea{
  flex-grow: 1;
  resize: none;
  height: 40px;
  min-height: 40px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 14px;
  overflow-y: hidden;
}
.message-input button{ white-space: nowrap; }

.message-container{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 768px){
  .chat-wrapper{ flex-direction: column; height: auto; }
  .message_sidebar{ flex: none; max-height: 300px; }
  .message-area{ height: auto; min-height: 400px; }
}

/* ==========================================================================
   YAZARLAR / OYUNCULAR / YÖNETMENLER
   ========================================================================== */

.actor-item,
.director-item,
.author-item,
.producer-item {
  padding: 4px;
  transition: 0.2s;
  border-radius: 4px;
}

/* Not: Orijinalde .achor-item yazım hatası vardı; doğru sınıfı kullanıyorum */
.actor-item:hover,
.director-item:hover,
.author-item:hover,
.producer-item:hover {
  background: var(--bg);
  color: #007bff !important;
}

.letter-group{ scroll-margin-top: 20px; }

/* ==========================================================================
   PROFILE LIST (TABLE FIXED + MOBİL KART)
   ========================================================================== */

.table-fixed-profile-card-item{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
}
.table-fixed-profile-card-item td,
.table-fixed-profile-card-item th{
  word-wrap: break-word;
  vertical-align: middle;
}

/* kolonlar */
.table-fixed-profile-card-item th:nth-child(1),
.table-fixed-profile-card-item td:nth-child(1){ width: 8%; text-align: center; }
.table-fixed-profile-card-item th:nth-child(2),
.table-fixed-profile-card-item td:nth-child(2){ width: 32%; }
.table-fixed-profile-card-item th:nth-child(3),
.table-fixed-profile-card-item td:nth-child(3){ width: 12%; text-align: center; }
.table-fixed-profile-card-item th:nth-child(4),
.table-fixed-profile-card-item td:nth-child(4){ width: 25%; }
.table-fixed-profile-card-item th:nth-child(5),
.table-fixed-profile-card-item td:nth-child(5){ width: 15%; text-align: center; }
.table-fixed-profile-card-item th:nth-child(6),
.table-fixed-profile-card-item td:nth-child(6){ width: 8%; text-align: center; }

/* Mobil kart tasarımı */
@media (max-width: 767px){
  .mobile-list{ display: block !important; }

  .profile-card-item-css{
    border: 1px solid #eee;
    border-radius: var(--radius-12);
    padding: 16px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-left: 4px solid var(--muted);
  }

  .profile-card-item-css .user-name{
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
  }
  .profile-card-item-css .user-name:hover{ color: var(--primary); }

  .profile-card-item-css .info-row{
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 6px;
  }

  .profile-card-item-css .date-info{
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
  }

  .profile-card-item-css .card-action{ margin-top: 15px; }

  .profile-card-item-css .btn-remove{
    width: 100%;
    padding: 10px;
    font-weight: 600;
    border-radius: var(--radius-8);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .pagination-sm .page-link{ padding: 8px 12px; }

  .profile-card-item-css .card-btns{
    display: flex;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
  }
}

@media (min-width: 768px){
  .mobile-list{ display: none !important; }
}

/* ==========================================================================
   GENEL TABLE (generalTable)
   ========================================================================== */

#generalTable{
  table-layout: fixed;
  width: 100%;
}

#generalTable td{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal !important; /* nowrap kuralını ezer, metni alt satıra geçirir */
	vertical-align: middle;
	word-break: break-word;        /* Uzun kelimeleri böler */
	vertical-align: middle;
}

/* Rozet kolonuna istisna */
#generalTable td:nth-child(5){
  white-space: normal;
}




/* ==========================================================================
   YÖNETİM PANELİ
   ========================================================================== */
.yonetinpanelisayfabasliklari_css {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #6c757d;
  text-align: center;
}

.table-fixed { width: 100%; table-layout: fixed; }
.table-fixed td, .table-fixed th { word-wrap: break-word; }

.card-section { margin-bottom: 20px; }
.card-section .card-header { font-weight: bold; }

.badge-img,
.rank-img,
.user_group-img{
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-6);
}

/*.table {
  border-collapse: collapse !important;
  width: 100%;
  font-size: 13px;
  table-layout: fixed;
}*/
.table th, .table td {
  word-wrap: break-word;
}






.table .btn-group {
    display: flex;
    width: 100%;
}

.table .btn-group .btn,
.table .btn-group form {
    flex: 1;
}

.table .btn-group .btn {
    width: 100%;
    white-space: nowrap;
    padding: 2px 4px;   /* 🔥 yükseklik küçülür */
    font-size: 0.85rem; /* 🔥 ikon + yazı küçülür */
}

.table .btn-group form button {
    width: 100%;
}




/* notification_announcement.php */
.user-tag { margin-right: 5px; margin-bottom: 5px; display: inline-flex; align-items: center; border-radius: 20px !important; }
.user-tag .remove-btn { margin-left: 8px; cursor: pointer; font-size: 1.2rem; line-height: 1; }
#selected_users_container { border: 1px solid #ced4da; padding: 10px; border-radius: 0.375rem; min-height: 50px; background: #fff; }
.notif-link { font-weight: bold; color: #dc3545; text-decoration: underline; }



/* summernote aşağı indikçe metin düzenleme alanının kayması için */
.note-editor .note-toolbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.note-editable img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}










