/* ==== secmusteri.css (compact + wider sidebar) ==== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f4f7;
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  box-sizing: border-box;
  flex: 0 0 300px;   /* fixed, wider sidebar */
  width: 300px;      /* fallback for some browsers */
  background: linear-gradient(to bottom right, #89d8d3, #03c8a8);
  color: white;
  padding: 20px;
}

.sidebar .logo {
  width: 100%;
  margin-bottom: 20px;
}

.sidebar ul { list-style: none; padding-left: 0; }
.sidebar li { margin: 15px 0; }
.sidebar a { color: white; text-decoration: none; font-weight: bold; }
.sidebar a:hover { text-decoration: underline; }

.main-content { flex-grow: 1; padding: 30px; }
h1 { margin-bottom: 20px; }

/* Search input compact */
#searchInput {
  width: 90%;         /* 10% smaller */
  padding: 8px;
  margin-bottom: 20px;
  font-size: 14px;    /* reduced font */
}

/* Table compact */
table {
  width: 90%;         /* 10% smaller table */
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  table-layout: fixed; /* respect column widths */
  font-size: 14px;     /* reduced base font */
}

th, td {
  padding: 10px;       /* slightly reduced cell padding */
  text-align: left;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* truncate long text with ... */
  font-size: 14px;     /* 2pt smaller vs default */
}

th { background-color: #03c8a8; color: white; cursor: pointer; }
tr:hover { background-color: #f1f1f1; }

/* Smaller action buttons */
button {
  padding: 4px 8px;
  background-color: #03c8a8;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

/* Column widths */
#musteriTable th:nth-child(1), #musteriTable td:nth-child(1) { width: 18%; } /* Ad Soyad */
#musteriTable th:nth-child(2), #musteriTable td:nth-child(2) { width: 12%;  } /* Telefon */
#musteriTable th:nth-child(3), #musteriTable td:nth-child(3) { width: 11%; } /* Kayıt Tarihi */
#musteriTable th:nth-child(4), #musteriTable td:nth-child(4) { width: 20%; } /* Seans detayı */
#musteriTable th:nth-child(5), #musteriTable td:nth-child(5) { width: 10%; } /* Durum */
#musteriTable th:nth-child(6), #musteriTable td:nth-child(6) { width: 10%; } /* İşlem */

/* Session pill row */
.seans-grid {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;  /* single line */
  align-items: center;
  min-width: 0;
}

/* Session pills compact */
.tag {
  display: inline-block;
  min-width: 22px;
  padding: 2px 4px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
}

.tag.purple { background: #6f42c1; }   /* ShapeSpace */
.tag.green  { background: #22a06b; }   /* Bike */
.tag.red    { background: #dc3545; }   /* iShape */
.tag.yellow { background: #e0a800; color: #222; } /* Roll */
.tag.zero   { opacity: 0.6; filter: grayscale(30%); }

/* Optional: make layout adapt a bit on small screens */
@media (max-width: 1024px) {
  .sidebar { flex-basis: 260px; width: 260px; }
  table, #searchInput { width: 100%; }
}


/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0 0;
  width: 90%;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* --- Pagination (üstte) + A-Z filtre --- */
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 0;
  width: 90%;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.alpha-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px 0;
  width: 90%;
}
.alpha-filter button {
  background: transparent;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  font: inherit; /* aynı punto */
  color: black;
}
.alpha-filter button.active {
  text-decoration: underline;
  font-weight: 600;
}
