/* Common CSS - Base Styles */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
html {
    height: -webkit-fill-available;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Container */
.container {
    max-width: 390px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Main Content */
.main-content {
    padding: 16px 20px 100px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
}

/* Responsive Design */
@media (max-width: 390px) {
    .container {
        max-width: 100%;
    }
    
    .main-content {
        padding: 0 16px 100px;
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 391px) {
    body {
        background: #f0f0f0;
    }
    
    .container {
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}
/* Generic subpage header (back button + title) */
.subpage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
}
.subpage-header .back-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.subpage-header .page-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    text-align: center;
    flex: 1;
}
.subpage-header .header-spacer {
    width: 24px;
}
