/* ══════════════════════════════════════
   DentalCare Clinic — Custom Styles
   ══════════════════════════════════════ */

/* ── Sidebar Link Styles ────────────── */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  border-radius: 0.5rem;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.sidebar-link:hover {
  color: #0d9488;
  background-color: #f0fdfa;
}

.sidebar-link.active {
  color: #0d9488;
  background-color: #ccfbf1;
}

/* ── Dashboard Layout ───────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard-main {
  flex: 1;
  min-width: 0; /* Prevents flex children from blowing out container width on mobile */
  display: flex;
  flex-direction: column;
  margin-left: 0;
  transition: margin-left 0.2s;
}

@media (min-width: 1024px) {
  .dashboard-main {
    margin-left: 16rem; /* sidebar width */
  }
}

/* ── Dashboard Top Bar ──────────────── */
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

/* ── Data Table ─────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.data-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

/* ── Status Badge ───────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-success {
  color: #059669;
  background-color: #d1fae5;
}

.badge-warning {
  color: #d97706;
  background-color: #fef3c7;
}

.badge-danger {
  color: #dc2626;
  background-color: #fee2e2;
}

.badge-info {
  color: #2563eb;
  background-color: #dbeafe;
}

.badge-neutral {
  color: #64748b;
  background-color: #f1f5f9;
}

/* ── Stat Card ──────────────────────── */
.stat-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* ── Form Styles ────────────────────── */
.form-input {
  width: 100%;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-size: 0.875rem;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.form-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.375rem;
}

/* ── Button Variants ────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition:
    background-color 0.15s,
    color 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  color: #ffffff;
  background-color: #0d9488;
}

.btn-primary:hover {
  background-color: #0f766e;
}

.btn-secondary {
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background-color: #f8fafc;
}

.btn-danger {
  color: #ffffff;
  background-color: #ef4444;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* ── Scrollbar ──────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ── Toast Animation ────────────────── */
.swal2-popup {
  font-family: "Inter", sans-serif !important;
  font-size: 0.875rem !important;
}

/* ── Pagination ────────────────────── */
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 0.5rem 0.5rem;
  font-size: 0.8125rem;
}
.pagination-bar .pagination-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
}
.pagination-bar .pagination-info select {
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
  color: #334155;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}
.pagination-bar .pagination-info select:focus { border-color: #0d9488; }
.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pagination-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pagination-btn:hover:not(:disabled):not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pagination-btn.active {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
  box-shadow: 0 1px 4px rgba(13,148,136,0.3);
}
.pagination-btn:disabled { opacity: 0.35; cursor: not-allowed; }

