
/* =========================================================
   AIDEP V10 PREMIUM DASHBOARD DESIGN SYSTEM
   Referans ana panel görseline sadık, theme-token tabanlı yapı
   ========================================================= */

:root{
  --aidep-bg:#f6f8fc;
  --aidep-surface:#ffffff;
  --aidep-surface-soft:#f9fbff;
  --aidep-sidebar:#05295d;
  --aidep-sidebar-deep:#02224f;
  --aidep-sidebar-hover:#0b3c82;
  --aidep-primary:#2563eb;
  --aidep-primary-strong:#1557d6;
  --aidep-primary-soft:#eaf1ff;
  --aidep-cyan:#0ea5e9;
  --aidep-turquoise:#14b8a6;
  --aidep-green:#10b981;
  --aidep-green-soft:#e8f9f2;
  --aidep-orange:#f59e0b;
  --aidep-orange-soft:#fff4df;
  --aidep-red:#ef4444;
  --aidep-red-soft:#ffe9ea;
  --aidep-purple:#8b5cf6;
  --aidep-purple-soft:#f0ebff;
  --aidep-text:#0d2347;
  --aidep-muted:#6b7b97;
  --aidep-border:#e3e8f1;
  --aidep-shadow:0 8px 24px rgba(13,35,71,.045);
  --aidep-shadow-hover:0 12px 32px rgba(13,35,71,.09);
  --aidep-radius:13px;
  --aidep-radius-sm:9px;
  --aidep-space-1:4px;
  --aidep-space-2:8px;
  --aidep-space-3:12px;
  --aidep-space-4:16px;
  --aidep-space-5:20px;
  --aidep-space-6:24px;
  --aidep-sidebar-width:252px;
  --aidep-sidebar-collapsed:78px;
  --aidep-header-height:84px;
}

*{box-sizing:border-box}
body{background:var(--aidep-bg);color:var(--aidep-text)}
.shell{background:var(--aidep-bg)}
.main{background:var(--aidep-bg);min-height:100vh;padding:0 20px 16px;margin-left:var(--aidep-sidebar-width);transition:margin-left .22s ease}
.shell.sidebar-is-collapsed .main{margin-left:var(--aidep-sidebar-collapsed)}

