.pcc-admin-body {

  background: #0f1115;

  color: #e8e6e3;

  min-height: 100vh;

}



.pcc-admin-sidebar {

  background: #141820;

}



.pcc-admin-sidebar .nav-link {

  color: #b8c0cc;

  border-radius: 6px;

  padding: 0.45rem 0.75rem;

}



.pcc-admin-sidebar .nav-link:hover {

  color: #fcf6ba;

  background: rgba(191, 149, 63, 0.1);

}



.card.pcc-admin-card {

  background: #1a1f28;

  border: 1px solid rgba(212, 175, 95, 0.2);

  color: #e8e6e3;

}



.form-control,

.form-select,

.form-control-sm,

.form-select-sm {

  background: #252b36 !important;

  border-color: #4a5568 !important;

  color: #f3f4f6 !important;

}



.form-control::placeholder {

  color: #8b95a5 !important;

  opacity: 1;

}



.form-control:focus,

.form-select:focus {

  background: #2a3140 !important;

  border-color: #bf953f !important;

  color: #ffffff !important;

  box-shadow: 0 0 0 0.2rem rgba(191, 149, 63, 0.25);

}



.form-label,

.form-check-label {

  color: #d1d5db;

}



.text-secondary {

  color: #a8b0bd !important;

}



.table {

  color: #e8e6e3;

  --bs-table-bg: #1a1f28;

  --bs-table-striped-bg: #141820;

  --bs-table-striped-color: #e8e6e3;

  --bs-table-hover-bg: rgba(191, 149, 63, 0.08);

  --bs-table-hover-color: #fcf6ba;

}



.table thead th {

  border-color: #3d4654;

  color: #c5cad3;

}



.table td {

  border-color: #3d4654;

  color: #e8e6e3;

}



.table .form-control,

.table .form-control-sm,

.table .form-select,

.table .form-select-sm {

  background: #2d3544 !important;

  border-color: #5a6578 !important;

  color: #ffffff !important;

}



.table code {

  color: #fcf6ba;

  background: rgba(0, 0, 0, 0.25);

  padding: 0.1em 0.35em;

  border-radius: 4px;

}



.modal-content.bg-dark .form-control,

.modal-content.bg-dark .form-select {

  background: #2d3544 !important;

  border-color: #5a6578 !important;

  color: #ffffff !important;

}



.modal-content.bg-dark .form-label {

  color: #e5e7eb;

}



.alert {

  border: 1px solid rgba(212, 175, 95, 0.18);

}



.alert-success {

  background: rgba(40, 167, 69, 0.12);

  color: #dff7e6;

}



.alert-info {

  background: rgba(13, 110, 253, 0.12);

  color: #e0ecff;

}



.alert-warning {

  background: rgba(255, 193, 7, 0.12);

  color: #fff3cd;

}



.alert-danger {

  background: rgba(220, 53, 69, 0.12);

  color: #ffe0e6;

}



.badge.bg-warning {

  color: #111 !important;

}



.pcc-log-viewer {

  background: #0d1014;

  border: 1px solid #3d4654;

  color: #e5e7eb;

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  font-size: 0.82rem;

  line-height: 1.45;

  max-height: 520px;

  overflow: auto;

  padding: 1rem;

  white-space: pre-wrap;

  word-break: break-word;

  user-select: all;

}



