/* â”€â”€ EUCLID CIRCULAR B â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/euclid-circular-light.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/euclid-circular-light-italic.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/euclid-circular-regular.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/euclid-circular-italic.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/euclid-circular-medium.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/euclid-circular-medium-italic.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/euclid-circular-semibold.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: italic; font-weight: 600; font-display: swap;
  src: url('../fonts/euclid-circular-semibold-italic.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/euclid-circular-bold.woff') format('woff');
}
@font-face {
  font-family: 'Euclid Circular B';
  font-style: italic; font-weight: 700; font-display: swap;
  src: url('../fonts/euclid-circular-bold-italic.woff') format('woff');
}

/* â”€â”€ RESET & TOKENS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --swt-button:        #0aa0de;
  --swt-button-2:      #900ade;
  --swt-button-3:      #f1effa;
  --swt-button-4:      #2563eb;
  --swt-button-5: #eef1f2;
  --swt-text-5:        #3632a3;
  --swt-text-4:        #8b8bd5;
  --swt-text-3:        #7d7d94;
  --swt-text-2:        #6c6c6c;
  --swt-text-1:        #3c486e;
  --swt-title:         #24252f;
  --swt-green:         #0bc66a;
  --swt-green-light:   #0bc66a24;
  --swt-orange:        #b88713;
  --swt-orange-light:  #fbefd2;
  --swt-red:           #dc3c3c;
  --swt-red-light:     #dc3c3c1a;
  --swt-purple:        #942bb7;
  --swt-purple-light:  #813cdc1a;
  --swt-border-1: #dbe2ec;
  --swt-bg-4:          #131837;
  --swt-bg-5:          #242845;
  --swt-section-2:     #f7f8fd;
  --swt-radius-1:      12px;
  --swt-radius-2:      7px;
  --blue:       var(--swt-button);
  --blue-hover: #0891c8;
  --blue-bg:    var(--swt-button-5);
  --blue-mid:   #c6efff;
  --text:       var(--swt-title);
  --text-2:     var(--swt-text-1);
  --text-3:     var(--swt-text-3);
  --text-4:     #a0a8bf;
  --border:     var(--swt-border-1);
  --bg:         #ffffff;
  --bg-page:    var(--swt-section-2);
  --radius:     var(--swt-radius-2);
}

html, body { height: 100%; font-family: 'Euclid Circular B', system-ui, sans-serif; font-size: 15px; color: var(--text); background: var(--bg-page); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

/* â”€â”€ LAYOUT â”€â”€ */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* â”€â”€ SIDEBAR â”€â”€ */
.sidebar { width: 310px; min-width: 310px; height: 100vh; background: var(--bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; flex-shrink: 0; position: relative; }

.sb-logo { padding: 20px 18px 16px; border-bottom: 1px solid var(--border); }
.sb-logo-link { display: flex; align-items: center; gap: 9px; }
.sb-logo-mark {width: 40px;height: 40px;border-radius: var(--swt-radius-2);display: flex;align-items: center;justify-content: center;flex-shrink: 0;overflow: hidden;}
.sb-logo-mark img {width: 40px;height: 40px;object-fit: contain;display: block;}
.sb-logo-text { display: flex; flex-direction: column; }
.sb-logo-name {font-size: 19px;font-weight: 700;color: var(--swt-title);letter-spacing: -0.3px;line-height: 1.2;}
.sb-logo-sub  {font-size: 12.5px;color: var(--text-3);line-height: 1.2;}

.sb-section { padding: 16px 12px 8px; }
.sb-section + .sb-section { border-top: 1px solid var(--border); padding-top: 14px; }
.sb-label { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-4); padding: 0 6px; margin-bottom: 8px; display: block; }

.theme-list { display: flex; flex-direction: column; gap: 1px; }

.theme-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); cursor: pointer; text-align: left; transition: background 0.12s; color: var(--text-2); }
.theme-btn:hover { background: var(--bg-page); }
.theme-btn.active { background: var(--blue-bg); color: var(--blue); }

