/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {

  --bg: #0f1115;
  --card: #171a21;
  --card2: #1d212b;

  --text: #ffffff;
  --sub: #9aa4b2;

  --line: rgba(255,255,255,0.06);

  --accent: #4f46e5;

}

body {

user-select: none;
  background: var(--bg);

  color: var(--text);

  font-family: 'Inter', sans-serif;

  min-height: 100vh;

  max-width: 520px;
  margin: auto;

  overflow-x: hidden;

  -webkit-tap-highlight-color: transparent;

}

html {

  scroll-behavior: smooth;

}

/* 상단 */

.topbar {

  position: sticky;
  top: 0;

  z-index: 100;

  height: 72px;

  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

backdrop-filter: blur(20px);
-webkit-backdrop-filter:
blur(20px);

  background:
    rgba(15,17,21,0.7);

  border-bottom:
    1px solid var(--line);



}

.topbar h1 {

  font-size: 22px;
  font-weight: 700;

}

.topbar p {

  font-size: 12px;
  color: var(--sub);

  margin-top: 2px;

}

.profile-btn {

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: var(--accent);

  color: white;

  font-weight: 700;

}

/* 메인 */

.main {

  padding:
    20px 16px 100px;

}

/* 히어로 카드 */

.hero-card {

  background:
    linear-gradient(
      135deg,
      #1f2430,
      #141821
    );

  border:
    1px solid var(--line);

  border-radius: 28px;

  padding: 26px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.3);

}

.badge {

  display: inline-block;

  padding:
    7px 12px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.06);

  color: #d0d6df;

  font-size: 12px;

  margin-bottom: 18px;

}

.hero-card h2 {

  font-size: 28px;
  line-height: 1.3;

  margin-bottom: 14px;

}

.hero-card p {

  color: var(--sub);

  line-height: 1.6;

}

/* 섹션 */

.section {

  margin-top: 28px;

}

.section-title {

  font-size: 18px;
  font-weight: 700;

  margin-bottom: 16px;

}

/* 빠른 실행 */

.quick-grid {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 14px;

}

.quick-card {

  cursor: pointer;

.quick-card {

  position: relative;

  overflow: hidden;

}

  height: 110px;

  border: none;

  border-radius: 22px;

  background: var(--card);

  color: white;

  font-size: 16px;
  font-weight: 600;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 10px;

  transition: 0.18s ease;

  border:
    1px solid var(--line);

}

.quick-card span {

  font-size: 28px;

}

.quick-card:active {

  transform: scale(0.97);

}


.quick-card:hover {

  transform:
    translateY(-3px);

  background:
    var(--card2);

}



.quick-card svg {

  width: 30px;
  height: 30px;

}

.nav-item svg {

  width: 20px;
  height: 20px;

}

/* 작업 리스트 */

.task-list {

  display: flex;
  flex-direction: column;

  gap: 14px;

  transition:
    0.2s ease;

}

.task-card {

  cursor: pointer;
  background: var(--card);

  border-radius: 22px;

  padding: 18px;

  border:
    1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: space-between;

}

.task-card h3 {

  font-size: 15px;
  margin-bottom: 5px;

}

.task-card p {

  color: var(--sub);
  font-size: 13px;

}

.task-card:hover {

  transform:
    translateY(-2px);

  background:
    var(--card2);

}

/* 상태 */

.status {

  padding:
    7px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;

}

.done {

  background:
    rgba(34,197,94,0.15);

  color:
    #4ade80;

}

.progress {

  background:
    rgba(79,70,229,0.15);

  color:
    #818cf8;

}

.wait {

  background:
    rgba(255,255,255,0.08);

  color:
    #cbd5e1;

}

/* 하단 네비 */

.bottom-nav {

  position: fixed;

  bottom: 0;

  width: 100%;
  max-width: 520px;

  height: 78px;

  background:
    rgba(15,17,21,0.85);

  backdrop-filter: blur(18px);

  border-top:
    1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: space-around;

}

.nav-item {

  border: none;
  background: none;

  color: var(--sub);

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 5px;

  font-size: 12px;

}

.nav-item span {

  font-size: 20px;

}

.nav-item.active {

  color: white;

  transform:
    translateY(-2px);

}

/* 페이지 등장 */

.main {

  animation:
    fadeUp 0.45s ease;

}

@keyframes fadeUp {

  from {

    opacity: 0;
    transform: translateY(12px);

  }

  to {

    opacity: 1;
    transform: translateY(0);

  }

}

/* 페이지 */

.page {

  display: none;

  animation:
    fadePage 0.25s ease;

}

.page.active {

  display: block;

}

@keyframes fadePage {

  from {

    opacity: 0;
    transform: translateY(8px);

  }

  to {

    opacity: 1;
    transform: translateY(0);

  }

}

.settings-list {

  display: flex;
  flex-direction: column;

  gap: 14px;

}

.setting-card {
  cursor: pointer;
  height: 64px;

  border: none;
  border-radius: 18px;

  background: var(--card);

  color: white;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 0 18px;

  font-size: 15px;
  font-weight: 600;

  border:
    1px solid var(--line);

  transition:
    0.18s ease;

}

.setting-card:hover {

  background:
    var(--card2);

  transform:
    translateY(-2px);

}

/* 프로필 */

.profile-wrapper {

  position: relative;

}

.profile-btn {

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: #4285f4;

  color: white;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.18s ease;

}

.profile-btn:hover {

  transform: scale(1.04);

}

.profile-menu {

  position: absolute;

  top: 54px;
  right: 0;

  width: 270px;

  padding: 10px;

  border-radius: 18px;

  background: #171a21;

  border:
    1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.35);

  display: none;

  z-index: 999;

}

.profile-menu.active {

  display: block;

}

.profile-email {

  font-size: 14px;
  text-align: center;
  color: white;

  margin-bottom: 8px;

  word-break: break-all;

}

.logout-btn {

  width: 100%;
  height: 30px;

  border: none;
  border-radius: 12px;

  background:
    rgba(255,255,255,0.06);

  color: white;

  font-size: 13px;
  font-weight: 400;

  cursor: pointer;

  transition: 0.18s ease;

}

.logout-btn:hover {

  background:
    rgba(255,255,255,0.1);

}
