/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
  font-family: Arial, sans-serif;
  background: #f5f7fb;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #111827;
  color: #fff;
  padding: 20px;
  z-index: 1000;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.sidebar a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  color: #ddd;
  text-decoration: none;
  margin-bottom: 6px;
  transition: 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
  background: #6366f1;
  color: #fff;
}

/* =========================
   CONTENT (EN KRİTİK)
========================= */
.content {
  margin-left: 240px;      /* sidebar boşluğu */
  padding: 30px;
  min-height: 100vh;
}

/* =========================
   PAGE
========================= */
.packages-page {
  max-width: 1200px;
}

/* =========================
   TITLE
========================= */
.packages-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
}

/* =========================
   ADD BOX
========================= */
.package-add-box {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.package-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.package-form input {
  flex: 1;
  min-width: 160px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.package-form input:focus {
  border-color: #6366f1;
  outline: none;
}

/* BUTTON */
.btn-add {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-add:hover {
  opacity: 0.9;
}

/* =========================
   LIST BOX
========================= */
.package-list-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* =========================
   TABLE
========================= */
.package-table {
  width: 100%;
  border-collapse: collapse;
}

.package-table thead {
  background: #111827;
}

.package-table th {
  padding: 14px;
  color: #fff;
  text-align: left;
}

.package-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.package-table tr:hover {
  background: #f5f7ff;
}

/* COLORS */
.price {
  color: #6366f1;
  font-weight: 600;
}

.total {
  color: #16a34a;
  font-weight: 700;
}

/* DELETE */
.btn-delete {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-delete:hover {
  background: #dc2626;
}

/* =========================
   EMPTY
========================= */
.empty {
  text-align: center;
  padding: 20px;
  color: #999;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .content {
    margin-left: 0;
    padding: 15px;
  }

  .package-form {
    flex-direction: column;
  }

}

/* =========================
   FORCE FIX (ÇAKIŞMA ÇÖZÜM)
========================= */

body {
  display: block !important;
}

.content {
  margin-left: 240px !important;
  width: calc(100% - 240px) !important;
  padding: 30px !important;
}

/* sidebar sabit */
.sidebar {
  position: fixed !important;
  width: 240px !important;
  height: 100vh !important;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {

  .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  .content {
    margin-left: 0 !important;
    width: 100% !important;
  }

}

/* =========================
   ORDER TABLE (KART SİPARİŞLERİ)
========================= */

.package-list-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* başlık */
.package-list-box h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

/* TABLE */
.package-table {
  width: 100%;
  border-collapse: collapse;
}

.package-table thead {
  background: #111827;
}

.package-table th {
  padding: 14px;
  color: #fff;
  font-size: 13px;
  text-align: left;
}

.package-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* hover */
.package-table tbody tr:hover {
  background: #f5f7ff;
}

/* =========================
   STATUS RENKLERİ
========================= */

.status-pending {
  color: #f59e0b;
  font-weight: 600;
}

.status-approved {
  color: #16a34a;
  font-weight: 600;
}

.status-rejected {
  color: #ef4444;
  font-weight: 600;
}

/* =========================
   BUTONLAR
========================= */

.btn-approve {
  background: #22c55e;
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 5px;
  transition: 0.2s;
}

.btn-approve:hover {
  background: #16a34a;
}

.btn-reject {
  background: #ef4444;
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-reject:hover {
  background: #dc2626;
}

/* =========================
   DEKONT LINK
========================= */

.package-table a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.package-table a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {

  .package-table th,
  .package-table td {
    padding: 10px;
    font-size: 12px;
  }

}

.btn-view{
  background:#6366f1;
  color:#fff;
  padding:6px 10px;
  border-radius:6px;
  text-decoration:none;
  font-size:13px;
}

.btn-view:hover{
  background:#4f46e5;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: #fff;
  padding: 16px 22px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 9999;
  max-width: 320px;
  white-space: pre-line;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #22c55e;
}

.toast.error {
  background: #ef4444;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-view:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.health-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:15px;
    margin-top:20px;
}

.health-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    border-radius:12px;
    padding:14px 16px;
    border-left:6px solid #4caf50;
}

.health-card.warning{
    border-left-color:#ff9800;
}

.health-card.error{
    border-left-color:#f44336;
}

.health-dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#4caf50;
    margin-right:10px;
}

.health-card.warning .health-dot{
    background:#ff9800;
}

.health-card.error .health-dot{
    background:#f44336;
}

.health-card strong{
    margin-left:auto;
}