:root {
    --primary: #0070C0;
    --primary-dark: #00518c;
    --bg: #f4f6fa;
    --card-bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.navbar {
    background: var(--primary);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.navbar .brand { font-size: 1.2rem; font-weight: 700; }

.container {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

h1, h2, h3 { margin-top: 0; }

.auth-box {
    max-width: 380px;
    margin: 60px auto;
}

.form-group { margin-bottom: 16px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

input[type=text], input[type=email], input[type=password], input[type=tel],
textarea, input[type=month] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

textarea { resize: vertical; min-height: 70px; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { background: var(--primary-dark); }

.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #4b5563; }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.row-flex { display: flex; gap: 10px; flex-wrap: wrap; }

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.dynamic-block {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: var(--danger);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .two-col { grid-template-columns: 1fr; }
}

.resume-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.resume-list-item:last-child { border-bottom: none; }

.muted { color: var(--muted); font-size: 0.85rem; }

/* --- Resume view / print styling --- */
.resume-doc {
    background: #fff;
    padding: 0;
    overflow: hidden;
}
.resume-header {
    display: flex;
    align-items: center;
    gap: 26px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 32px 36px;
}
.resume-header .photo-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.55);
    flex-shrink: 0;
    background: #fff;
}
.resume-header .photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.resume-header h1 { color: #fff; margin: 0; font-size: 1.9rem; }
.resume-header .headline { font-size: 1.05rem; opacity: 0.95; margin-top: 4px; font-weight: 500; }
.resume-header .contact-line {
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.resume-header .contact-line span { white-space: nowrap; }

.resume-body { display: flex; align-items: flex-start; }
.resume-sidebar {
    width: 34%;
    background: #f3f4f6;
    padding: 28px 24px;
    box-sizing: border-box;
}
.resume-main {
    width: 66%;
    padding: 28px 32px;
    box-sizing: border-box;
}
.resume-sidebar h2, .resume-main h2 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    margin-top: 24px;
    margin-bottom: 10px;
}
.resume-sidebar h2:first-child, .resume-main h2:first-child { margin-top: 0; }
.resume-sidebar ul, .resume-main ul { margin: 4px 0; padding-left: 18px; }
.resume-sidebar li, .resume-main li { margin-bottom: 4px; font-size: 0.88rem; }
.sidebar-skill-pill {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    margin: 3px 4px 3px 0;
}
.entry { margin-bottom: 14px; }
.entry-title { font-weight: 700; }
.entry-sub { color: var(--muted); font-size: 0.88rem; }
.skill-pill {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin: 3px 6px 3px 0;
}

@media (max-width: 700px) {
    .resume-body { flex-direction: column; }
    .resume-sidebar, .resume-main { width: 100%; }
    .resume-header { flex-direction: column; text-align: center; }
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
    .container { margin: 0; max-width: 100%; padding: 0; }
    .card.resume-doc { border: none; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
    .resume-body { display: flex !important; }
    .resume-sidebar { width: 34% !important; }
    .resume-main { width: 66% !important; }
    .resume-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .resume-sidebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
