/* Admin dashboard - modern şık panel */

.admin-wrap {
  min-height: 100vh;
  background: linear-gradient(160deg, #f0fdfa 0%, #e0f2fe 50%, #f8fafc 100%);
}

.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-login-form {
  max-width: 400px;
  width: 100%;
}

.admin-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.admin-login-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
}

.admin-recaptcha {
  margin: 1rem 0;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Dashboard layout */
.admin-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.admin-brand-wrap {
  justify-self: start;
  text-align: left;
}

.admin-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem 0;
  letter-spacing: -0.02em;
  text-align: left;
}

.admin-brand-sub {
  font-size: 0.85rem;
  color: #fff;
  margin: 0;
  font-weight: 500;
  text-align: left;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-self: end;
  text-align: right;
}

.admin-actions .admin-user {
  color: #fff;
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

.admin-actions .btn-secondary {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.admin-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.admin-actions .btn-outline-danger {
  background: transparent;
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.admin-actions .btn-outline-danger:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.admin-user {
  font-size: 0.9rem;
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

/* Footer */
.admin-footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.admin-footer-copy {
  margin: 0 0 0.35rem 0;
}

.admin-footer-dev {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
}

.admin-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
  width: 100%;
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-nav-item {
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.admin-nav-item:hover {
  background: var(--bg);
  border-color: var(--border-focus);
}

.admin-nav-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-main {
  position: relative;
}

.admin-panel {
  display: none;
  animation: panelIn 0.25s ease;
}

.admin-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  margin-bottom: 1.25rem;
}

.panel-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--text);
}

.panel-desc {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.panel-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.dashboard-card {
  margin-bottom: 1.5rem;
}

/* Toggle rows */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.toggle-row:last-of-type {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
  min-width: 0;
}

.toggle-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.toggle-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 28px;
  transition: background .25s;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform .25s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.panel-msg {
  margin-top: 1rem;
  min-height: 1.5rem;
}

/* Admin table */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}

.admin-table .th-center {
  text-align: center;
  width: 90px;
}

.admin-table .th-actions {
  width: 100px;
  text-align: center;
}

.gunler-toolbar {
  margin-bottom: 1rem;
}

.btn-save-all .icon-pencil {
  margin-right: 0.4rem;
  font-size: 1rem;
}

.icon-add {
  margin-right: 0.35rem;
  font-weight: 700;
}

.btn-row-action {
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color .2s, background .2s;
}

.btn-row-action:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.btn-row-action.btn-delete:hover {
  color: #dc2626;
  background: #fee2e2;
}

.admin-table td input[type="text"],
.admin-table td input[type="date"] {
  width: 100%;
  max-width: 180px;
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.admin-table td input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-table td input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.admin-table td textarea {
  width: 100%;
  min-width: 200px;
  min-height: 60px;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
}

.admin-table td textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Report filters */
.report-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.filter-group .form-control {
  min-width: 160px;
}

.report-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.report-summary .box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  min-width: 140px;
}

.report-summary .box .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.report-summary .box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.report-table th,
.report-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.report-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}

.report-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-table tbody tr:hover {
  background: #fafafa;
}

/* Gün yönetimi: iki alan */
.gunler-card {
  margin-bottom: 1.5rem;
}
.gunler-section-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.gunler-save-wrap {
  margin-top: 0.5rem;
}

/* Modal: Yeni gün ekle */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal[aria-hidden="false"] {
  display: flex;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
}
.admin-modal-box {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}
.admin-modal-title {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.admin-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 768px) {
  .admin-table .th-center { width: 90px; }
  .admin-table td textarea { min-width: 120px; }
}
