:root {
    --primary-color: #7E7CF5;
    --primary-hover: #6B69E0;
    --bg-color: #F4F5FB;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #EEEEEE;
    --sidebar-width: 220px;
    --header-height: 54px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

/* --- Login View --- */
#login-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    background-color: #FDFDFF;
    padding: 40px 0;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
}

.logo-icon-v2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.logo-v2-bar {
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Trapezoid shapes for the logo bars */
.logo-v2-bar:nth-child(1) { 
    width: 80px; 
    opacity: 0.4;
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
}
.logo-v2-bar:nth-child(2) { 
    width: 80px; 
    opacity: 0.7;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    transform: scaleY(-1); /* Invert to make it narrow at top, wide at bottom */
}
/* Re-adjusting trapezoids based on image: they all look like narrow-bottom trapezoids but different widths/opacities */
.logo-v2-bar:nth-child(1) { 
    width: 84px; 
    opacity: 0.4;
    clip-path: polygon(0% 0%, 100% 0%, 10% 100%, 90% 100%);
}
.logo-v2-bar:nth-child(2) { 
    width: 72px; 
    opacity: 0.7;
    clip-path: polygon(0% 0%, 100% 0%, 12% 100%, 88% 100%);
}
.logo-v2-bar:nth-child(3) { 
    width: 60px; 
    opacity: 1;
    clip-path: polygon(0% 0%, 100% 0%, 14% 100%, 86% 100%);
}

.logo-text-v2 { text-align: left; }
.logo-text-v2 .main-title { 
    font-size: 84px; 
    font-weight: 800; 
    color: #555; 
    line-height: 0.9; 
    letter-spacing: -2px;
}
.logo-text-v2 .sub-title { 
    font-size: 32px; 
    color: #666; 
    margin-top: 8px; 
    font-weight: 500;
    letter-spacing: 0px;
    text-align: center;
}

.login-card {
    background: white;
    padding: 50px 45px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    text-align: left;
    width: 440px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 12px; 
    color: #333; 
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.login-card input {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background-color: #F6F7FB;
    outline: none;
    color: #333;
}

.login-card input::placeholder {
    color: #AAB;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(126, 124, 245, 0.3);
}

.login-footer {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.footer-center { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
}

.project-text { 
    font-size: 11px; 
    color: #444; 
    max-width: 900px; 
    text-align: center; 
    line-height: 1.5;
}

.partner-logos { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

.logo-placeholder { 
    font-weight: 800; 
    font-size: 16px; 
}

.exit-btn {
    padding: 10px 45px;
    border: 1px solid #E0E4EC;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    color: #7E7CF5;
    font-weight: 600;
    font-size: 14px;
}

/* --- Dashboard --- */
#dashboard-view {
    display: none;
    flex-direction: row;
    height: 100vh;
    background-color: #F8F9FD;
}

.sidebar {
    width: 260px;
    background-color: #F8F9FD;
    border-right: 1px solid #E0E4EC;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
}

.sidebar-logo {
    padding: 0 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-text { 
    font-size: 22px; 
    font-weight: 800; 
    color: #444; 
}

.sidebar-page-title {
    padding: 0 30px;
    margin-bottom: 40px;
}

.sidebar-page-title h2 { font-size: 18px; color: #7E7CF5; font-weight: 700; margin-bottom: 4px; }
.sidebar-page-title p { font-size: 11px; color: #AAB; font-weight: 600; text-transform: uppercase; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    cursor: pointer;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.nav-item.active {
    background-color: #FFFFFF;
    color: #7E7CF5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin: 0 15px;
    border-radius: 10px;
}

.version-sidebar {
    margin-top: auto;
    padding: 30px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #F8F9FD;
}

header {
    height: 80px;
    background-color: white;
    border-bottom: 1px solid #F0F2F5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    flex-shrink: 0;
}

.header-left { display: flex; align-items: center; gap: 20px; }

.admin-badge {
    background-color: #908EF7;
    color: white;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.user-greeting { font-size: 15px; font-weight: 500; color: #555; }

.header-actions { display: flex; align-items: center; gap: 25px; }
.action-icon { color: #444; cursor: pointer; width: 22px; height: 22px; }

.logout-btn {
    background-color: #7E7CF5;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.content-body {
    padding: 40px;
    flex-shrink: 0;
}

.white-board {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Standard icon styling to prevent conflicts */
svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    vertical-align: middle;
}

/* User List Style */
.search-bar { 
    display: flex; 
    align-items: center; 
    background-color: white; 
    border-radius: 12px; 
    padding: 10px 10px 10px 25px; 
    margin-bottom: 40px; 
    gap: 20px;
    border: 1px solid #F0F2F5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.filter-dropdown { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    background: white; 
    padding: 12px 20px; 
    border-radius: 8px; 
    border: 1px solid #F0F2F5; 
    font-size: 14px; 
    color: #444; 
    cursor: pointer; 
}

.search-input { 
    flex: 1; 
    background: transparent; 
    border: none; 
    outline: none; 
    font-size: 15px; 
    color: #333; 
}
.search-input::placeholder { color: #AAB; }

.search-btn { 
    background-color: #A5A3FF; 
    border: none; 
    border-radius: 10px; 
    width: 44px; 
    height: 44px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
}

.user-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.user-table thead { background-color: #FAFBFF; }
.user-table th { 
    text-align: left; 
    padding: 18px 20px; 
    color: #444; 
    font-weight: 700; 
    font-size: 14px; 
    border-bottom: 1px solid #F0F2F5;
}
.user-table td { 
    padding: 22px 20px; 
    border-bottom: 1px solid #F8F9FB; 
    font-size: 14px; 
    color: #444; 
    font-weight: 500;
}

.member-no { color: #7E7CF5; font-weight: 600; }

.user-cell { display: flex; align-items: center; gap: 12px; }
.user-avatar-icon { 
    width: 36px; 
    height: 36px; 
    color: #DDE2EE; 
    background-color: #F4F6FA;
    border-radius: 50%;
    padding: 6px;
}

.action-buttons { display: flex; gap: 12px; }
.btn-edit, .btn-detail { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    background: white; 
    border: 1px solid #E0E4EC; 
    border-radius: 8px; 
    padding: 10px 18px; 
    font-size: 13px; 
    color: #444; 
    font-weight: 600;
    cursor: pointer; 
}

/* Detail View */
.back-link { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 20px; }
.user-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.detail-avatar { width: 70px; height: 70px; background-color: #DDD; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.detail-avatar svg { width: 40px; height: 40px; }
.detail-user-info h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.detail-user-info p { font-size: 13px; color: #666; }

.detail-tabs { display: flex; gap: 30px; margin-bottom: 25px; border-bottom: 1px solid #DDD; }
.detail-tab { padding-bottom: 12px; font-size: 16px; font-weight: 700; color: #999; cursor: pointer; position: relative; }
.detail-tab.active { color: #7E7CF5; }
.detail-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background-color: #7E7CF5; }

.detail-content-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; margin-bottom: 25px; }
.detail-white-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }

.good-status-box { background-color: #F8F9FF; border-radius: 10px; padding: 20px; text-align: center; margin-bottom: 20px; }
.status-good-text { font-size: 32px; font-weight: 700; color: #00B862; display: block; }

.progress-row { display: flex; justify-content: space-between; align-items: center; background: #F8F9FF; padding: 8px 12px; border-radius: 6px; margin-bottom: 10px; }
.prog-badge { padding: 2px 12px; border-radius: 10px; font-size: 11px; font-weight: 700; color: white; }
.prog-badge.blue { background-color: #7E7CF5; }
.prog-badge.grey { background-color: white; color: #DDD; border: 1px solid #EEE; }

/* Modal & Popups */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2000; align-items: center; justify-content: center; }
.modal { background: white; padding: 0; border-radius: 16px; width: 440px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; }

.modal-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F0F2F5;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: #333; }
.close-icon { cursor: pointer; color: #999; width: 20px; }

.modal-body { padding: 30px; }
.modal-body .form-group { margin-bottom: 20px; }
.modal-body .form-group:last-child { margin-bottom: 0; }
.modal-body label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 8px; }

.modal-input { 
    width: 100%; 
    padding: 12px 16px; 
    border: 1px solid #E0E4EC; 
    border-radius: 8px; 
    background-color: #F8F9FF; 
    font-size: 14px; 
    outline: none; 
    color: #333;
}
.modal-input[readonly] { background-color: #F0F2F5; color: #999; cursor: not-allowed; }

.gender-toggle { display: flex; gap: 10px; }
.gender-btn { 
    flex: 1; 
    padding: 12px; 
    border: 1px solid #E0E4EC; 
    background-color: #F8F9FF; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 14px; 
    color: #666; 
    font-weight: 600; 
    transition: all 0.2s;
}
.gender-btn.active { background-color: #7E7CF5; color: white; border-color: #7E7CF5; }

.modal-footer {
    padding: 24px 30px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #F0F2F5;
    background-color: #FAFBFF;
}

.btn-modal-cancel { 
    flex: 1; 
    padding: 12px; 
    border: 1px solid #E0E4EC; 
    border-radius: 8px; 
    background: white; 
    color: #666; 
    font-weight: 600; 
    cursor: pointer; 
}

.btn-modal-confirm { 
    flex: 1; 
    padding: 12px; 
    border: none; 
    border-radius: 8px; 
    background: #7E7CF5; 
    color: white; 
    font-weight: 600; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(126, 124, 245, 0.2);
}

/* Pagination in L.png */
.pagination-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-info { font-size: 13px; color: #444; font-weight: 600; }

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-arrow { cursor: pointer; color: #444; width: 18px; }

.page-numbers { display: flex; gap: 8px; }
.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    border: 1px solid #E0E4EC;
}

.page-num.active {
    background-color: #7E7CF5;
    color: white;
    border-color: #7E7CF5;
}

/* Record Details Filters and Navigation */
.record-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 12px;
}

.custom-select-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid #E0E4EC;
    border-radius: 8px;
    background-color: white;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    min-width: 110px;
    justify-content: space-between;
}

.date-navigator {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #F8F9FF;
    padding: 6px 12px;
    border-radius: 20px;
}

.nav-arrow {
    width: 16px;
    color: #999;
    cursor: pointer;
}

.current-date {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
