/* ============================================================
   THEME VARIABLES
   ============================================================ */
:root {
  --clr-primary:        #045129;
  --clr-primary-hover:  #033d1f;
  --clr-primary-light:  #eef6f1;
  --clr-primary-mid:    #0a6b38;

  --clr-stone:          #E9E8E6;
  --clr-surface:        #F5F4F2;
  --clr-white:          #FFFFFF;

  --clr-text:           #1c1c1b;
  --clr-text-2:         #4b5563;
  --clr-text-3:         #9ca3af;

  --clr-border:         #e3e2e0;
  --clr-border-input:   #d1d0ce;

  --radius-sm:   5px;
  --radius:      8px;
  --radius-lg:   12px;

  --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow:      0 4px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);

  --sidebar-w:   240px;
  --topbar-h:    56px;
}

/* ============================================================
   BASE
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: var(--clr-text);
  background: var(--clr-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-body {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--clr-primary);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.95);
  flex-shrink: 0;
}

.sidebar-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Nav sections */
.sidebar-nav {
  flex: 1;
  padding: 10px 10px 0;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  padding: 14px 8px 5px;
  display: block;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 1px;
  transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-link i {
  font-size: 15px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 600;
}

.sidebar-link.active i {
  opacity: 1;
}

/* Footer */
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.btn-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: left;
  font-family: inherit;
}

.btn-sidebar-logout:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-h);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  border: 1.5px solid rgba(4,81,41,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.topbar-username {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--clr-text);
}

.role-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.role-pill.role-admin {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,0.15);
}

.role-pill.role-user {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  border: 1px solid rgba(4,81,41,0.15);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
  flex: 1;
  padding: 28px 32px;
}

/* Flash messages inside content */
.flash-wrap {
  margin-bottom: 20px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.015em;
  margin: 0;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card-body-pad {
  padding: 24px;
}

/* ============================================================
   TABLE
   ============================================================ */
.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.app-table thead th {
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-2);
  background: #fafaf8;
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

.app-table thead th:first-child { padding-left: 22px; }
.app-table thead th:last-child  { padding-right: 22px; }

.app-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.1s;
}

.app-table tbody tr:last-child { border-bottom: none; }

.app-table tbody tr:hover { background: #f8f8f7; }

.app-table tbody td {
  padding: 13px 18px;
  vertical-align: middle;
  color: var(--clr-text);
}

.app-table tbody td:first-child { padding-left: 22px; }
.app-table tbody td:last-child  { padding-right: 22px; }

.td-id {
  color: var(--clr-text-3);
  font-size: 12.5px;
  width: 48px;
}

.td-actions {
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   FILE LINK (dosyalar listesi)
   ============================================================ */
.file-row-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
  padding: 4px 0;
  transition: color 0.12s;
}

.file-row-link:hover {
  color: var(--clr-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-row-link .ext-icon {
  opacity: 0.55;
  font-size: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.13s, color 0.13s, border-color 0.13s, box-shadow 0.13s;
  white-space: nowrap;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-primary-hover);
  border-color: var(--clr-primary-hover);
  color: #fff;
}

/* Secondary / ghost */
.btn-secondary {
  background: var(--clr-white);
  border-color: var(--clr-border-input);
  color: var(--clr-text-2);
}
.btn-secondary:hover {
  background: var(--clr-stone);
  color: var(--clr-text);
  border-color: #c5c4c2;
}

/* Danger ghost */
.btn-danger-ghost {
  background: transparent;
  border-color: #fca5a5;
  color: #dc2626;
}
.btn-danger-ghost:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

/* Sizes */
.btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
}

/* Bootstrap overrides so Bootstrap classes map to our styles */
.btn-outline-secondary {
  background: var(--clr-white);
  border-color: var(--clr-border-input);
  color: var(--clr-text-2);
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--clr-stone);
  color: var(--clr-text);
  border-color: #c5c4c2;
}

.btn-outline-danger {
  background: transparent;
  border-color: #fca5a5;
  color: #dc2626;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

/* ============================================================
   FORM
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 5px;
}

.form-hint {
  font-size: 12px;
  color: var(--clr-text-3);
  margin-top: 4px;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--clr-text);
  background: var(--clr-white);
  border: 1px solid var(--clr-border-input);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(4,81,41,0.1);
}

.form-control::placeholder {
  color: var(--clr-text-3);
  font-size: 13px;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc2626;
}

.field-validation-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  display: block;
}

/* Validation summary */
.validation-summary-errors {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #991b1b;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 16px;
}

.validation-summary-valid { display: none; }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-admin {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,0.15);
}

.badge-user {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  border: 1px solid rgba(4,81,41,0.15);
}

/* Bootstrap badge overrides */
.bg-danger  { background: none !important; }
.bg-secondary { background: none !important; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid transparent;
  margin-bottom: 0;
}

.alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-info {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0c4a6e;
}

.alert .btn-close {
  margin-left: auto;
  opacity: 0.5;
}

/* ============================================================
   FORM CARD (for create/edit forms)
   ============================================================ */
.form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 28px;
  max-width: 500px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
}

/* ============================================================
   PAGE BACK HEADER (form pages)
   ============================================================ */
.page-back-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-back {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--clr-white);
  border: 1px solid var(--clr-border-input);
  color: var(--clr-text-2);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.btn-back:hover {
  background: var(--clr-stone);
  color: var(--clr-text);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--clr-text-3);
}

.empty-state i {
  font-size: 36px;
  opacity: 0.4;
  display: block;
  margin-bottom: 12px;
}