.theme-icon { width: 30px; height: 30px; border-radius: var(--swt-radius-2); border: 1px solid var(--border); background: var(--bg-page); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-3); }
.theme-btn.active .theme-icon {background: #ffffff;border-color: transparent;color: var(--blue);}
.theme-icon svg { width: 14px; height: 14px; }

.theme-info { flex: 1; min-width: 0; }
.theme-name-wrap { display: flex; align-items: center; gap: 6px; }
.theme-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.theme-desc { font-size: 12.5px; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; line-height: 1.3; }
.theme-btn.active .theme-desc {color: #5e7a99;}
.theme-ver { font-size: 11px; font-weight: 500; color: var(--text-4); white-space: nowrap; flex-shrink: 0; }
.theme-btn.active .theme-ver { color: var(--blue); }

.theme-new-badge { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--swt-green-light); color: var(--swt-green); border: 1px solid #0bc66a30; padding: 1px 6px; border-radius: 20px; flex-shrink: 0; line-height: 1.6; }

.nav-list { display: flex; flex-direction: column; gap: 1px; }
.nav-link { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: var(--radius); color: var(--text-3); font-size: 13.5px; font-weight: 500; transition: background 0.12s, color 0.12s; }
.nav-link:hover { background: var(--bg-page); color: var(--text); }
.nav-link svg { width: 15px; height: 15px; flex-shrink: 0; }

.sb-footer {margin-top: auto;padding: 14px 18px;border-top: 1px solid var(--border);font-size: 14.5px;color: var(--text-4);}

/* â”€â”€ MAIN â”€â”€ */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar { height: 50px; flex-shrink: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 16px; }

.breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--text-3); flex-shrink: 0; }
.breadcrumb a { color: var(--text-3); transition: color .12s; }
.breadcrumb a:hover { color: var(--blue); }
.bc-sep { color: var(--border); }
.bc-cur { color: var(--text); font-weight: 500; }

.search-bar { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 11px; background: var(--bg-page); width: 210px; }
.search-bar svg { width: 13px; height: 13px; color: var(--text-4); flex-shrink: 0; }
.search-bar input { border: none; background: transparent; outline: none; font-size: 13.5px; color: var(--text); font-family: inherit; width: 100%; }
.search-bar input::placeholder { color: var(--text-4); }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.tb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500; cursor: pointer; border: none; font-family: inherit; transition: background 0.12s, color 0.12s; white-space: nowrap; text-decoration: none; }
.tb-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.tb-btn-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.tb-btn-outline:hover { background: var(--bg-page); color: var(--text); }
.tb-btn-primary { background: var(--blue); color: #fff; border: 1px solid transparent; }
.tb-btn-primary:hover { background: var(--blue-hover); }

.mob-btn { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-2); flex-shrink: 0; background: transparent; }
.mob-btn svg { width: 16px; height: 16px; }

.sb-close { display: none; position: absolute; top: 14px; right: 12px; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-3); background: transparent; flex-shrink: 0; z-index: 10; }
.sb-close svg { width: 14px; height: 14px; }

.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 199; }
.sb-overlay.visible { display: block; }

/* â”€â”€ CONTENT â”€â”€ */
.content { flex: 1; overflow-y: auto; padding: 36px 36px 64px; background: var(--swt-section-2); }
.content-wrap { width: 100%; }

.hero { margin-bottom: 28px; }
.hero-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); margin-bottom: 7px; line-height: 1.18; }
.hero-sub { font-size: 15px; color: var(--text-3); margin-bottom: 16px; font-weight: 400; }
.hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-ver {display: inline-flex;align-items: center;gap: 5px;background: var(--blue);color: #fff;font-size: 13px;font-weight: 600;padding: 5px 13px;border-radius: 11px;}
.hero-ver svg { width: 12px; height: 12px; }
.hero-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-3); }
.hero-stat svg { width: 13px; height: 13px; color: var(--text-4); }

.divider { height: 1px; background: var(--border); margin-bottom: 24px; }

