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

body {
  font-family: 'Geist', 'Inter', sans-serif;
  background: #fff;
  min-height: 100vh;
}

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

/* ── Sidebar ── */
.sidebar {
  width: 64px;
  min-width: 64px;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e8eaf0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 150;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open {
  width: 260px;
  min-width: 260px;
  overflow-y: auto;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f5;
  min-height: 64px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.logo-img-full {
  height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: none;
  flex-shrink: 0;
}

.logo-img-small {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

/* Drawer icon shown on hover when sidebar is closed */
.drawer-hover-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #555;
}

.drawer-hover-icon svg {
  width: 20px;
  height: 20px;
}

/* Drawer button shown when sidebar is open */
.drawer-btn-open {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #888;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.drawer-btn-open:hover {
  background: #f0f2f7;
  color: #333;
}

.drawer-btn-open svg {
  width: 20px;
  height: 20px;
}

/* ── Open state ── */
.sidebar.open .sidebar-logo {
  justify-content: space-between;
  padding: 14px 12px 14px 16px;
}

.sidebar.open .logo-img-full { display: block; }
.sidebar.open .logo-img-small { display: none; }
.sidebar.open .drawer-hover-icon { display: none; }
.sidebar.open .drawer-btn-open { display: flex; }

/* ── Closed state: hover swaps small logo → drawer icon ── */
.sidebar:not(.open) .sidebar-logo:hover .logo-img-small { display: none; }
.sidebar:not(.open) .sidebar-logo:hover .drawer-hover-icon { display: flex; }

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #4a5568;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s ease;
  position: relative;
  font-family: 'Geist', sans-serif;
  white-space: nowrap;
}

.nav-item:hover {
  background: #f5f6ff;
  color: #2d3a8c;
}

.nav-item.active {
  background: #fff5e6;
  color: #e67e00;
  font-weight: 600;
}

/* Mini mode: icon only */
.sidebar:not(.open) .nav-item {
  justify-content: center;
  padding: 10px;
}

.sidebar:not(.open) .nav-label {
  display: none;
}

.sidebar:not(.open) .badge {
  display: none;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  margin-left: auto;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* User */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #f0f0f5;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar:not(.open) .sidebar-user {
  justify-content: center;
  padding: 14px 0;
}

.sidebar:not(.open) .user-info,
.sidebar:not(.open) .chevron-down {
  display: none;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: #888;
}

.chevron-down {
  width: 16px;
  height: 16px;
  color: #aaa;
  flex-shrink: 0;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f2f7;
  margin-left: 64px;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}


/* ── Hero ── */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 32px);
  background: url('assets/home.png') center center / cover no-repeat;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
}

/* Top: title + form centred */
.hero-top {
  width: 100%;
  max-width: 900px;
  padding: 72px 32px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Display heading — Instrument Serif */
.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  color: #1a1a2e;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.hero-title em {
  font-style: italic;
  color: #e67e00;
}

.hero-subtitle {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 620px;
}

/* Search bar */
.search-bar {
  width: 100%;
  max-width: 520px;
  display: flex;
  background: linear-gradient(135deg, #F59E0B 0%, #27ae60 100%);
  border: none;
  border-radius: 11px;
  padding: 1.5px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  margin-bottom: 18px;
}

.reg-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 18px;
  font-size: 14px;
  color: #333;
  font-family: 'Geist', sans-serif;
  background: #fff;
  border-radius: 9px 0 0 9px;
}

.reg-input::placeholder {
  color: #bbb;
}

.get-details-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  border: none;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
  border-radius: 0 8px 8px 0;
}

.get-details-btn:hover {
  background: linear-gradient(135deg, #219a52, #27ae60);
}

.get-details-btn svg {
  width: 16px;
  height: 16px;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 520px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #e0e4ef;
}

.divider-text {
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  letter-spacing: 0.5px;
}

/* Brand New */
.brand-new-btn {
  width: 100%;
  max-width: 520px;
  padding: 15px;
  background: #fff;
  border: 1.5px solid #e0e4ef;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  opacity: 0.6;
}

.brand-new-btn:hover {
  background: #f5f6ff;
  border-color: #c0c8e8;
  color: #2d3a8c;
  opacity: 1;
}


/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-top {
    padding: 56px 20px 24px;
  }

  .hero-title {
    font-size: 32px;
  }
}
