*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

:root {
--bg: #0e0e0f;
--surface: #18181b;
--surface2: #1f1f23;
--border: #2e2e33;
--accent: #e8ff47;
--accent2: #47ffe8;
--text: #f0f0f0;
--muted: #888;
--danger: #ff4747;
--radius: 10px;
}

body {
font-family: "DM Sans", sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
line-height: 1.6;
}

.app {
display: flex;
min-height: 100vh;
}

.sidebar {
width: 220px;
flex-shrink: 0;
background: var(--surface);
border-right: 1px solid var(--border);
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
padding: 24px 0;
display: flex;
flex-direction: column;
}

.sidebar-logo {
font-family: "DM Mono", monospace;
font-size: 13px;
color: var(--accent);
padding: 0 20px 24px;
border-bottom: 1px solid var(--border);
margin-bottom: 16px;
letter-spacing: 0.05em;
}
.sidebar-logo span {
color: var(--muted);
}

.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
font-size: 13px;
color: var(--muted);
cursor: pointer;
transition: all 0.15s;
border-left: 2px solid transparent;
user-select: none;
}
.nav-item:hover {
color: var(--text);
background: var(--surface2);
}
.nav-item.active {
color: var(--accent);
border-left-color: var(--accent);
background: rgba(232, 255, 71, 0.05);
}
.nav-icon {
font-size: 16px;
width: 20px;
text-align: center;
}

.sidebar-bottom {
margin-top: auto;
padding: 16px 20px;
border-top: 1px solid var(--border);
}

