@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap");

:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --sidebar: #ffffff;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #06b6d4;
  --danger: #ef4444;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.dark-mode {
  --bg: #07131f;
  --bg-soft: #0d1b2a;
  --sidebar: #08111c;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #aebccc;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 25%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

.dashboard-layout,
.wallet-layout,
.orders-layout,
.transactions-layout,
.api-layout,
.rent-layout,
.settings-layout,
.contact-layout,
.admin-layout,
.tickets-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.3s ease, border-color 0.3s ease, left 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  padding: 8px 10px;
  letter-spacing: -0.03em;
}

.sidebar-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  background: transparent;
}

.sidebar-nav a i {
  width: 18px;
  text-align: center;
  font-size: 16px;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.12);
  transform: translateX(2px);
}

.sidebar-nav a.active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.sidebar-nav a.active i {
  color: var(--primary);
}

.sidebar-nav .logout-link {
  margin-top: 10px;
  color: #ff6b81;
}

.sidebar-nav .logout-link:hover {
  background: rgba(255, 107, 129, 0.08);
  border-color: rgba(255, 107, 129, 0.14);
  color: #ff8ea0;
}

/* Main */
.main-content {
  min-width: 0;
  width: 100%;
  padding: 28px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.topbar-copy {
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  line-height: 1.1;
  font-size: 2rem;
  font-weight: 800;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* Controls */
.top-btn,
.primary-btn,
.icon-btn {
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  max-width: 100%;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 10px 15px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 12px 18px;
  border-radius: 14px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

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

.profile-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 7px 11px;
  min-height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.profile-box span {
  min-width: 0;
  word-break: break-word;
  font-size: 14px;
  font-weight: 600;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.section-title p {
  color: var(--muted);
  font-size: 14px;
}

.status {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.completed {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.processing {
  background: rgba(6, 182, 212, 0.14);
  color: #0f766e;
}

.cancelled,
.failed {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
}

textarea {
  resize: vertical;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.mobile-menu-btn {
  display: none;
}

.sidebar-overlay {
  display: none;
}

/* Shared tablet */
@media (max-width: 1200px) {
  .main-content {
    padding: 24px;
  }
}

/* Mobile / tablet navigation */
@media (max-width: 800px) {
  .dashboard-layout,
  .wallet-layout,
  .orders-layout,
  .transactions-layout,
  .api-layout,
  .rent-layout,
  .settings-layout,
  .contact-layout,
  .admin-layout,
  .tickets-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 1200;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1100;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .topbar {
    align-items: center;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 1.7rem;
  }

  .topbar p {
    font-size: 0.95rem;
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .main-content {
    padding: 20px 16px 24px;
  }
}

@media (max-width: 560px) {
  .topbar h1 {
    font-size: 1.55rem;
  }

  .topbar p {
    font-size: 0.9rem;
  }

  .top-btn {
    display: none;
  }

  .profile-box {
    padding: 7px 9px;
  }

  .profile-box span {
    display: none;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  font-family: "Sora", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-main {
  color: var(--text);
}

.brand-accent {
  margin-left: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-logo:hover .brand-accent {
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
}
.names {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-left: 10px;
}