/* ============================================================
   CSS 변수
   ============================================================ */
:root {
    --header-bg: #ffffff;
    --app-max-width: 480px;

    /* 그림자 */
    --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.05);
    --shadow-app:  0 0 20px rgba(0, 0, 0, 0.02);

    /* 모서리 반경 */
    --radius-xs:   4px;
    --radius-sm:   10px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-pill: 20px;

    /* z-인덱스 */
    --z-overlay: 2000;
    --z-modal:   2001;
    --z-loading: 9999;

    /* 전환 속도 */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;

    /* 버튼 공통 */
    --btn-padding: 18px 20px;
    --btn-font-size: 16px;
    --btn-font-size-lg: 17px;
    --btn-radius: var(--radius-lg);
}

/* ============================================================
   앱 컨테이너
   ============================================================ */
#app {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ============================================================
   헤더
   ============================================================ */
.header {
    width: 100%;
    max-width: var(--app-max-width);
    height: 60px;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.back-btn {
    position: absolute;
    left: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
}

.back-btn svg {
    width: 24px;
    height: 24px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 35px;
    width: auto;
}

/* ============================================================
   공통 애니메이션
   ============================================================ */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
