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

:root {
  --bg-app: #0f172a;
  --bg-surface: rgba(30, 41, 59, 0.75);
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border-light: rgba(255, 255, 255, 0.1);

  --font-main: 'Pretendard', sans-serif;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
}

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

/* Mobile App Wrapper */

.mobile-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: transparent;
  background-image: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0;
  z-index: 1000;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-icon {
  font-size: 1.4rem;
}

/* Components */

.premium-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
  padding: 1.2rem;
  transition: transform 0.2s;
}

.premium-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: white;
  transition: all 0.2s;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.premium-btn:active {
  transform: scale(0.98);
}

.premium-btn.danger {
  background: var(--danger);
  box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.input-premium {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-premium:focus {
  border-color: var(--primary);
}

/* Progress Bar Checkbox UI */

.progress-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 1.5rem 0;
  padding: 0 5px;
}

.progress-track {
  position: absolute;
  top: 12px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.progress-track-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  width: 25%;
  gap: 0.4rem;
}

.progress-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-app);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.progress-step.checked .progress-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.progress-step.final-step.checked .progress-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.progress-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  word-break: keep-all;
  line-height: 1.3;
}

.progress-step.checked .progress-label {
  color: white;
}

/* Tools */

.custom-file-upload {
  display: inline-block;
  padding: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  text-align: center;
  width: 100%;
}

.preview-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 0.8rem;
  border: 1px solid var(--border-light);
}