@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --primary-color: #007aff;
    --light-gray: #f0f2f5;
    --text-color: #333;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --nav-bg: #ffffff;
}

/* Dark Theme Variables */
.dark-theme {
    --light-gray: #121212;
    --text-color: #e0e0e0;
    --white-color: #1e1e1e;
    --border-color: #333;
    --card-bg: #1e1e1e;
    --header-bg: #1e1e1e;
    --nav-bg: #1e1e1e;
}

/* General */
body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding-bottom: 80px; 
    transition: background-color 0.3s, color 0.3s;
}

main { 
    padding: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: background-color 0.3s, box-shadow 0.3s;
}

header {
    background-color: var(--header-bg);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

header h1 { margin: 0; font-size: 1.2rem; font-weight: 600; flex-grow: 1; }

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

/* Form & Button */
form { display: grid; gap: 1.5rem; }
label { font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="tel"], select, input[type="file"] {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}
button, button[type="button"] {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Home & Success Screens */
#home-screen, #success-message { text-align: center; padding: 4rem 2rem; background: none; box-shadow: none; }
.home-icon { width: 80px; margin-bottom: 1.5rem; }
.fa-check-circle { font-size: 4rem; color: #28a745; margin-bottom: 1.5rem; }

/* Report & Check Status List */
.report-list-container { padding: 0; margin-top: 1rem; }
.report-list-container ul { list-style: none; padding: 0; }
.report-list-container li {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.report-list-container li:last-child { border-bottom: none; }
.report-item-info strong { display: block; }
.report-item-info span { font-size: 0.8rem; color: #888; margin-top: 4px; }

/* Status Badges */
.report-item-status { font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.9rem; text-align: center; }
.status-received { background-color: #e6f7ff; color: #007aff; } 
.status-moved { background-color: #e6fff0; color: #28a745; }
.status-completed { background-color: #f0f0f0; color: #555; }
.status-rejected { background-color: #ffe6e6; color: #ff3b30; }

/* Admin Screens */
#admin-list-screen .report-list-container li { cursor: pointer; transition: background-color 0.2s; }
#admin-list-screen .report-list-container li:hover { background-color: #f9f9f9; }

#admin-detail-screen .detail-content { display: grid; gap: 2rem; }
#admin-detail-screen h3 {
    margin-top: 1rem;
    margin-bottom: -1rem; 
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
#admin-detail-info p { background-color: var(--light-gray); padding: 1rem; border-radius: 8px; margin: 0.5rem 0; }
#admin-detail-info p strong { display: inline-block; min-width: 80px; color: #555; }

.detail-photo { 
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    display: block;
}

#mark-as-moved-btn { background-color: #28a745; }
#mark-as-moved-btn:hover { background-color: #218838; }

/* Navigation */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 70px; background-color: var(--white-color); display: flex; justify-content: space-around; align-items: center; box-shadow: 0 -2px 5px rgba(0,0,0,0.1); }
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #999; font-size: 0.8rem; transition: color 0.3s; }
.nav-item i { font-size: 1.5rem; margin-bottom: 4px; }
.nav-item.active { color: var(--primary-color); }
