/*============================================================
  Renkli Koçluk — Premium UI v9 (Modern Dashboard Edition)
  ============================================================*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Renk Paleti - Görsellerdeki canlı ve soft tonlara göre uyarlandı */
  --p: #7C3AED; --ph: #6D28D9; --pl: #F3E8FF; --p100: #EDE9FE;
  --c: #00B5D8; /* Daha parlak bir mavi/cyan (Kredi skoru görselindeki gibi) */
  --b: #4318FF; /* Koyu Mavi vurgular */
  --y: #FFB547; /* Dashboard 1'deki turuncu/sarı vurgular */
  --e: #059669; --a: #D97706; --r: #E11D48;
  
  /* Arka Plan ve Yüzeyler - Daha ferah, maviye çalan soft gri */
  --bg: #F4F7FE; 
  --s: #FFFFFF; 
  --s2: #F8F9FC; 
  --s3: #EEF0F6;
  
  /* Tipografi Renkleri - Koyu lacivert başlıklar, soft gri metinler */
  --t1: #2B3674; 
  --t2: #707EAE; 
  --t3: #A3AED0;
  
  /* Kenarlıklar */
  --b1: #E2E8F0; 
  --b2: #EDF2F7;
  
  /* Yuvarlatılmış Köşeler (Border Radius) - Görsellerdeki gibi daha yumuşak */
  --rx: 10px; --rs: 14px; --r: 18px; --rl: 24px; --rx1: 28px; --rx2: 32px;
  
  /* Gölgeler (Box Shadows) - Daha derin, yumuşak ve yayılan gölgeler */
  --ss: 0 4px 15px rgba(0, 0, 0, 0.03);
  --s: 0 10px 30px rgba(112, 144, 176, 0.12); /* Cam/Soft hissiyatı veren ana gölge */
  --sm: 0 20px 40px rgba(112, 144, 176, 0.15);
  
  --tr: .25s cubic-bezier(0.4, 0, 0.2, 1);
  --sw: 280px; /* Kenar çubuğu biraz genişletildi */
  --p200: #DDD6FE; --p300: #C4B5FD;
  --yl: #FEF3C7;
  --text: #2B3674; --text-muted: #A3AED0;
  --border: #E2E8F0;
  --r-sm: 8px; --r-lg: 24px; --r-xl: 28px;
  --shadow-lg: 0 20px 40px rgba(112, 144, 176, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Outfit', system-ui, sans-serif; color: var(--t1); background: var(--bg); line-height: 1.6; letter-spacing: -.01em; }
h1, h2, h3, h4 { color: var(--t1); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }

/*========================================
  TOOLBAR (Özel İstek)
  ========================================*/
.wd-toolbar {
    border-radius: var(--rx);
    margin: 0 10px 10px 10px;
    box-shadow: var(--ss); /* Sırıtmayacak daha yumuşak bir gölgeye çekildi */
    border: 1px solid var(--b1);
    background: var(--s);
}

/*========================================
  BUTTONS
  ========================================*/
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 2.875rem; padding: 0 1.5rem; font-size: .875rem; font-weight: 600; border-radius: var(--r); cursor: pointer; border: none; white-space: nowrap; transition: all var(--tr); line-height: 1; user-select: none; font-family: inherit; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-primary { background: var(--b); color: #fff; box-shadow: 0 4px 15px rgba(67, 24, 255, 0.3); }
.btn-primary:hover { background: #3311DB; box-shadow: 0 8px 25px rgba(67, 24, 255, 0.4); transform: translateY(-2px); }

/*========================================
  SIDEBAR (Görsel 2 ve 3 Tarzı)
  ========================================*/
.sidebar { width: var(--sw); background: var(--s); border-right: none; display: flex; flex-direction: column; height: 100vh; position: fixed; left: 0; top: 0; z-index: 50; padding: 1.5rem 0; box-shadow: 4px 0 24px rgba(112, 144, 176, 0.08); }
.sidebar-logo { display: flex; align-items: center; gap: 1rem; padding: 0 2rem 2rem; }
.sidebar-logo-icon { width: 3rem; height: 3rem; border-radius: var(--rs); background: var(--y); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(255, 181, 71, 0.4); }
.sidebar-logo-text { font-weight: 800; font-size: 1.25rem; color: var(--t1); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.sidebar-section-title { font-size: .8rem; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .1em; padding: 1.5rem 1rem .5rem; }
.sidebar-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--r); font-size: .95rem; font-weight: 500; color: var(--t2); transition: all var(--tr); cursor: pointer; margin-bottom: .25rem; }
.sidebar-link:hover { background: var(--s2); color: var(--b); }

/* Görsel 3'teki gibi tamamen hap (pill) şeklinde aktif buton stili */
.sidebar-link.active { background: var(--b); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(67, 24, 255, 0.25); }
.sidebar-link .s-icon { font-size: 1.25rem; transition: all var(--tr); opacity: .7; }
.sidebar-link.active .s-icon { opacity: 1; color: #fff; }

/*========================================
  TOPBAR
  ========================================*/
.topbar { height: 5rem; background: transparent; backdrop-filter: none; border: none; display: flex; align-items: center; padding: 0 2.5rem; gap: 1.5rem; position: sticky; top: 0; z-index: 40; margin-top: 1rem; }
.topbar-breadcrumb { font-size: .875rem; color: var(--t2); font-weight: 500; }
.topbar-breadcrumb span { color: var(--t1); font-weight: 700; font-size: 1.75rem; display: block; margin-top: .25rem; }

.topbar-search { display: flex; align-items: center; gap: .75rem; height: 3.25rem; padding: 0 1.5rem; border-radius: 2rem; border: none; background: var(--s); box-shadow: var(--ss); font-size: .9rem; color: var(--t2); margin-left: auto; width: 300px; transition: all var(--tr); }
.topbar-search:focus-within { box-shadow: var(--s); width: 350px; }

/*========================================
  MAIN CONTENT & CARDS (Çerçevesiz, Bol Gölgeli)
  ========================================*/
.main-content { margin-left: var(--sw); min-height: 100vh; padding-bottom: 3rem; }
.main-inner { padding: 0 2.5rem; max-width: 1600px; }

/* Çizgiler kaldırıldı, tamamen gölge ile derinlik veriliyor (Tasarım 1 & 2 uyumu) */
.card-surface { background: var(--s); border-radius: var(--rx2); border: none; box-shadow: var(--s); padding: 1.75rem; }
.card-soft { background: linear-gradient(135deg, var(--s), var(--s2)); border-radius: var(--rx2); border: none; box-shadow: var(--ss); }

/*========================================
  STAT CARDS (Görsel 1 Tarzı Akıcı Kartlar)
  ========================================*/
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--s); border-radius: var(--rx1); padding: 1.75rem; border: none; box-shadow: var(--s); display: flex; align-items: center; gap: 1.5rem; transition: transform var(--tr); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--sm); }
.stat-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-icon.purple { background: var(--pl); color: var(--p); }
.stat-icon.blue { background: #E1E9FF; color: var(--b); }
.stat-icon.yellow { background: var(--yl); color: var(--y); }

.stat-content { flex: 1; }
.stat-label { font-size: .875rem; font-weight: 500; color: var(--t2); margin-bottom: .25rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--t1); line-height: 1.2; }