.empty-state p {
  margin: 0;
  font-size: 13.5px;
}

/* ============================================================
   TABLE FOOTER (count)
   ============================================================ */
.table-footer {
  padding: 9px 22px;
  font-size: 12px;
  color: var(--clr-text-3);
  border-top: 1px solid var(--clr-border);
  background: #fafaf8;
}

/* ============================================================
   PERMISSION MATRIX
   ============================================================ */
.matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.matrix-table thead th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-2);
  background: #fafaf8;
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
  text-align: center;
}

.matrix-table thead th.th-user {
  text-align: left;
  padding-left: 22px;
  min-width: 160px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fafaf8;
  border-right: 1px solid var(--clr-border);
}

.matrix-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.1s;
}

.matrix-table tbody tr:last-child { border-bottom: none; }
.matrix-table tbody tr:hover { background: #f8f8f7; }

.matrix-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  text-align: center;
}

.matrix-table tbody td.td-user {
  text-align: left;
  padding-left: 22px;
  font-weight: 600;
  color: var(--clr-text);
  background: #fafaf8;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid var(--clr-border);
  white-space: nowrap;
}

.matrix-table tbody tr:hover td.td-user {
  background: #f4f4f2;
}

.matrix-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--clr-primary);
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.th-file-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--clr-text);
  padding: 2px 0;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--clr-white);
}

.login-brand-panel {
  width: 42%;
  min-height: 100vh;
  background: var(--clr-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.login-brand-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.login-brand-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.login-brand-subtitle {
  font-size: 14.5px;
  color: rgba(255,255,255,0.62);
  margin: 0;
  line-height: 1.6;
  max-width: 300px;
  position: relative;
  z-index: 1;
}

.login-brand-dots {
  display: flex;
  gap: 6px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.login-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.login-brand-dot.active {
  background: rgba(255,255,255,0.85);
  width: 20px;
  border-radius: 3px;
}

.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-surface);
  padding: 48px 40px;
}

.login-form-box {
  width: 100%;
  max-width: 370px;
}

.login-form-header {
  margin-bottom: 28px;
}

.login-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.login-form-subtitle {
  font-size: 13.5px;
  color: var(--clr-text-3);
  margin: 0;
}

.login-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-card .form-group {
  margin-bottom: 16px;
}

.login-submit-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* ============================================================
   TABLE — CENTERED VARIANT
   ============================================================ */
.app-table.centered thead th,
.app-table.centered tbody td {
  text-align: center;
}

/* ============================================================
   HAMBURGER BUTTON (mobile only, rendered in topbar)
   ============================================================ */
.topbar-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--clr-border-input);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--clr-text-2);
  font-size: 18px;
  cursor: pointer;
  margin-right: auto;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.topbar-hamburger:hover {
  background: var(--clr-stone);
  color: var(--clr-text);
}

/* ============================================================
   SIDEBAR BACKDROP (mobile overlay)
   ============================================================ */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 150;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & mobile */
@media (max-width: 900px) {
  .content-area {
    padding: 20px 20px;
  }
}

@media (max-width: 768px) {

  /* --- Sidebar: fixed overlay --- */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: var(--sidebar-w);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none; /* shown via JS toggle */
  }

  .sidebar-backdrop.is-open {
    display: block;
  }

  /* --- Main: full width since sidebar is overlay --- */
  .main-wrapper {
    width: 100%;
  }

  /* --- Topbar --- */
  .topbar {
    justify-content: flex-start;
    padding: 0 16px;
    gap: 10px;
  }

  .topbar-hamburger {
    display: flex;
  }

  .topbar-user {
    margin-left: auto;
  }

  /* --- Content --- */
  .content-area {
    padding: 16px;
  }

  /* --- Page header stacks on very small screens --- */
  .page-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* --- Tables: horizontal scroll --- */
  .card {
    overflow-x: auto;
  }

  .app-table {
    min-width: 480px;
  }

  /* --- Form cards: full width --- */
  .form-card {
    max-width: 100%;
  }

  /* --- Permission matrix --- */
  .matrix-wrap {
    overflow-x: auto;
  }

  /* --- Login page --- */
  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    padding: 32px 20px;
    background: var(--clr-white);
  }

  .login-form-box {
    max-width: 100%;
  }
}

/* ============================================================
   FILE GROUPS (dosyalar sayfası gruplu görünüm)
   ============================================================ */
.file-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file-group-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.file-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: #f7faf8;
  border-bottom: 1px solid var(--clr-border);
}

.file-group-icon {
  font-size: 15px;
  color: var(--clr-primary);
  opacity: 0.75;
  flex-shrink: 0;
}

.file-group-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -0.01em;
  flex: 1;
}

.file-group-count {
  font-size: 11px;
  color: var(--clr-text-3);
  font-weight: 500;
}

.file-group-body {
  padding: 4px 0;
}

.file-group-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid #f2f1ef;
  transition: background 0.1s;
}

.file-group-row:last-child {
  border-bottom: none;
}

.file-group-row:hover {
  background: #f8f8f7;
}

.file-group-desc {
  font-size: 12.5px;
  color: var(--clr-text-3);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* GROUP PILL (dosya yönetimi listesinde grup etiketi) */
.group-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  border: 1px solid rgba(4,81,41,0.12);
  white-space: nowrap;
}

/* ============================================================
   MISC / BOOTSTRAP CLEANUP
   ============================================================ */
.table { margin-bottom: 0; }

/* Remove Bootstrap's default card styles */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