.pcc-log-line--error { color: #fca5a5; }

.pcc-log-line--success { color: #86efac; }

.pcc-log-line--warning { color: #fde68a; }

/* TinyMCE — koyu admin panel */
.tox-tinymce {
  border-color: #3d4654 !important;
  border-radius: 6px;
}

.tox .tox-edit-area__iframe {
  background: #1e2430 !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
  background: #141820 !important;
}

.tox .tox-tbtn {
  color: #e8e6e3 !important;
}

.btn-toggle-active {
  border: none;
  cursor: pointer;
}

.pcc-bio-editor-wrap {
  min-height: 420px;
}

.pcc-bio-editor-wrap .tox-tinymce {
  min-height: 420px !important;
}

/* TinyMCE aktifken gizli textarea tıklamaları engellemesin */
.pcc-bio-editor-wrap:has(.tox-tinymce) textarea.pcc-bio-editor {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

textarea.pcc-bio-editor {
  min-height: 400px;
  resize: vertical;
}

.tox .tox-edit-area__iframe {
  background: #1e2430 !important;
}

.tox-tinymce-aux {
  z-index: 1300 !important;
}

/* Admin navigasyon grupları */
.pcc-admin-nav__group {
  margin-bottom: 0.35rem;
  border-radius: 6px;
}

.pcc-admin-nav__group--super {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 95, 0.25);
}

.pcc-admin-nav__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3b2;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.pcc-admin-nav__group--super .pcc-admin-nav__label {
  color: #d4af5f;
}

.pcc-admin-nav__group > summary.pcc-admin-nav__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pcc-admin-nav__group > summary.pcc-admin-nav__label::-webkit-details-marker {
  display: none;
}

.pcc-admin-nav__group > summary.pcc-admin-nav__label::after {
  content: '\F282';
  font-family: bootstrap-icons !important;
  font-size: 0.75rem;
  opacity: 0.55;
  transition: transform 0.2s;
}

.pcc-admin-nav__group[open] > summary.pcc-admin-nav__label::after {
  transform: rotate(180deg);
}

.pcc-admin-nav__group[open] > summary.pcc-admin-nav__label {
  color: #d4af5f;
}

.pcc-admin-nav__group > ul {
  padding: 0.15rem 0 0.5rem 0.25rem;
}

.pcc-admin-sidebar .nav-link {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

.pcc-admin-sidebar .nav-link.active {
  background: rgba(212, 175, 95, 0.12);
  color: #fcf6ba;
}

.pcc-admin-offcanvas {
  background: #141820;
  color: #e8e6e3;
  width: min(320px, 88vw);
}

.pcc-admin-offcanvas .offcanvas-title {
  color: #fcf6ba;
}

/* Biçimlendirilebilir metin satırı */
.pcc-rich-field__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pcc-rich-field__text {
  flex: 1 1 220px;
  min-width: 180px;
}

.pcc-rich-field__tools {
  display: inline-flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.pcc-rich-field__tools .btn {
  min-width: 2rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.pcc-rich-field__colors {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.pcc-rich-field__color-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.75rem;
  color: #8b95a5;
}

.pcc-rich-field__color-label span {
  white-space: nowrap;
}

.pcc-rich-field__color-pick,
.pcc-rich-field__bg-pick {
  width: 2rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid #4a5568;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.pcc-rich-field__color-reset {
  color: #8b95a5 !important;
  text-decoration: none !important;
  padding: 0 0.15rem !important;
  line-height: 1;
  font-size: 1.1rem;
}

.pcc-rich-field__color-reset:hover {
  color: #fcf6ba !important;
}

@media (max-width: 768px) {
  .pcc-rich-field__row {
    flex-direction: column;
    align-items: stretch;
  }

  .pcc-rich-field__colors {
    justify-content: flex-start;
  }
}

.pcc-drag-handle {
  cursor: grab;
  user-select: none;
}

.pcc-theme-card.border-warning {
  box-shadow: 0 0 0 1px rgba(212, 175, 95, 0.45);
}

/* ——— Dashboard ——— */
.pcc-dashboard {
  max-width: 1400px;
}

.pcc-dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pcc-dash-header__title {
  color: #fcf6ba;
  font-weight: 600;
}

.pcc-dash-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pcc-dash-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a1f28 0%, #151922 100%);
  border: 1px solid rgba(212, 175, 95, 0.18);
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}

.pcc-dash-stat:hover {
  border-color: rgba(212, 175, 95, 0.4);
  transform: translateY(-1px);
}

.pcc-dash-stat__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pcc-dash-stat__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pcc-dash-stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b95a5;
}

.pcc-dash-stat__value {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  color: #f3f4f6;
}

.pcc-dash-stat__hint {
  font-size: 0.75rem;
  color: #8b95a5;
  margin-top: 0.15rem;
}

.pcc-dash-stat--gold .pcc-dash-stat__icon { background: rgba(212, 175, 95, 0.15); color: #d4af5f; }
.pcc-dash-stat--blue .pcc-dash-stat__icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.pcc-dash-stat--purple .pcc-dash-stat__icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.pcc-dash-stat--teal .pcc-dash-stat__icon { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.pcc-dash-stat--amber .pcc-dash-stat__icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.pcc-dash-stat--rose .pcc-dash-stat__icon { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.pcc-dash-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pcc-dash-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.pcc-dash-alert a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pcc-dash-alert--warn {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #fcd34d;
}

.pcc-dash-alert--info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.pcc-dash-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.pcc-dash-panel__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fcf6ba;
  margin-bottom: 0.15rem;
}

.pcc-dash-panel__sub {
  font-size: 0.8rem;
}

.pcc-dash-panel__badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(212, 175, 95, 0.12);
  color: #d4af5f;
  border: 1px solid rgba(212, 175, 95, 0.25);
  white-space: nowrap;
}

.pcc-dash-panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 95, 0.12);
}

.pcc-dash-roles {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pcc-dash-role__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.pcc-dash-role__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e8e6e3;
}

.pcc-dash-role__label i {
  color: #d4af5f;
  opacity: 0.85;
}

.pcc-dash-role__count {
  color: #a8b0bd;
  font-variant-numeric: tabular-nums;
}

.pcc-dash-role__count small {
  opacity: 0.75;
}

.pcc-dash-role__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pcc-dash-role__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191, 149, 63, 0.85), rgba(212, 175, 95, 0.95));
  transition: width 0.5s ease;
}