/*========================================
  GRADIENT WIDGETS (Görsel 1 Renkli Kartlar)
  ========================================*/
.widget-purple { background: linear-gradient(135deg, #868CFF, #4318FF); color: #fff; }
.widget-cyan { background: linear-gradient(135deg, #00C6FF, #0072FF); color: #fff; }
.widget-orange { background: linear-gradient(135deg, #FFB75E, #ED8F03); color: #fff; }
.widget-card { border-radius: var(--rx1); padding: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border: none; position: relative; overflow: hidden; }

/*========================================
  PROGRESS & CHARTS (Görsel 3 Kredi Skoru Uyumu)
  ========================================*/
.progress { height: .75rem; border-radius: 1rem; background: var(--s3); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 1rem; transition: width 1s ease; }
.progress-bar.primary { background: var(--b); }
.progress-bar.gradient { background: linear-gradient(90deg, #868CFF, #4318FF); }

/*========================================
  AVATARS & BADGES
  ========================================*/
.avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--ss); }
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.5rem; }
.avatar-sm { width: 2.25rem; height: 2.25rem; font-size: .75rem; }
.avatar.primary { background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.badge { display: inline-flex; align-items: center; padding: .4rem .85rem; font-size: .8rem; font-weight: 700; border-radius: 2rem; background: var(--pl); color: var(--p); white-space: nowrap; }
.form-select { width: 100%; border-radius: 18px; border: 1px solid var(--b2, #EDF2F7); background: #F8FAFC; padding: .575rem 1rem; font-size: .875rem; color: var(--t1); transition: border-color var(--tr); outline: none; font-family: inherit; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717A9E' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-select:focus { border-color: #7C3AED; box-shadow: 0 0 0 4px rgba(124,58,237,.08); background-color: #fff; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-indigo { background: #E0E7FF; color: #3730A3; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }
.badge-neutral { background: #F1F5F9; color: #475569; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-pink { background: #FCE7F3; color: #9D174D; }
.form-input { width: 100%; border-radius: 18px; border: 1px solid var(--b2, #EDF2F7); background: #F8FAFC; padding: .575rem 1rem; font-size: .875rem; color: var(--t1); transition: border-color var(--tr); outline: none; font-family: inherit; }
.form-input:focus { border-color: #7C3AED; box-shadow: 0 0 0 4px rgba(124,58,237,.08); background: #fff; }
.hero-card { background: linear-gradient(135deg, #fff, #F8F9FC); border-radius: var(--rx2, 32px); box-shadow: var(--s); padding: 1.75rem; border: none; }
.hero-card-header { display: flex; align-items: center; gap: 1.5rem; }
.hero-card-icon { display: flex; align-items: center; justify-content: center; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: .8125rem; }
.btn-xs { height: 1.875rem; padding: 0 .75rem; font-size: .75rem; }
.topbar-btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; background: var(--s); cursor: pointer; font-size: 1.15rem; box-shadow: var(--ss); transition: all var(--tr); color: var(--t2); }
.topbar-btn:hover { color: var(--t1); box-shadow: var(--s); }
.dot { position: absolute; top: .25rem; right: .25rem; width: .625rem; height: .625rem; border-radius: 50%; background: #EF4444; border: 2px solid #fff; }
.s-badge { margin-left: auto; background: var(--pl); color: var(--p); font-size: .625rem; font-weight: 700; padding: .15rem .5rem; border-radius: 2rem; }
.sidebar.open { transform: translateX(0); }
.sidebar-user { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; }
.sidebar-user-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.sidebar-user-name { font-weight: 600; font-size: .9rem; color: var(--t1); }
.sidebar-user-email { font-size: .75rem; color: var(--t3); }
.float-ai { position: fixed; bottom: 2rem; right: 2rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #A78BFA); color: #fff; font-size: 1.5rem; border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(124,58,237,.3); z-index: 50; transition: all var(--tr); display: flex; align-items: center; justify-content: center; }
.float-ai:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(124,58,237,.4); }
.stat-desc { font-size: .75rem; color: var(--t3); margin-top: .15rem; }
.btn { font-family: inherit; }

/* RESPONSIVE */
@media(max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 1.5rem; }
  .main-inner { padding: 0 1.5rem; }
}