/* ============================================================
   LetsGetLaunched — Customer Portal Styles
   ============================================================ */

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

/* --- Reset & Variables ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #0f172a;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --green:        #16a34a;
  --muted:        #64748b;
  --light:        #f8fafc;
  --border:       #e2e8f0;
  --white:        #ffffff;
  --danger:       #dc2626;
  --sidebar-w:    240px;
  --radius:       10px;
  --shadow:       0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:    0 4px 12px rgba(15,23,42,.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--primary);
  line-height: 1.6;
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Typography ------------------------------------------- */
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 16px; font-weight: 600; }
p  { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn--outline:hover:not(:disabled) {
  border-color: var(--primary);
}
.btn--danger {
  background: var(--danger);
  color: var(--white);
}
.btn--danger:hover:not(:disabled) {
  background: #b91c1c;
}
.btn--upgrade {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: var(--white);
}
.btn--upgrade:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover:not(:disabled) {
  background: #15803d;
}
.btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}
.btn--block {
  width: 100%;
}

/* --- Cards ----------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

/* --- Form Inputs ----------------------------------------- */
.input-group {
  margin-bottom: 18px;
}
.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--primary);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder {
  color: #94a3b8;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.input--error {
  border-color: var(--danger);
}
.input--error:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

/* --- Alert / Error Messages ------------------------------ */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  display: none;
}
.alert--error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}
.alert--success {
  background: #f0fdf4;
  color: var(--green);
  border: 1px solid #bbf7d0;
}
.alert.show {
  display: block;
}

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

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
}
.sidebar__logo {
  padding: 24px 20px 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
}
.sidebar__logo span {
  color: var(--accent);
}
.sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Nav Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: all .15s ease;
}
.nav-item:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-item--active {
  color: var(--white);
  background: var(--accent);
}
.nav-item--active:hover {
  background: var(--accent-hover);
}
.nav-item__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar__footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sidebar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.sidebar__user-info {
  overflow: hidden;
}
.sidebar__user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-plan {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar__upgrade {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
}
.sidebar__logout {
  display: block;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 6px 0;
  width: 100%;
  transition: color .15s;
}
.sidebar__logout:hover {
  color: var(--white);
}

/* Mobile hamburger */
.sidebar__toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 32px 36px;
  min-height: 100vh;
  animation: fadeIn .35s ease;
}
.main__header {
  margin-bottom: 28px;
}
.main__header h1 {
  margin-bottom: 4px;
}
.main__header p {
  font-size: 14px;
}

/* --- Plan Badges ----------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge--starter {
  background: #f1f5f9;
  color: var(--muted);
}
.badge--growth {
  background: #eff6ff;
  color: var(--accent);
}
.badge--pro {
  background: #f0fdf4;
  color: var(--green);
}
.badge--elite {
  background: #faf5ff;
  color: #7c3aed;
}

/* --- Status Dots ----------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status--live .status__dot {
  background: var(--green);
  animation: pulse-green 2s ease-in-out infinite;
}
.status--deploying .status__dot {
  background: #eab308;
  animation: pulse-yellow 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234,179,8,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(234,179,8,0); }
}

/* --- Feature Locked -------------------------------------- */
.feature--locked {
  position: relative;
  opacity: .5;
  pointer-events: none;
  user-select: none;
}
.feature--locked::after {
  content: '\1F512';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
}

/* --- Dashboard Grid -------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- Skeleton Loader ------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
.skeleton--text { height: 16px; width: 60%; margin-bottom: 10px; }
.skeleton--title { height: 22px; width: 40%; margin-bottom: 14px; }
.skeleton--block { height: 80px; width: 100%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Auth Pages (Login / Signup / Reset) ----------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.auth-card__logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card__logo h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.auth-card__logo h2 span {
  color: var(--accent);
}
.auth-card__logo p {
  margin-top: 6px;
}
.auth-card__footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.auth-card__footer a {
  color: var(--accent);
  font-weight: 600;
}
.auth-card__footer a:hover {
  text-decoration: underline;
}
.auth-card__note {
  background: #eff6ff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* --- Page Transition ------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar__toggle {
    display: flex;
  }
  .main {
    margin-left: 0;
    padding: 72px 18px 32px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 30px 22px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 22px; }
}