.btn-export {
width: 100%;
padding: 11px;
background: var(--accent);
color: #0e0e0f;
border: none;
border-radius: var(--radius);
font-family: "DM Mono", monospace;
font-size: 12px;
font-weight: 500;
cursor: pointer;
letter-spacing: 0.05em;
transition: all 0.15s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-export:hover {
background: #d4eb30;
transform: translateY(-1px);
}
.btn-export:active {
transform: translateY(0);
}
.btn-export:disabled {
background: #3a3a3a;
color: var(--muted);
cursor: not-allowed;
transform: none;
}

.main {
flex: 1;
overflow-y: auto;
}

.section-page {
display: none;
max-width: 780px;
margin: 0 auto;
padding: 40px 40px 80px;
}
.section-page.active {
display: block;
}

.page-title {
font-size: 22px;
font-weight: 600;
margin-bottom: 6px;
color: var(--text);
}
.page-subtitle {
font-size: 13px;
color: var(--muted);
margin-bottom: 32px;
}

.form-group {
margin-bottom: 20px;
}
label {
display: block;
font-size: 12px;
font-family: "DM Mono", monospace;
color: var(--muted);
margin-bottom: 6px;
letter-spacing: 0.04em;
text-transform: uppercase;
}
label .req {
color: var(--accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
width: 100%;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 10px 14px;
color: var(--text);
font-family: "DM Sans", sans-serif;
font-size: 14px;
outline: none;
transition: border-color 0.15s;
}
input:focus,
textarea:focus {
border-color: var(--accent);
background: #1a1a1e;
}
textarea {
resize: vertical;
min-height: 80px;
}
input::placeholder,
textarea::placeholder {
color: #555;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}

.card-list {
display: flex;
flex-direction: column;
gap: 12px;
}

.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color 0.15s;
}
.card:hover {
border-color: #3e3e44;
}

.card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
cursor: pointer;
user-select: none;
}
.card-header-left {
display: flex;
align-items: center;
gap: 10px;
}
.card-num {
width: 24px;
height: 24px;
background: var(--surface2);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-family: "DM Mono", monospace;
font-size: 11px;
color: var(--muted);
flex-shrink: 0;
}
.card-title-text {
font-size: 14px;
font-weight: 500;
}
.card-subtitle-text {
font-size: 12px;
color: var(--muted);
}

.card-actions {
display: flex;
gap: 6px;
}
.btn-icon {
width: 28px;
height: 28px;
background: none;
border: 1px solid transparent;
border-radius: 6px;
color: var(--muted);
cursor: pointer;
font-size: 13px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
}
.btn-icon:hover {
border-color: var(--border);
color: var(--text);
background: var(--surface2);
}
.btn-icon.danger:hover {
border-color: var(--danger);
color: var(--danger);
}

.card-body {
padding: 0 16px 16px;
border-top: 1px solid var(--border);
margin-top: -1px;
display: none;
}
.card-body.open {
display: block;
padding-top: 16px;
}

.btn-add {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: none;
border: 1px dashed var(--border);
border-radius: var(--radius);
color: var(--muted);
font-size: 13px;
cursor: pointer;
width: 100%;
justify-content: center;
transition: all 0.15s;
margin-top: 12px;
}
.btn-add:hover {
border-color: var(--accent);
color: var(--accent);
background: rgba(232, 255, 71, 0.03);
}

.skills-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.skill-tag {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 100px;
font-size: 13px;
transition: border-color 0.15s;
}
.skill-tag:hover {
border-color: #444;
}
.skill-tag .remove-skill {
cursor: pointer;
color: var(--muted);
font-size: 14px;
line-height: 1;
transition: color 0.1s;
}
.skill-tag .remove-skill:hover {
color: var(--danger);
}

.skill-input-row {
display: flex;
gap: 8px;
}
.skill-input-row input {
flex: 1;
}
.btn-add-skill {
padding: 10px 16px;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 13px;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s;
}
.btn-add-skill:hover {
border-color: var(--accent);
color: var(--accent);
}

.upload-zone {
border: 1px dashed var(--border);
border-radius: var(--radius);
padding: 20px;
text-align: center;
cursor: pointer;
transition: all 0.15s;
position: relative;
}
.upload-zone:hover {
border-color: var(--accent);
background: rgba(232, 255, 71, 0.02);
}
.upload-zone input[type="file"] {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
width: 100%;
height: 100%;
}
.upload-zone .upload-icon {
font-size: 24px;
margin-bottom: 8px;
}
.upload-zone .upload-text {
font-size: 13px;
color: var(--muted);
}
.upload-zone .upload-name {
font-size: 13px;
color: var(--accent);
margin-top: 6px;
font-family: "DM Mono", monospace;
}
.upload-preview {
width: 72px;
height: 72px;
border-radius: 12px;
object-fit: cover;
margin: 0 auto 8px;
display: block;
border: 1px solid var(--border);
}

.social-row {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 8px;
}
.social-row input:first-child {
width: 120px;
flex-shrink: 0;
}
.social-row input:last-child {
flex: 1;
}

.toast {
position: fixed;
bottom: 24px;
right: 24px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 18px;
font-size: 13px;
display: flex;
align-items: center;
gap: 10px;
opacity: 0;
transform: translateY(8px);
transition: all 0.2s;
z-index: 999;
max-width: 320px;
}
.toast.show {
opacity: 1;
transform: translateY(0);
}
.toast.success {
border-color: #47ff8860;
color: #47ff88;
}
.toast.error {
border-color: #ff474760;
color: #ff8080;
}
.toast.info {
border-color: var(--accent);
color: var(--accent);
}

.section-divider {
font-family: "DM Mono", monospace;
font-size: 11px;
color: var(--muted);
letter-spacing: 0.08em;
text-transform: uppercase;
margin: 28px 0 16px;
display: flex;
align-items: center;
gap: 12px;
}
.section-divider::after {
content: "";
flex: 1;
height: 1px;
background: var(--border);
}

.info-box {
background: rgba(232, 255, 71, 0.04);
border: 1px solid rgba(232, 255, 71, 0.15);
border-radius: var(--radius);
padding: 14px 16px;
font-size: 13px;
color: #b8cc3a;
margin-bottom: 24px;
line-height: 1.6;
}
.info-box strong {
color: var(--accent);
}

::-webkit-scrollbar {
width: 4px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}

