/* assets/css/admin.css */

/* Google Fonts - Inter */


html{
	position: relative;
	min-height: 100%;
}
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    font-size: inherit;
}

.icon > svg {
    display: block;
    width: 100%;
    height: 100%;
}
.page-head {
    min-height: 60px;
	-webkit-box-align: center !important;
    -ms-flex-align: center!important;
    align-items: center !important;	
}
.seo-preview {
    background: #fff;
    padding: 15px;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    font-family: arial, sans-serif;
    max-width: 600px;
}
.seo-preview-url {
    font-size: 14px;
    color: #006621;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seo-preview-title {
    font-size: 20px;
    color: #1a0dab;
    line-height: 1.3;
    margin-bottom: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seo-preview-title:hover {
    text-decoration: underline;
}
.seo-preview-desc {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.58;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimum 2 satır göster */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.counter-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}
.text-success-custom { color: #28a745; font-weight: bold; }
.text-warning-custom { color: #ffc107; font-weight: bold; }
.text-danger-custom { color: #dc3545; font-weight: bold; }
/* Tablo Satır Etkileşimleri */
#haberlerTablosu tbody tr {
    cursor: pointer; /* Ok yerine el simgesi */
    transition: all 0.2s ease-in-out;
    position: relative;
    user-select: none; /* Çift tıklarken metnin mavi seçilmesini önler */
}

/* Mouse üzerine geldiğinde (Hover) */
#haberlerTablosu tbody tr:hover {
    box-shadow: inset 4px 0 0 0 rgba(172, 6, 7, 1); /* Sol tarafa ince bir marka çizgisi ekler */
    z-index: 1;
}

.form-box{
}

.form-box::after{
	content: "";
	display: block;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px dashed var(--theme-border-color);
}

/* Genel Buton Ayarları */
.btn {
    transition: all 0.1s ease; /* Hareketin akıcı olması için */
    position: relative;
    outline: none !important;
	box-shadow: var(--theme-theme-card-box-shadow);
}

/* 1. YÖNTEM: Fiziksel Basılma Efekti (Önerilen) */
.btn:active {
    transform: translateY(2px); /* Butonu 2 piksel aşağı kaydırır */
    box-shadow: none !important; /* Varsa gölgeyi kaldırarak basılma hissini artırır */
}

/* 2. YÖNTEM: Hafif Küçülme Efekti (Modern Görünüm) */
/* Eğer yukarıdaki yerine butonu hafifçe küçültmek istersen bunu kullan: */
/*
.btn:active {
    transform: scale(0.95);
}
*/

/**** robot ****/
@keyframes moveLeftRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(15px); } }
.robot-animate { animation: moveLeftRight 2s infinite; display: inline-block; }


.sidenav-menu{
	position: fixed;
    height: 100vh;
    top: 0;
	min-width: var(--theme-sidenav-width);
}
.content{
	margin-left: var(--theme-sidenav-width);
	min-height: 100vh;
}
.header-topbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: rgba(255,255,255,1);
    -webkit-box-shadow: 0px 1px 4px 0px rgba(130, 143, 163, 0.15);
    box-shadow: 0px 1px 4px 0px rgba(130, 143, 163, 0.15);
    -webkit-transition: margin-left .25s ease-in-out;
    transition: margin-left .25s ease-in-out;
}
@keyframes shimmer {
    0% { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}

.kagan-loading-placeholder {
    display: block;
    width: 100%; /* Bulunduğu satırı kaplasın */
    /*max-width: 600px;  Çok devasa olmasın diye bir sınır koyabilirsin */
    aspect-ratio: 16 / 9; /* Facebook ve YouTube tarzı standart video/haber oranı */
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    animation: shimmer 1.5s linear infinite forwards;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 10px 0;
}

/* --- ORTAK AYARLAR --- */
.kgn-input-wrapper { display: flex; align-items: center; }
.kgn-label-text { font-size: 0.85rem; color: #666; font-weight: 500; }

/* Ana Kapsayıcı: Sade, Gri/Beyaz Tonlar */
.kgn-corp-radio {
    display: inline-flex;
    position: relative;
    background-color: #f4f7fa; /* Çok açık gri-mavi arka plan */
    border-radius: 8px; /* Daha kurumsal, az kavisli köşeler */
    padding: 2px;
    border: 1px solid #e1e8ef;
    z-index: 1;
}

.kgn-corp-radio input { display: none; }

/* Buton Alanları: Temiz Tipografi */
.kgn-corp-radio label {
    position: relative;
    padding: 6px 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b; /* Slate gri metin */
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
}

/* Minimalist Kaydırıcı Panel */
.kgn-corp-radio .selection-indicator {
    position: absolute;
    height: calc(100% - 4px);
    top: 2px;
    left: 2px;
    background-color: #ffffff; /* Seçili alan her zaman beyaz (temiz görünüm) */
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); /* Hafif yükselti */
}

/* --- HAREKET MANTĞI --- */
.kgn-corp-radio input#rad_aktif:checked ~ .selection-indicator {
    width: calc(50% - 2px);
    transform: translateX(0);
}

.kgn-corp-radio input#rad_pasif:checked ~ .selection-indicator {
    width: calc(50% - 2px);
    transform: translateX(100%);
}

/* Seçili olanın metin rengini koyulaştırarak vurgula */
.kgn-corp-radio input:checked + label {
    color: #0f172a; /* Çok koyu lacivert/siyah */
}

/* --- KURUMSAL RENK VURGULARI (Alt Çizgi veya Küçük Nokta) --- */
/* Sadece seçili olduğunda aktifleşen minik bir renk göstergesi */
.kgn-corp-radio.success input#rad_aktif:checked + label { color: #15803d; }
.kgn-corp-radio.success input#rad_pasif:checked + label { color: #b91c1c; }

.kgn-corp-radio.primary input:checked + label { color: #1d4ed8; }

/* --- 2. CHECKBOX SWITCH (iOS Tarzı Aç/Kapa) --- */
.kgn-switch {
    position: relative; display: inline-block;
    width: 42px; height: 22px;
}
.kgn-switch input { opacity: 0; width: 0; height: 0; }
.kgn-switch .slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; border-radius: 34px;
    transition: .3s;
}
.kgn-switch .slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white; border-radius: 50%;
    transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .slider:before { transform: translateX(20px); }

/* Renk Tanımlamaları */
.kgn-switch.primary input:checked + .slider { background-color: #0d6efd; }
.kgn-switch.success input:checked + .slider { background-color: #198754; }
.kgn-switch.warning input:checked + .slider { background-color: #ffc107; }

/* Ana Kap kapsayıcıya position relative verilmeli */
.kgn-ajax-form .mb-3 { position: relative; }

/* GEÇERSİZ ALAN (KIRMIZI) */
.is-kgn-invalid {
    border-color: #ea868f !important;
    background-color: #fff8f8 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* GEÇERLİ ALAN (YEŞİL) */
.is-kgn-valid {
    border-color: #75b798 !important;
    background-color: #f0fff4 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* TOOLTIP TARZI HATA MESAJI */
.kgn-tooltip {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: kgnShake 0.3s ease;
}

/* Tooltip için ufak bir ok */
.kgn-tooltip::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 10px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #dc3545;
}

@keyframes kgnShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* 1. Kapsayıcıyı ekran yüksekliğine sabitle ve taşmayı otomatik yap */
.scrollbar.simplebar-scrollable-y {
    height: calc(100vh - 70px); /* Navbar yüksekliğini düş, kendine göre ayarla */
    overflow-y: auto;
    overflow-x: hidden;
    
    /* Firefox İçin: Şeffaf başla, hover'da renklendir */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.4s ease; /* Smooth geçiş */
}

/* 2. Webkit (Chrome, Edge, Safari) İçin: Genişlik ve Track */
.scrollbar.simplebar-scrollable-y::-webkit-scrollbar {
    width: 12px; /* Toplam genişliği biraz artırıp, padding ekleyeceğiz */
}

.scrollbar.simplebar-scrollable-y::-webkit-scrollbar-track {
    background: transparent; /* Track her zaman şeffaf */
}

/* 3. Normal Durum: Kaydırma çubuğunu (Thumb) gizle */
.scrollbar.simplebar-scrollable-y::-webkit-scrollbar-thumb {
    background-color: transparent; /* Şeffaf başla */
    border-radius: 10px;
    
    /* *** Sola Çekme Hilesi *** */
    /* Sağdan ve soldan şeffaf border ekleyerek thumb'ı daraltıyoruz */
    border: 4px solid transparent; 
    
    /* Rengi sadece içerik alanına uygula, border'a taşırma */
    background-clip: content-box; 
    
    /* Smooth geçiş efekti */
    transition: background-color 0.4s ease-in-out;
}

/* 4. Hover Durumu: Fare menü veya scrollbar üzerine gelince belir */
.scrollbar.simplebar-scrollable-y:hover::-webkit-scrollbar-thumb {
    /* Senin koyu arka planın (#1e1f2) üzerinde tatlı duracak Sky Blue tonu */
    /* Bu renk: hafif koyu ve %70 saydam bir mavidir */
    background-color: rgba(59, 130, 246, 0.7); 
}

/* 5. Firefox İçin Hover Durumu */
.scrollbar.simplebar-scrollable-y:hover {
    scrollbar-color: rgba(59, 130, 246, 0.7) transparent;
}

/* --- Genel Ayarlar ve Kapsayıcı --- */
.author-selection-group {
    --primary-color: #007bff; /* Ana seçim rengi */
    --card-bg: #1e2227;        /* Kart varsayılan arka planı */
    --card-hover-bg: #252a30;  /* Hover arka planı */
    --border-color: #2d3238;   /* Varsayılan kenarlık */
    --text-muted: #8b95a1;     /* Sönük metin rengi */
}

/* 7. ve 8. seviye yazı boyutları (Bootstrap'a ek) */
.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.75rem; letter-spacing: 0.5px; }

/* --- Radio Input'u Tamamen Gizle --- */
.card-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* --- Kartın Temal Hali --- */
.card-radio-wrapper {
    cursor: pointer;
    perspective: 1000px; /* Hafif 3D efekti için */
}

.card-radio-content {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px; /* Daha yumuşak köşeler */
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Pürüzsüz geçiş */
    height: 100%;
    overflow: hidden;
}

/* Hover Efekti */
.card-radio-wrapper:hover .card-radio-content {
    border-color: rgba(0, 123, 255, 0.4);
    background-color: var(--card-hover-bg);
    transform: translateY(-3px); /* Hafif yukarı kalkma */
}

/* --- Avatar Stilleri --- */
.avatar-wrapper .avatar-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Tik İkonu (Badge) Stilleri --- */
.check-icon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0; /* Normalde gizli */
    transform: scale(0) rotate(-45deg); /* Animasyon için başlangıç pozisyonu */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Yaylanma efekti */
    z-index: 2;
}

/* ========================================= */
/* --- SEÇİLDİĞİ ZAMAN (CHECKED) HİSSİ --- */
/* ========================================= */

/* 1. Kart Kenarlığı ve Arka Planı */
.card-radio-input:checked + .card-radio-content {
    border-color: var(--primary-color) !important;
    background-color: rgba(0, 123, 255, 0.08); /* Çok hafif mavi parıltı */
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2); /* Mavi gölge */
    transform: scale(1.02); /* Hafif büyüme (Seçilme hissinin temeli) */
}

/* 2. Avatar Kenarlığı Renklensin */
.card-radio-input:checked + .card-radio-content .avatar-img {
    border-color: var(--primary-color);
    transform: scale(1.05); /* Avatar da hafif büyüsün */
}

/* 3. Tik İkonunu Göster ve Animate Et */
.card-radio-input:checked + .card-radio-content .check-icon-badge {
    opacity: 1;
    transform: scale(1) rotate(0deg); /* Dönerek ve büyüyerek gelsin */
}

/* 4. Yazar İsmi Mavi Olsun */
.card-radio-input:checked + .card-radio-content .author-name {
    color: var(--primary-color) !important;
}

.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
	font-size: var(--theme-font-size-base);
    font-weight: 400;
    line-height: 1.5;	
	background-color: var(--theme-secondary-bg);
    background-clip: padding-box;
    border: var(--theme-border-width) solid var(--theme-border-color);
    border-radius: var(--theme-border-radius);
    transition: all 0.3s ease;
}

.tags-input-container:focus-within,.tags-input-container:hover {
    border-color: var(--theme-dark-border-subtle);
    box-shadow: var(--theme-theme-card-box-shadow);
}

/* Badge (Etiket) Stili */
.tag-badge {
    display: flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 4px;
    font-size: 13px;
    font-weight: 500;
    animation: tagPop 0.2s ease-out;
}

.tag-badge i {
    margin-left: 8px;
    cursor: pointer;
    font-size: 11px;
    transition: opacity 0.2s;
}

.tag-badge i:hover {
    opacity: 0.7;
}

/* Input Alanı */
#tag-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
}

/* Etiket Gelme Animasyonu */
@keyframes tagPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Editör alanı ve Haber detay sayfası için */
blockquote {
    border-left: 5px solid #ee3124; /* Logonun kırmızısı veya koyu bir gri */
    background-color: #f9f9f9;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    position: relative;
}

/* Editörün yazım alanını sınırla */
.kagan-editor-area {
    overflow-y: auto;  /* İçerik aşınca scrollbar çıkar */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Şık bir scrollbar tasarımı (Opsiyonel) */
.kagan-editor-area::-webkit-scrollbar {
    width: 8px;
}
.kagan-editor-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.kagan-editor-area::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.kagan-editor-area::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

