/* ===== BASE STYLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #475569;
    --accent-color: #7c3aed;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --info-color: #0ea5e9;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --card-hover: #f8fafc;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo .tagline {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auto-save-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #0369a1;
}

.auto-save-status i {
    color: var(--success-color);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.btn-download {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.btn-download:hover {
    transform: translateY(-2px);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.welcome-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 180px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat i {
    font-size: 32px;
    color: var(--primary-color);
}

.stat span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.welcome-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== TEMPLATES SECTION ===== */
.templates-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.template-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.category-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.category-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.category-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card .count {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    position: absolute;
    top: 12px;
    right: 12px;
    font-weight: 600;
}

/* Template Search */
.template-search {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    align-items: center;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sort-options select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
}

/* Template Cards */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.template-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.template-preview {
    height: 200px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.template-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.preview-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.preview-name {
    width: 80%;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.preview-title {
    width: 60%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.preview-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.preview-section {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.template-info {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.template-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.template-features {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
}

.template-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.template-actions {
    display: flex;
    gap: 8px;
}

.template-actions .btn {
    flex: 1;
    padding: 10px 16px;
}

/* No Templates State */
.no-templates {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}

.no-templates i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.no-templates h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.no-templates p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== EDITOR SECTION ===== */
.editor-section {
    padding: 20px 0;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.editor-title {
    text-align: center;
}

.editor-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#currentTemplateName {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.editor-actions {
    display: flex;
    gap: 12px;
}

.editor-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    min-height: 800px;
}

/* Form Steps */
.form-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
}

.step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step:hover:not(.active) {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.step.completed {
    color: var(--success-color);
    background: rgba(5, 150, 105, 0.1);
}

.step.completed::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

/* Form Steps Content */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Form Styles */
.editor-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.editor-form::-webkit-scrollbar {
    width: 8px;
}

.editor-form::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.editor-form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.editor-form::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

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

/* Form Errors */
.form-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-summary {
    background: #fee2e2;
    border: 1px solid var(--error-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--error-color);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Image Upload */
.image-upload-container {
    text-align: center;
}

.image-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-color);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.image-preview:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.image-preview i {
    font-size: 48px;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

/* Form Items (Experience/Education) */
.form-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    transition: var(--transition);
}

.form-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.item-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-item {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    padding: 6px 12px;
    font-size: 12px;
}

.remove-item:hover {
    background: var(--error-color);
    color: white;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 8px;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Form Tips */
.form-tips {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
}

.form-tips h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-tips ul {
    list-style: none;
    padding-left: 0;
}

.form-tips li {
    font-size: 13px;
    color: #0c4a6e;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.form-tips li:before {
    content: "•";
    color: #0ea5e9;
    font-weight: bold;
    position: absolute;
    left: 8px;
}

/* Skills Input */
.skills-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.skill-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.skill-tag .remove-skill {
    background: none;
    border: none;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
}

.skill-tag .remove-skill:hover {
    opacity: 1;
}

/* Color Picker */
.color-picker-group {
    margin-bottom: 24px;
}

.color-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-option.active {
    border-color: var(--text-color);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#customColor {
    width: 100%;
    height: 48px;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Section Toggles */
.section-toggles {
    margin-bottom: 24px;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.toggle-label:hover {
    background: #f1f5f9;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Advanced Options */
.advanced-options {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
}

.advanced-options h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.step-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== PREVIEW SECTION ===== */
.editor-preview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preview-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.preview-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.preview-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

#previewStatus .online {
    color: var(--success-color);
    font-size: 10px;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

#zoomLevel {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    min-width: 40px;
    text-align: center;
}

.preview-content-container {
    flex: 1;
    padding: 24px;
    overflow: auto;
    background: #f8fafc;
    position: relative;
}

.preview-content {
    width: 794px;
    min-height: 1123px;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin: 0 auto;
    transform-origin: top center;
    transition: transform 0.3s ease;
    padding: 56px;
    box-sizing: border-box;
    position: relative;
}

.preview-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.page-counter, .preview-help {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Download Section */
.download-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.download-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-color);
    width: 100%;
    text-align: left;
}

.download-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.download-option.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.download-option.btn-secondary {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.download-option.btn-outline {
    background: transparent;
    border-color: var(--border-color);
}

.download-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
}

.download-info {
    flex: 1;
}

.download-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-info small {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.download-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.download-note {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

/* Quick Actions */
.quick-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 80;
}

.quick-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.quick-action:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== RESUME TEMPLATE STYLES ===== */
.resume-template {
    width: 100%;
    min-height: 100%;
    background: white;
    color: var(--text-color);
    font-size: 11pt;
    line-height: 1.5;
    position: relative;
}

/* Header Styles */
.resume-header {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.header-with-photo {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-photo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
}

.header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.header-content {
    flex: 1;
}

.resume-name {
    font-size: 28pt;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.1;
}

.resume-title {
    font-size: 14pt;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10pt;
    color: var(--text-secondary);
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info i {
    width: 14px;
    text-align: center;
}

.contact-separator {
    color: #cbd5e1;
}

/* Section Styles */
.resume-section {
    margin-bottom: 24px;
    page-break-inside: avoid;
    position: relative;
}

.section-title {
    font-size: 12pt;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.section-content {
    font-size: 10.5pt;
    line-height: 1.6;
}

/* Experience & Education Items */
.experience-item, .education-item {
    margin-bottom: 20px;
    position: relative;
}

.experience-item:last-child, .education-item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.item-title {
    font-size: 11pt;
    font-weight: 600;
    color: var(--text-color);
}

.item-dates {
    font-size: 10pt;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.item-subtitle {
    font-size: 10.5pt;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    font-style: italic;
}

.item-meta {
    display: flex;
    gap: 16px;
    font-size: 10pt;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.item-description {
    font-size: 10.5pt;
    line-height: 1.5;
}

.item-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.item-description li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.item-description li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Certifications */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.certification-item {
    font-size: 10.5pt;
    padding-left: 16px;
    position: relative;
}

.certification-item:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Awards */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.award-item {
    font-size: 10.5pt;
    padding-left: 16px;
    position: relative;
}

.award-item:before {
    content: "🏆";
    position: absolute;
    left: 0;
}

/* Skills */
.skill-category {
    margin-bottom: 16px;
}

.skill-category h4 {
    font-size: 10.5pt;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-template .skill-tag {
    background: #f1f5f9;
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10pt;
    border: 1px solid #e2e8f0;
}

/* Languages */
.languages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    font-size: 10.5pt;
}

.language-name {
    font-weight: 500;
}

.language-level {
    color: var(--text-secondary);
}

/* Hobbies */
.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-template .hobby-tag {
    background: #f0f9ff;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10pt;
    border: 1px solid #bae6fd;
}

/* Layout Variations */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}

.two-column-layout .resume-header {
    grid-column: 1 / -1;
}

.two-column-layout .summary-section,
.two-column-layout .experience-section,
.two-column-layout .education-section {
    grid-column: 2;
}

.two-column-layout .skills-section,
.two-column-layout .languages-section,
.two-column-layout .hobbies-section,
.two-column-layout .certifications-section,
.two-column-layout .awards-section {
    grid-column: 1;
}

.modern-layout .resume-header {
    text-align: center;
    border: none;
    padding-bottom: 32px;
    position: relative;
}

.modern-layout .resume-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.modern-layout .header-content {
    max-width: 600px;
    margin: 0 auto;
}

.modern-layout .contact-info {
    justify-content: center;
}

.modern-layout .section-title {
    text-align: center;
    border: none;
    position: relative;
}

.modern-layout .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.compact-layout {
    font-size: 10pt;
}

.compact-layout .resume-section {
    margin-bottom: 16px;
}

.compact-layout .experience-item,
.compact-layout .education-item {
    margin-bottom: 12px;
}

.creative-layout {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 12px;
}

.creative-layout .resume-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: none;
}

.creative-layout .resume-name,
.creative-layout .resume-title,
.creative-layout .contact-info {
    color: white;
}

.creative-layout .contact-info span {
    opacity: 0.9;
}

.creative-layout .section-title {
    color: var(--text-color);
    border: none;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.loading-overlay p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
    max-width: 400px;
}

.progress-container {
    width: 300px;
    margin-bottom: 32px;
}

.progress-container .progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-container .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-container span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

#cancelLoading {
    margin-top: 16px;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.toast i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.success i {
    color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.error i {
    color: var(--error-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast.info i {
    color: var(--info-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.warning i {
    color: var(--warning-color);
}

.toast-content {
    flex: 1;
}

.toast-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-color);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalIn 0.3s ease;
    position: relative;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content.wide {
    max-width: 600px;
}

.modal-content.fullscreen {
    max-width: 90%;
    max-height: 90vh;
    width: 90%;
    display: flex;
    flex-direction: column;
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Tips Modal */
.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.tip-category {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 16px;
}

.tip-category h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-category ul {
    list-style: none;
    padding-left: 0;
}

.tip-category li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tip-category li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 8px;
    font-weight: bold;
}

/* Preview Modal */
.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: var(--radius) var(--radius) 0 0;
}

.preview-modal-content {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.preview-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-version {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.footer-version .version {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.footer-version .update {
    color: var(--text-light);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 6px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-social h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-icon.twitter:hover {
    background: #1da1f2;
    color: white;
}

.social-icon.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-icon.linkedin:hover {
    background: #0077b5;
    color: white;
}

.social-icon.github:hover {
    background: #333;
    color: white;
}

.social-icon.youtube:hover {
    background: #ff0000;
    color: white;
}

.newsletter {
    margin-top: 20px;
}

.newsletter p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.newsletter-form button {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.author-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.author-link:hover {
    text-decoration: underline;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .editor-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .editor-form {
        position: static;
        max-height: none;
    }
    
    .preview-content {
        width: 100%;
        min-height: auto;
        padding: 32px;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 16px 0;
        position: relative;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auto-save-status {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .welcome-title {
        font-size: 32px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .welcome-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .template-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-search {
        flex-direction: column;
        gap: 12px;
    }
    
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .editor-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        position: relative;
        top: 0;
    }
    
    .form-row, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .quick-actions {
        right: 16px;
        bottom: 16px;
    }
    
    .quick-action {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Resume template adjustments for mobile */
    .header-with-photo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-photo {
        width: 100px;
        height: 100px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .item-dates {
        white-space: normal;
    }
    
    .creative-layout {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .template-categories {
        grid-template-columns: 1fr;
    }
    
    .form-step h3 {
        font-size: 16px;
    }
    
    .preview-content {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .tips-content {
        grid-template-columns: 1fr;
    }
    
    .toast {
        min-width: auto;
        max-width: 90%;
        left: 5%;
        right: 5%;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .editor-form, .preview-header, .preview-footer, .download-section,
    .quick-actions, .modal, .toast {
        display: none !important;
    }
    
    body, .container, .editor-container, .editor-preview, .preview-container,
    .preview-content-container {
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .preview-content {
        width: 100% !important;
        min-height: auto !important;
        padding: 20mm !important;
        box-shadow: none !important;
        transform: none !important;
        margin: 0 !important;
        border: none !important;
    }
    
    .resume-template {
        font-size: 10pt !important;
        padding: 0 !important;
    }
    
    .resume-name {
        font-size: 22pt !important;
    }
    
    .resume-title {
        font-size: 12pt !important;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .experience-item, .education-item {
        page-break-inside: avoid;
    }
}