:root { /* Design Tokens from tokens.json */ --primary-color: #1E5149; --primary-lv-0: #e9eeed; --primary-lv-1: #D2DCDB; --primary-lv-8: #193833; --bg-default: #FFFFFF; --bg-muted: #F9FAFB; --text-main: #2D3748; --text-sub: #718096; --border-color: #E2E8F0; --header-gradient: linear-gradient(90deg, #193833 0%, #1e5149 100%); --ai-gradient: linear-gradient(180deg, #da8cf1 0%, #8bb1f2 100%); --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 32px; --space-xl: 64px; --radius-sm: 4px; --radius-lg: 8px; --fz-h1: 20px; --fz-h2: 16px; --fz-body: 13px; } /* Base Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Pretendard', sans-serif; font-size: var(--fz-body); color: var(--text-main); background: var(--bg-default); min-height: 100vh; } a { text-decoration: none; color: inherit; } button { cursor: pointer; border: none; font-family: inherit; } /* Components: Topbar */ .topbar { width: 100%; background: var(--header-gradient); color: #fff; padding: 0 var(--space-lg); position: fixed; top: 0; height: 36px; display: flex; align-items: center; z-index: 1000; } .topbar-header { margin-right: 80px; font-weight: 700; } .topbar-header h2 { font-size: 15px; } .nav-list { display: flex; list-style: none; gap: var(--space-sm); } .nav-item { padding: 4px 8px; border-radius: 4px; color: rgba(255,255,255,0.8); transition: 0.2s; font-size: 14px; display: flex; align-items: center; } .nav-item:hover { background: var(--primary-lv-1); color: #fff; } .nav-item.active { background: var(--primary-lv-0); color: var(--primary-color) !important; font-weight: 700; } /* Global Layout */ .main-content { margin-top: 36px; padding: var(--space-lg) var(--space-xl); max-width: 1400px; margin-left: auto; margin-right: auto; } header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border-color); } header h1 { font-size: var(--fz-h1); color: var(--primary-color); font-weight: 800; } .admin-info { color: var(--text-sub); font-size: 12px; margin-left: var(--space-lg); } /* Portal (Index) */ .portal-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: calc(100vh - 36px); background: var(--bg-muted); padding: var(--space-lg); } .portal-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; text-align: center; transition: 0.3s; width: 100%; max-width: 380px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; gap: 20px; } .portal-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } .portal-card .icon { font-size: 32px; width: 64px; height: 64px; background: var(--bg-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; } .portal-card:hover .icon { background: var(--primary-color); color: #fff; } /* Dashboard List */ .continent-group { margin-bottom: var(--space-xl); } .continent-header { font-size: 18px; font-weight: 800; color: var(--primary-color); padding: var(--space-md) 0; border-bottom: 2px solid var(--primary-color); display: flex; justify-content: space-between; cursor: pointer; margin-bottom: var(--space-md); } .country-group { margin-bottom: var(--space-md); } .country-header { font-size: 14px; font-weight: 700; padding: var(--space-sm) 0; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; cursor: pointer; } .continent-body, .country-body { display: none; } .active > .continent-body, .active > .country-body { display: block; } .active > .continent-header .toggle-icon, .active > .country-header .toggle-icon { transform: rotate(180deg); } .toggle-icon { transition: 0.2s; display: inline-block; } .accordion-container { border: none; background: transparent; margin-top: var(--space-xs); } .accordion-list-header, .accordion-header { display: grid; grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr; gap: var(--space-md); padding: var(--space-md) var(--space-lg); align-items: center; } .accordion-list-header { font-size: 11px; font-weight: 700; color: var(--text-sub); border-bottom: 1px solid var(--text-main); text-transform: uppercase; } .accordion-item { border-bottom: 1px solid var(--border-color); transition: background 0.1s; } .accordion-item:hover { background: #E9EEED; } .repo-title { font-weight: 700; color: var(--primary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; } .repo-files { text-align: center; font-weight: 600; color: var(--text-main); } .repo-log { font-size: 11px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .accordion-body { display: none; padding: var(--space-lg); background: var(--bg-muted); border-top: 1px solid var(--border-color); } .accordion-item.active .accordion-body { display: block; } .status-warning { background: #fff9e6; } .status-error { background: #fee9e7; } .warning-text { color: #f21d0d !important; font-weight: 700; } /* Mail Manager */ .mail-wrapper { display: flex; height: calc(100vh - 36px); margin-top: 36px; background: #fff; overflow: hidden; } .mail-sidebar { width: 240px; border-right: 1px solid var(--border-color); padding: var(--space-md); background: var(--bg-muted); } .project-select { width: 100%; padding: var(--space-sm); border-radius: var(--radius-sm); border: 1px solid var(--border-color); margin-bottom: var(--space-lg); font-weight: 700; } .mail-list-area { width: 380px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; } .mail-item { padding: var(--space-md); border-bottom: 1px solid var(--border-color); cursor: pointer; transition: 0.2s; } .mail-item.active { background: #E9EEED; border-left: 4px solid var(--primary-color); } .attachment-area { padding: var(--space-lg); border-top: 1px solid var(--border-color); background: var(--bg-muted); } .attachment-item { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-lg); border: 1px solid var(--border-color); margin-bottom: var(--space-sm); flex-wrap: wrap; } .file-info { display: flex; align-items: center; gap: var(--space-sm); flex: 1; min-width: 200px; } .ai-recommend { font-size: 11px; color: #6d3dc2; background: #f1ecf9; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-left: 10px; } .file-log-area { display: none; width: 100%; margin-top: 10px; background: #1a202c; border-radius: 4px; padding: 12px; font-family: monospace; font-size: 11px; color: #cbd5e0; line-height: 1.5; } .file-log-area.active { display: block; } .btn-group { display: flex; gap: var(--space-xs); } .btn-upload { padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; } .btn-ai { background: var(--ai-gradient); } .btn-normal { background: var(--primary-color); } /* Toggle Switch */ .switch { position: relative; display: inline-block; width: 34px; height: 20px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 20px; } .slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background: var(--ai-gradient); } input:checked + .slider:before { transform: translateX(14px); } .ai-toggle-wrap { display: flex; align-items: center; gap: var(--space-sm); font-size: 12px; font-weight: 600; color: var(--text-sub); } /* Utils */ .sync-btn { background: var(--primary-color); color: #fff; padding: 8px 16px; border-radius: var(--radius-lg); font-weight: 700; display: flex; align-items: center; gap: 8px; } .badge { background: #eee; padding: 2px 6px; border-radius: 4px; font-size: 11px; } .spinner-small { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }