:root {
    --bg: #eaf2ff;
    --surface: rgba(255,255,255,0.88);
    --surface-strong: rgba(255,255,255,0.98);
    --dark: #1f2a44;
    --blue: #5164ff;
    --blue-soft: #c7d7ff;
    --teal: #2ab7b7;
    --green: #2ecc71;
    --grey: #6f7e99;
    --shadow: 0 26px 55px rgba(30, 57, 110, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(81,100,255,0.16), transparent 28%),
                radial-gradient(circle at bottom right, rgba(42,183,183,0.12), transparent 24%),
                var(--bg);
    color: var(--dark);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(81,100,255,0.05), rgba(42,183,183,0.04));
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 34px;
    background: linear-gradient(135deg, rgba(81,100,255,0.95), rgba(42,183,183,0.95));
    color: #fff;
    border-radius: 0 0 36px 36px;
    box-shadow: 0 22px 66px rgba(5, 22, 80, 0.16);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.main-header::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 8px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    filter: blur(16px);
}

.main-header h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: 0.02em;
}

.subtitle {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

.cart-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    background: rgba(255,255,255,0.12);
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    position: relative;
}

.cart-icon span {
    font-weight: 700;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 60px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    margin-bottom: 24px;
    align-items: center;
}

.hero h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.hero p {
    margin: 0;
    color: var(--grey);
    max-width: 620px;
    font-size: 16px;
}

.stats-card {
    padding: 26px 24px;
    min-width: 160px;
    background: rgba(255,255,255,0.88);
    border-radius: 22px;
    color: var(--dark);
    text-align: right;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.65);
}

.stats-card span {
    display: block;
    opacity: 0.75;
    margin-bottom: 8px;
    font-size: 14px;
}

.stats-card strong {
    font-size: 30px;
}

.loader {
    padding: 36px;
    text-align: center;
    color: var(--grey);
    background: var(--surface-strong);
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    animation: floatPulse 3s ease-in-out infinite;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pet-card {
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    transform-style: preserve-3d;
    animation: fadeInUp 0.8s ease both;
}

.pet-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(81,100,255,0.12), transparent 28%);
    pointer-events: none;
}

.pet-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 32px 80px rgba(23, 61, 113, 0.16);
}

.pet-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.pet-card-body {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.pet-card-body h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.pet-card-body p {
    margin: 0 0 20px;
    color: var(--grey);
    line-height: 1.7;
}

.pet-card-body .btn-primary {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 26px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 18px 30px rgba(81,100,255,0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(81,100,255,0.30);
    opacity: 0.98;
}

.btn-secondary {
    background: rgba(81,100,255,0.08);
    color: var(--dark);
    border: 1px solid rgba(81,100,255,0.16);
    border-radius: 16px;
    padding: 14px 26px;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(81,100,255,0.12);
}

.btn-icon {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

.btn-edit {
    color: #2f80ed;
}

.btn-delete {
    color: #ff4d6d;
    margin-left: 10px;
}




.content {
    flex: 1;
    padding: 36px;
    background: transparent;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 26px;
}

.admin-header h2 {
    margin: 0;
    font-size: 36px;
}

.admin-header p {
    margin: 10px 0 0;
    color: var(--grey);
    max-width: 620px;
}

.table-card,
.form-card {
    background: rgba(255,255,255,0.92);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.72);
    backdrop-filter: blur(14px);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 18px 16px;
    text-align: left;
}

th {
    color: #6f7e99;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid rgba(111,126,153,0.12);
}

td {
    vertical-align: middle;
    border-bottom: 1px solid rgba(111,126,153,0.06);
    color: #2c3d55;
}

tbody tr:hover {
    background: rgba(81,100,255,0.05);
    transform: translateX(2px);
}

tr {
    transition: transform 0.2s ease, background 0.2s ease;
}

td img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--dark);
    font-weight: 600;
}

input,
select {
    border: 1px solid rgba(81,100,255,0.18);
    border-radius: 16px;
    padding: 16px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: rgba(255,255,255,0.9);
}

input:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(81,100,255,0.12);
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.hidden {
    display: none;
}

.empty-state {
    text-align: center;
    color: var(--grey);
    padding: 32px 0;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
    }

    .admin-layout {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .main-header,
    .content {
        padding: 22px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero,
    .stats-card {
        width: 100%;
    }
}

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

@keyframes floatPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
}

/* ===== TOPBAR ===== */

.topbar {
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
}

.navbar a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.navbar a.active {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: white;
}

/* ===== CONTENT ===== */

.content {
  padding: 30px 40px;
}

/* ===== HEADER ===== */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-header h2 {
  font-size: 38px;
  color: #1e293b;
}

.admin-header p {
  margin-top: 8px;
  color: #64748b;
}

/* ===== BUTTON ===== */

.btn-primary {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border: none;
  padding: 14px 22px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ===== TABLE ===== */

.table-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8fafc;
}

th, td {
  padding: 18px;
  text-align: left;
}

tbody tr {
  border-top: 1px solid #e2e8f0;
}

tbody tr:hover {
  background: #f8fafc;
}

td img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 14px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */

body {
  font-family: Arial, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
}

/* TOPBAR */

.topbar {
  width: 100%;
  height: 85px;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 45px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
  color: white;
  font-size: 42px;
  font-weight: bold;
}

/* NAVBAR */

.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 14px;
  transition: 0.3s;
  font-weight: 600;
}

.navbar a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.navbar a.active {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: white;
}

/* CONTENT */

.content {
  padding: 35px 45px;
}

/* HEADER */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-header h2 {
  font-size: 42px;
  margin-bottom: 8px;
}

.admin-header p {
  color: #64748b;
  font-size: 16px;
}

/* BUTTON */

.btn-primary {
  border: none;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: none;
  background: #e2e8f0;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
}

/* FORM */

.form-card {
  background: white;
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.hidden {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.form-grid input,
.form-grid select {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  outline: none;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

/* TABLE */

.table-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8fafc;
}

th {
  text-align: left;
  padding: 18px;
  font-size: 15px;
}

td {
  padding: 18px;
  border-top: 1px solid #e2e8f0;
}

tbody tr:hover {
  background: #f8fafc;
}

td img {
  width: 65px;
  height: 65px;
  border-radius: 14px;
  object-fit: cover;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: #64748b;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */

body {
  font-family: Arial, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
}

/* TOPBAR */

.topbar {
  width: 100%;
  height: 85px;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 45px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
  color: white;
  font-size: 42px;
  font-weight: bold;
}

/* NAVBAR */

.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 14px;
  transition: 0.3s;
  font-weight: 600;
}

.navbar a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.navbar a.active {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: white;
}

/* CONTENT */

.content {
  padding: 35px 45px;
}

/* HEADER */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-header h2 {
  font-size: 42px;
  margin-bottom: 8px;
}

.admin-header p {
  color: #64748b;
  font-size: 16px;
}

/* BUTTON */

.btn-primary {
  border: none;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: none;
  background: #e2e8f0;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
}

/* FORM */

.form-card {
  background: white;
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.hidden {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.form-grid input,
.form-grid select {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  outline: none;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

/* TABLE */

.table-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8fafc;
}

th {
  text-align: left;
  padding: 18px;
  font-size: 15px;
}

td {
  padding: 18px;
  border-top: 1px solid #e2e8f0;
}

tbody tr:hover {
  background: #f8fafc;
}

td img {
  width: 65px;
  height: 65px;
  border-radius: 14px;
  object-fit: cover;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: #64748b;
}