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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f6f8;
  color: #334155;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 0 0 0 transparent;
}

.sidebar:hover {
  width: 270px;
  box-shadow: 6px 0 30px rgba(0,0,0,0.08);
}

.sidebar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: transparent;
  transition: background 0.35s ease;
}

/* ── Logo / Brand ── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-bottom: 1px solid #f1f5f9;
  min-height: 56px;
  white-space: nowrap;
}

.sidebar-logo .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #2563eb;
}

.sidebar-logo .text {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .sidebar-logo .text {
  opacity: 1;
  transform: translateX(0);
}

/* ── Nav Menu ── */
.sidebar-menu {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  border-radius: 0;
}

.sidebar-menu li a:hover {
  background: #eff6ff;
  color: #2563eb;
}

.sidebar-menu li a .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar-menu li a .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .sidebar-menu li a .text {
  opacity: 1;
  transform: translateX(0);
}

/* ── PMT Section ── */
.sidebar-pmt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fefce8;
  transition: background 0.35s ease;
}

.sidebar-pmt .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #ca8a04;
}

.sidebar-pmt .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
  min-width: 0;
}

.sidebar:hover .sidebar-pmt .text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-pmt strong {
  display: block;
  font-size: 13px;
  color: #854d0e;
  margin-bottom: 4px;
}

.sidebar-pmt p {
  font-size: 11px;
  color: #78716c;
  line-height: 1.5;
  margin-bottom: 6px;
}

.pmt-link {
  font-size: 11px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.pmt-link:hover {
  text-decoration: underline;
}

/* ── Contact ── */
.sidebar-contact {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-contact a,
.sidebar-contact > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-contact a:hover {
  color: #2563eb;
}

.sidebar-contact .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar-contact .text {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .sidebar-contact .text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-contact > span {
  cursor: default;
}

/* ── Login ── */
.sidebar-login {
  padding: 16px;
  margin-top: auto;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, gap 0.35s ease, padding 0.35s ease;
  white-space: nowrap;
}

.btn-login:hover {
  background: #1d4ed8;
}

.btn-login .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login .text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease 0.05s, max-width 0.25s ease 0.05s;
}

.sidebar:hover .btn-login .text {
  opacity: 1;
  max-width: 200px;
}

/* ── Expand hint (little arrow on right edge) ── */
.sidebar::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 32px;
  background: #e2e8f0;
  border-radius: 3px 0 0 3px;
  transition: background 0.35s ease, height 0.35s ease;
}

.sidebar:hover::before {
  background: transparent;
  height: 0;
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main-content {
  margin-left: 56px;
  padding: 40px;
  min-height: 100vh;
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   MOBILE: keep sidebar always collapsed, tap to reveal
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    width: 56px;
  }

  .sidebar:hover {
    width: 56px;
    box-shadow: none;
  }

  .sidebar.expanded-mobile {
    width: 270px;
    box-shadow: 6px 0 30px rgba(0,0,0,0.15);
  }

  .sidebar.expanded-mobile .sidebar-logo .text,
  .sidebar.expanded-mobile .sidebar-menu li a .text,
  .sidebar.expanded-mobile .sidebar-pmt .text,
  .sidebar.expanded-mobile .sidebar-contact .text,
  .sidebar.expanded-mobile .btn-login .text {
    opacity: 1;
    transform: translateX(0);
    max-width: 200px;
  }

  .sidebar.expanded-mobile::before {
    background: transparent;
  }

  .main-content {
    margin-left: 56px;
    padding: 20px;
  }
}