.sidebar{
  width:var(--aidep-sidebar-width);
  background:linear-gradient(180deg,var(--aidep-sidebar) 0%,var(--aidep-sidebar-deep) 100%);
  color:#fff;
  padding:19px 12px 14px;
  position:fixed;inset:0 auto 0 0;
  display:flex;flex-direction:column;
  transition:width .22s ease;
  box-shadow:8px 0 25px rgba(3,24,62,.12);
  z-index:40;
}
.shell.sidebar-is-collapsed .sidebar{width:var(--aidep-sidebar-collapsed)}
.sidebar .logo{display:flex;align-items:center;gap:10px;min-height:66px;padding:0 5px 14px;position:relative}
.logo-mark{width:42px;height:42px;flex:0 0 auto;border-radius:50%;background:
  radial-gradient(circle,#20c5d9 0 2px,transparent 2.4px) 0 0/9px 9px;
  filter:drop-shadow(0 0 5px rgba(32,197,217,.25))}
.logo-title{font-size:28px;font-weight:850;line-height:.95;letter-spacing:-1px}
.logo-sub{font-size:8px;line-height:1.16;font-weight:700;margin-top:5px;opacity:.94}
.sidebar-collapse{
  margin-left:auto;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#dbeafe;
  display:grid;place-items:center;cursor:pointer;font-size:20px
}
.sidebar-collapse:hover{background:rgba(255,255,255,.1)}
.shell.sidebar-is-collapsed .logo-title,
.shell.sidebar-is-collapsed .logo-sub,
.shell.sidebar-is-collapsed .nav-label,
.shell.sidebar-is-collapsed .session-details{display:none}
.shell.sidebar-is-collapsed .sidebar .logo{justify-content:center;padding-left:0;padding-right:0}
.shell.sidebar-is-collapsed .sidebar-collapse{position:absolute;right:-8px;top:8px;background:#0b3c82}
.nav{display:flex;flex-direction:column;gap:5px;margin-top:7px}
.nav button{
  display:flex;align-items:center;gap:12px;width:100%;padding:12px 13px;border:0;border-radius:9px;
  background:transparent;color:#eaf2ff;font-size:14px;text-align:left;cursor:pointer;
  transition:background .18s ease,transform .18s ease
}
.nav button:hover{background:rgba(255,255,255,.08)}
.nav button.active{background:linear-gradient(90deg,#1d63d7,#1554bd);box-shadow:0 8px 22px rgba(0,44,112,.24)}
.nav .ico{display:grid;place-items:center;width:19px;height:19px;flex:0 0 auto}
.nav .ico svg{width:19px;height:19px}
.shell.sidebar-is-collapsed .nav button{justify-content:center;padding-left:0;padding-right:0}
.sidebar-bottom{
  margin-top:auto;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.07);
  border-radius:12px;padding:11px;color:#fff;font-size:12px
}
.session-row{display:flex;gap:8px;align-items:center}
.session-shield{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1)}
.session-shield svg{width:17px;height:17px}
.session-details small{display:block;color:#cbd9f2;margin-top:3px}
.shell.sidebar-is-collapsed .sidebar-bottom{padding:8px;display:grid;place-items:center}
.shell.sidebar-is-collapsed .session-row{justify-content:center}

.topbar{
  min-height:var(--aidep-header-height);display:grid;grid-template-columns:minmax(190px,1fr) minmax(290px,440px) 260px auto;
  align-items:center;gap:18px;border-bottom:1px solid rgba(227,232,241,.75);padding:12px 0;background:rgba(246,248,252,.88);
  position:sticky;top:0;z-index:30;backdrop-filter:blur(12px)
}
.title-wrap h1{font-size:23px;line-height:1;margin:0 0 8px;letter-spacing:-.5px}
.subtitle{font-size:12px;color:var(--aidep-muted)}
.subtitle strong{color:var(--aidep-primary)}
.search{
  display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;background:#fff;border:1px solid var(--aidep-border);
  border-radius:11px;color:var(--aidep-muted);font-size:13px;box-shadow:0 3px 12px rgba(13,35,71,.025)
}
.search svg{width:18px;height:18px}
.search kbd{margin-left:auto;font:inherit;color:#7384a3;background:transparent}
.inst-select,.role-select{
  height:46px;border:1px solid var(--aidep-border);background:#fff;border-radius:11px;padding:0 12px;color:var(--aidep-text);
  font-size:13px;box-shadow:0 3px 12px rgba(13,35,71,.02)
}
.v10-top-icons{display:flex;align-items:center;gap:9px}
.v10-iconbtn{
  width:38px;height:38px;display:grid;place-items:center;border:0;background:transparent;color:var(--aidep-text);cursor:pointer;
  border-radius:10px;position:relative
}
.v10-iconbtn:hover{background:#eef3fb}
.v10-iconbtn svg{width:20px;height:20px}
.counter{position:absolute;right:0;top:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:800;background:var(--aidep-primary)}
.counter.red{background:var(--aidep-red)}
.v10-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#0c2b5f;color:#fff;font-weight:800;position:relative}
.v10-avatar:after{content:"";position:absolute;right:0;bottom:1px;width:10px;height:10px;border-radius:50%;background:var(--aidep-green);border:2px solid #fff}

.v10-dashboard{padding-top:18px}
.v10-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.ds-card{
  background:var(--aidep-surface);border:1px solid var(--aidep-border);border-radius:var(--aidep-radius);box-shadow:var(--aidep-shadow);
  transition:box-shadow .2s ease,transform .2s ease
}
.ds-card:hover{box-shadow:var(--aidep-shadow-hover);transform:translateY(-1px)}
.kpi-card{padding:16px 15px 12px;min-height:119px;display:grid;grid-template-columns:50px 1fr;gap:12px}
.kpi-icon{width:48px;height:48px;border-radius:11px;display:grid;place-items:center}
.kpi-icon svg{width:27px;height:27px}
.tone-blue{background:var(--aidep-primary-soft);color:var(--aidep-primary)}
.tone-green{background:var(--aidep-green-soft);color:var(--aidep-green)}
.tone-orange{background:var(--aidep-orange-soft);color:var(--aidep-orange)}
.tone-red{background:var(--aidep-red-soft);color:var(--aidep-red)}
.tone-purple{background:var(--aidep-purple-soft);color:var(--aidep-purple)}
.kpi-label{font-size:12px;color:var(--aidep-text);margin-bottom:5px}
.kpi-value{font-size:25px;font-weight:850;letter-spacing:-.6px;line-height:1}
.kpi-meta{grid-column:2;margin-top:10px;display:flex;align-items:center;justify-content:space-between;color:var(--aidep-muted);font-size:11px}
.trend-up{color:var(--aidep-green);font-weight:750}
.trend-down{color:var(--aidep-red);font-weight:750}
.mini-spark{display:flex;align-items:end;gap:3px;height:20px}
.mini-spark i{width:3px;border-radius:4px;background:currentColor;opacity:.85}

.v10-layout{display:grid;grid-template-columns:1.1fr .95fr 1.5fr;gap:14px;margin-top:14px}
.v10-bottom{display:grid;grid-template-columns:1fr 1.15fr 1.35fr 1.15fr;gap:14px;margin-top:14px}
.widget{min-height:230px;padding:14px}
.widget.compact{min-height:208px}
.widget-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.widget-title{font-size:15px;font-weight:850;letter-spacing:-.2px}
.widget-link{color:var(--aidep-primary);font-size:11px;font-weight:750;cursor:pointer}
.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quick-action{border:1px solid var(--aidep-border);background:#fbfdff;border-radius:10px;padding:11px;display:flex;align-items:center;gap:9px;text-align:left;cursor:pointer;color:var(--aidep-text)}
.quick-action:hover{background:#f2f7ff;border-color:#bad0ff}
.quick-icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--aidep-primary-soft);color:var(--aidep-primary)}
.quick-icon svg{width:17px;height:17px}
.quick-action span:last-child{font-size:12px;font-weight:700}

.announcement-list,.recent-list,.birthday-list,.calendar-list{display:flex;flex-direction:column;gap:10px}
.announcement{display:grid;grid-template-columns:8px 1fr;gap:9px;padding-bottom:10px;border-bottom:1px solid var(--aidep-border)}
.announcement:last-child,.recent-item:last-child,.birthday:last-child,.calendar-event:last-child{border-bottom:0}
.ann-dot{width:8px;height:8px;border-radius:50%;margin-top:4px}
.ann-type{font-size:10px;color:var(--aidep-muted);font-weight:800;text-transform:uppercase}
.ann-title{font-size:12px;font-weight:700;line-height:1.35;margin-top:3px}
.ann-date{font-size:10px;color:var(--aidep-muted);margin-top:4px}

.calendar-event{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;padding-bottom:10px;border-bottom:1px solid var(--aidep-border)}
.calendar-date{width:46px;height:46px;border-radius:9px;display:grid;place-items:center;background:#f4f7fc}
.calendar-date b{font-size:17px;line-height:1}
.calendar-date span{font-size:9px;color:var(--aidep-muted);font-weight:800}
.calendar-event strong{font-size:12px}
.calendar-event small{font-size:10px;color:var(--aidep-muted)}
.calendar-time{font-size:11px;font-weight:800;color:var(--aidep-primary)}

.weather-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.weather-temp{font-size:40px;font-weight:850;letter-spacing:-2px}
.weather-city{font-weight:800;font-size:14px}
.weather-detail{color:var(--aidep-muted);font-size:11px;line-height:1.55}
.weather-symbol{width:70px;height:70px;display:grid;place-items:center;border-radius:50%;background:#eef5ff;color:var(--aidep-primary);font-size:34px}

.survey-question{font-size:12px;font-weight:750;line-height:1.45;margin-bottom:12px}
.survey-option{margin-top:9px}
.survey-row{display:flex;align-items:center;justify-content:space-between;font-size:11px}
.survey-bar{height:7px;margin-top:5px;border-radius:10px;background:#edf1f7;overflow:hidden}
.survey-bar i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,var(--aidep-primary),#60a5fa)}

.recent-item{display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;padding-bottom:10px;border-bottom:1px solid var(--aidep-border)}
.recent-icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center}
.recent-icon svg{width:16px;height:16px}
.recent-item strong{font-size:12px;display:block}
.recent-item small{font-size:10px;color:var(--aidep-muted)}
.recent-date{font-size:10px;color:var(--aidep-muted)}

.birthday{display:grid;grid-template-columns:36px 1fr auto;gap:9px;align-items:center;padding-bottom:10px;border-bottom:1px solid var(--aidep-border)}
.person-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#eaf1ff;color:var(--aidep-primary);font-size:11px;font-weight:850}
.birthday strong{font-size:12px;display:block}
.birthday small{font-size:10px;color:var(--aidep-muted)}
.birth-date{font-size:10px;font-weight:750;color:var(--aidep-primary)}

.v10-footer{display:flex;align-items:center;justify-content:space-between;color:#7c8ba5;font-size:11px;padding:18px 4px 4px}
.footer-links{display:flex;gap:16px}
.footer-version{display:flex;align-items:center;gap:7px}
.footer-version i{width:7px;height:7px;border-radius:50%;background:var(--aidep-green)}

.v10-service-strip{display:flex;gap:8px;align-items:center;margin-top:14px;padding:10px 12px;background:#fff;border:1px solid var(--aidep-border);border-radius:10px;font-size:11px;color:var(--aidep-muted)}
.service-dot{width:7px;height:7px;border-radius:50%;background:var(--aidep-green)}
.service-sep{height:14px;width:1px;background:var(--aidep-border);margin:0 3px}

@media (max-width:1450px){
  .topbar{grid-template-columns:minmax(170px,1fr) minmax(260px,360px) 225px auto;gap:12px}
  .v10-kpi-grid{grid-template-columns:repeat(5,minmax(170px,1fr));overflow-x:auto;padding-bottom:3px}
}
@media (max-width:1180px){
  .v10-layout{grid-template-columns:1fr 1fr}
  .v10-layout .widget:last-child{grid-column:1/-1}
  .v10-bottom{grid-template-columns:1fr 1fr}
  .topbar{grid-template-columns:1fr auto}
  .search,.inst-select{display:none}
}
@media (max-width:780px){
  .main{margin-left:var(--aidep-sidebar-collapsed);padding:0 12px 12px}
  .sidebar{width:var(--aidep-sidebar-collapsed)}
  .sidebar .logo-title,.sidebar .logo-sub,.sidebar .nav-label,.sidebar .session-details{display:none}
  .sidebar .logo,.nav button{justify-content:center}
  .v10-kpi-grid{grid-template-columns:repeat(5,185px)}
  .v10-layout,.v10-bottom{grid-template-columns:1fr}
  .v10-layout .widget:last-child{grid-column:auto}
}