/* â”€â”€ ACCORDION â”€â”€ */
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--swt-radius-1); overflow: hidden; }
.acc-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; user-select: none; transition: background 0.1s; }
.acc-head:hover { background: var(--bg-page); }
.acc-ver { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }

.tbadge { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 5px; letter-spacing: 0.02em; }
.tbadge-major       { background: var(--swt-purple-light); color: var(--swt-purple); }
.tbadge-minor       { background: var(--swt-button-5);     color: var(--swt-button); }
.tbadge-patch       { background: var(--swt-green-light);  color: var(--swt-green); }
.tbadge-security    { background: var(--swt-red-light);    color: var(--swt-red); }
.tbadge-in-progress    { background: var(--swt-orange-light); color: var(--swt-orange); }
.tbadge-preparing      { background: #f0edf3;                 color: var(--swt-purple); }
/* Durum badge'leri (import / manuel) */
.tbadge-status-soon     {background: var(--swt-green);color: #fff;}
.tbadge-status-progress { background: var(--swt-button-5);     color: var(--swt-button); }
.tbadge-status-planning { background: #f0edf3;                 color: var(--swt-purple); }

.acc-date { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.acc-date svg { width: 12px; height: 12px; }
.acc-chevron { margin-left: auto; color: var(--text-4); transition: transform 0.2s; display: flex; align-items: center; }
.acc-chevron svg { width: 15px; height: 15px; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }

.acc-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--border); }
.acc-item.open .acc-body { display: block; }
.acc-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 14px 0 18px;
}
.acc-summary-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--blue);
}
.acc-summary-icon svg { width: 16px; height: 16px; }
.acc-summary-text {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  font-style: italic;
}

.cgroup { margin-bottom: 14px; }
.cgroup:last-child { margin-bottom: 0; }
.cgroup-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }

.clabel { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; border: 1px solid transparent; }
.clabel svg { width: 11px; height: 11px; }
.clabel-new      { background: var(--swt-green-light);  color: var(--swt-green);  border-color: #0bc66a40; }
.clabel-fix      { background: var(--swt-button-5);     color: var(--swt-button); border-color: #0aa0de30; }
.clabel-update   { background: var(--swt-orange-light); color: var(--swt-orange); border-color: #b8871340; }
.clabel-remove   { background: var(--swt-red-light);    color: var(--swt-red);    border-color: #dc3c3c40; }
.clabel-security { background: var(--swt-red-light);    color: var(--swt-red);    border-color: #dc3c3c40; }

.ccount { font-size: 12.5px; color: var(--text-4); }

.clist { display: flex; flex-direction: column; gap: 6px; padding-left: 2px; }
.clist li { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.cicon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; display: flex; align-items: center; justify-content: center; }
.cicon svg { width: 13px; height: 13px; }
.cicon-new      { color: var(--swt-green); }
.cicon-fix      { color: var(--swt-button); }
.cicon-update   { color: var(--swt-orange); }
.cicon-remove   { color: var(--swt-red); }
.cicon-security { color: var(--swt-red); }

.empty-state { padding: 48px 0; text-align: center; color: var(--text-4); font-size: 13px; }

/* â”€â”€ SCROLL TO TOP â”€â”€ */
.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 999; border: none; background: none; padding: 0; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top svg.st-track { position: absolute; inset: 0; width: 46px; height: 46px; transform: rotate(-90deg); }
.scroll-top .st-bg { width: 46px; height: 46px; border-radius: 50%; background: var(--swt-bg-4); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: background 0.15s; }
.scroll-top:hover .st-bg { background: var(--swt-bg-5); }
.scroll-top .st-bg svg { width: 18px; height: 18px; color: #fff; }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 768px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 200; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sb-close { display: flex; }
  .mob-btn { display: flex; }
  .content { padding: 22px 16px 48px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .search-bar { display: none; }
  .tb-btn .btn-label { display: none; }
  .tb-btn { padding: 6px 9px; gap: 0; }
  .tb-btn svg { width: 15px; height: 15px; }
  .hero-title { font-size: 21px; }
  .bc-cur { max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
}
