:root {
  --pb-blue: #617cb5;
  --pb-blue-dark: #5e71b1;
  --pb-green: #16a34a;
  --pb-green-dark: #15803d;
  --pb-yellow: #15c547;
  --pb-yellow-dark: #14a727;
  --pb-red: #dc2626;
  --pb-red-dark: #b91c1c;
  --pb-gray: #6b7280;
  --pb-gray-dark: #4b5563;
  --pb-bg: #f9fafb;
}

/* === GENEL === */
.pb5-wrap {
  max-width: 900px;
  margin: 40px auto;
  font-family: "Inter", system-ui, sans-serif;
  color: #111827;
}

h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.pb5-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  padding: 16px;
  margin-bottom: 16px;
}

/* === SEKME BUTONLARI === */
.pb5-tab-button {
  background: var(--pb-blue);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  margin-right: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}
.pb5-tab-button:hover {
  background: var(--pb-blue-dark);
}
.pb5-tab-button.active {
  background: #1e3a8a;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

/* === BUTONLAR === */
.pb5-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  color: white;
  margin: 5px; /* 🔹 butonlar arasında boşluk */
}

.pb5-btn-blue {
  background: var(--pb-blue);
  color: #fff;
}
.pb5-btn-blue:hover {
  background: var(--pb-blue-dark);
}

.pb5-btn-yellow {
  background: var(--pb-yellow);
  color: #111;
}
.pb5-btn-yellow:hover {
  background: var(--pb-yellow-dark);
  color: #fff;
}

.pb5-btn-green {
  background: var(--pb-green);
  color: #fff;
}
.pb5-btn-green:hover {
  background: var(--pb-green-dark);
}

.pb5-btn-red {
  background: var(--pb-red);
  color: #fff;
}
.pb5-btn-red:hover {
  background: var(--pb-red-dark);
}

.pb5-btn-gray {
  background: var(--pb-gray);
  color: #fff;
}
.pb5-btn-gray:hover {
  background: var(--pb-gray-dark);
}

.pb5-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* === BUTON GRUP === */
.pb5-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* 🔹 Tüm butonlar arası eşit boşluk */
  justify-content: flex-start;
  margin-top: 10px;
}

/* === TABLO === */
table.pb5-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  font-size: 15px;
}

table.pb5-table th {
  background: #e5e7eb;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  color: #1f2937;
}

table.pb5-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 6px;
  text-align: center;
}

table.pb5-table input {
  width: 100%;
  border: none;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  transition: background 0.2s;
  font-size: 15px;
}
table.pb5-table input:focus {
  background: #e0e7ff;
  outline: none;
}

.pb5-del {
  background: none;
  border: none;
  color: var(--pb-red);
  font-size: 18px;
  cursor: pointer;
}
.pb5-del:hover {
  color: var(--pb-red-dark);
}

/* === BİLGİ / UYARI KUTULARI === */
.pb5-info {
  background: #e7f9ed;
  border: 1px solid #16a34a;
  color: #065f46;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  line-height: 1.5;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pb5-warning {
  background: #fff8e5;
  border: 1px solid #e0b400;
  color: #92400e;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* === KAYDET MESAJI === */
.pb5-saved-message {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.3s ease;
}

/* === FOOTER === */
.pb5-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--pb-gray);
}

/* === ANİMASYON === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === MOBİL === */
@media (max-width: 640px) {
  .pb5-tab-controls {
    flex-wrap: wrap;
  }

.pb5-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;            /* 🔹 yatay/dikey 12px boşluk */
 justify-content: center;
  align-items: center;
  margin-top: 16px;     /* 🔹 tablo altına 16px mesafe */
}

  table.pb5-table th,
  table.pb5-table td {
    font-size: 14px;
    padding: 5px;
  }

/* === BUTONLAR === */
.pb5-btn {
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  padding: 14px 18px;   /* 🔹 daha rahat dokunmatik alan */
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* hover gölgesi ve koyulaşma */
.pb5-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
}