.pcc-dash-role[data-role="stajyer"] .pcc-dash-role__bar {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.75), rgba(96, 165, 250, 0.9));
}

.pcc-dash-role[data-role="ortak_avukat"] .pcc-dash-role__bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.8), rgba(251, 191, 36, 0.95));
}

.pcc-dash-authors {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pcc-dash-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pcc-dash-author__rank {
  width: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #8b95a5;
  flex-shrink: 0;
}

.pcc-dash-author--top1 .pcc-dash-author__rank { color: #fcd34d; }
.pcc-dash-author--top2 .pcc-dash-author__rank { color: #d1d5db; }
.pcc-dash-author--top3 .pcc-dash-author__rank { color: #d97706; }

.pcc-dash-author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(212, 175, 95, 0.12);
  border: 2px solid rgba(212, 175, 95, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcc-dash-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcc-dash-author__initials {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d4af5f;
}

.pcc-dash-author__info {
  flex: 1;
  min-width: 0;
}

.pcc-dash-author__name {
  display: block;
  font-weight: 600;
  color: #f3f4f6;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcc-dash-author__name:hover {
  color: #fcf6ba;
}

.pcc-dash-author__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #8b95a5;
  margin-bottom: 0.3rem;
}

.pcc-dash-author__posts {
  color: #d4af5f;
  font-weight: 600;
}

.pcc-dash-author__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pcc-dash-author__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191, 149, 63, 0.7), rgba(212, 175, 95, 0.95));
}

.pcc-dash-author--top1 .pcc-dash-author__bar {
  background: linear-gradient(90deg, #b8860b, #fcd34d);
}

.pcc-dash-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pcc-dash-feed__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(212, 175, 95, 0.08);
}

.pcc-dash-feed__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pcc-dash-feed__main {
  min-width: 0;
  flex: 1;
}

.pcc-dash-feed__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f3f4f6;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.pcc-dash-feed__title:hover {
  color: #fcf6ba;
}

.pcc-dash-feed__meta {
  display: block;
  font-size: 0.75rem;
  color: #8b95a5;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcc-dash-feed__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.pcc-dash-feed__time {
  font-size: 0.7rem;
  color: #6b7280;
}

.pcc-dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.pcc-dash-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 95, 0.12);
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.8rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pcc-dash-quick__item i {
  font-size: 1.35rem;
  color: #d4af5f;
}

.pcc-dash-quick__item:hover {
  background: rgba(212, 175, 95, 0.08);
  border-color: rgba(212, 175, 95, 0.35);
  color: #fcf6ba;
}

@media (max-width: 576px) {
  .pcc-dash-stat__value {
    font-size: 1.35rem;
  }

  .pcc-dash-feed__item {
    flex-direction: column;
  }

  .pcc-dash-feed__side {
    flex-direction: row;
    align-items: center;
  }
}

