:root {
    --primary: #8257e5;
    --primary-light: #e0d4fc;
    --text-main: #333333;
    --text-support: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e1e4e8;
    --danger: #ef4444;
    --success: #10b981;
}

body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    padding-bottom: 80px;
    /* Nav height */
}

/* Layout */
.main-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-bottom: 80px;
}

.page {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header-section {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 100;
    padding: 10px;
}

.profile-dropdown.hidden {
    display: none;
}

.dropdown-header {
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 5px;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    border-radius: 8px;
}

/* Search */
.search-section {
    padding: 0 20px 10px;
    background: var(--bg-white);
}

.search-container {
    display: flex;
    gap: 10px;
    position: relative;
}

.search-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-light);
    font-size: 0.95rem;
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 600;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-support);
    gap: 4px;
    cursor: pointer;
}

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

.nav-item i {
    font-size: 1.4rem;
}

/* Progress Bar */
.progress-info {
    margin-top: 15px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.progress-bar-bg {
    background: var(--bg-light);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--primary);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

/* Modal */
.modal {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility */
.hidden {
    display: none !important;
}

.completed-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.completed-img-wrapper {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.completed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.completed-info {
    padding: 15px;
}

.completed-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.completed-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-support);
}