/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   Header Styles
   ======================================== */
.site-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ========================================
   Template Selector
   ======================================== */
.template-selector {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.template-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(167, 139, 250, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #60a5fa;
}

.template-card:hover::before {
    opacity: 1;
}

.template-preview {
    width: 100%;
    height: 320px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.template-card:hover .template-preview {
    border-color: #60a5fa;
    box-shadow: inset 0 2px 10px rgba(96, 165, 250, 0.15);
}

/* Modern Template Preview */
.modern-preview {
    background: linear-gradient(to bottom, #2563eb 120px, white 120px);
    padding: 1.5rem;
}

.modern-preview .preview-header {
    color: white;
    text-align: center;
}

.modern-preview .preview-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.modern-preview .preview-title {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modern-preview .preview-content {
    margin-top: 2rem;
}

.modern-preview .preview-section {
    height: 40px;
    background: #e5e7eb;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* Classic Template Preview */
.classic-preview {
    background: white;
    padding: 1.5rem;
}

.classic-preview .preview-header {
    border-bottom: 3px solid #1f2937;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.classic-preview .preview-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #1f2937;
}

.classic-preview .preview-section {
    height: 50px;
    background: #f3f4f6;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* Creative Template Preview */
.creative-preview {
    display: flex;
    background: white;
}

.creative-preview .preview-sidebar {
    width: 35%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.creative-preview .preview-main {
    flex: 1;
    padding: 1rem;
}

.creative-preview .preview-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.creative-preview .preview-section {
    height: 40px;
    background: #f3f4f6;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* Minimal Template Preview */
.minimal-preview {
    background: white;
    padding: 1.5rem;
}

.minimal-preview .preview-header {
    margin-bottom: 1.5rem;
}

.minimal-preview .preview-name {
    font-weight: 300;
    font-size: 1.3rem;
    color: #1f2937;
    letter-spacing: 0.1em;
}

.minimal-preview .preview-section {
    height: 30px;
    background: #f9fafb;
    margin-bottom: 1rem;
    border-radius: 2px;
}

.template-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.template-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.select-template-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.select-template-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.select-template-btn:hover::before {
    left: 100%;
}

.select-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ========================================
   Editor Section
   ======================================== */
.editor-section {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.editor-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.control-btn,
.download-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn {
    background: white;
    color: var(--text-dark);
}

.control-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.download-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.download-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ========================================
   Form Panel
   ======================================== */
.form-panel {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

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

.add-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(167, 139, 250, 0.1));
    color: #3b82f6;
    border: 2px dashed #60a5fa;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Experience & Education Items */
.experience-item,
.education-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ========================================
   Preview Panel
   ======================================== */
.preview-panel {
    position: sticky;
    top: 120px;
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-controls h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
}

.control-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
}

.zoom-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.zoom-controls button:hover {
    background: var(--primary-dark);
}

#zoom-level {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
}

.customize-controls {
    display: flex;
    gap: 0.5rem;
}

.customize-toggle {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.customize-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* Customization Panel */
.customization-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.customization-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.custom-control {
    margin-bottom: 1.5rem;
}

.custom-control label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-light);
    outline: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.slider-control span {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.color-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-control input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-control input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reset-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: var(--border-color);
}

.preview-wrapper {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: auto;
    max-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.resume-preview {
    background: white;
    transform-origin: top center;
    transition: transform 0.3s ease;
    width: fit-content;
}

/* Dynamic customization styles */
.resume-preview.customized {
    --custom-font-size: 11px;
    --custom-heading-size: 18px;
    --custom-primary-color: #2563eb;
    --custom-text-color: #1f2937;
}

.resume-preview.customized .resume {
    font-size: var(--custom-font-size);
    color: var(--custom-text-color);
}

.resume-preview.customized .resume h2 {
    font-size: var(--custom-heading-size);
    color: var(--custom-primary-color);
}

.resume-preview.customized .resume h3 {
    font-size: calc(var(--custom-font-size) + 2px);
}

/* Modern template customization */
.resume-preview.customized .modern .resume-header {
    background: linear-gradient(135deg, var(--custom-primary-color), var(--custom-primary-color));
    filter: brightness(0.9);
}

.resume-preview.customized .modern .resume-section h2 {
    color: var(--custom-primary-color);
    border-color: var(--custom-primary-color);
}

.resume-preview.customized .modern .skill-tag {
    background: color-mix(in srgb, var(--custom-primary-color) 20%, white);
    color: var(--custom-primary-color);
}

/* Classic template customization */
.resume-preview.customized .classic .resume-header {
    border-color: var(--custom-text-color);
}

.resume-preview.customized .classic .resume-section h2 {
    color: var(--custom-text-color);
    border-color: var(--custom-text-color);
}

/* Creative template customization */
.resume-preview.customized .creative .sidebar {
    background: linear-gradient(135deg, var(--custom-primary-color), var(--custom-primary-color));
    filter: brightness(0.85);
}

.resume-preview.customized .creative .resume-section h2 {
    color: var(--custom-primary-color);
    border-color: var(--custom-primary-color);
}

.resume-preview.customized .creative .item-date {
    color: var(--custom-primary-color);
}

/* ========================================
   Resume Templates Styles
   ======================================== */

/* Common Resume Styles */
.resume {
    width: 210mm;
    max-width: 210mm;
    min-height: 297mm;
    padding: 0;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

.resume h1 {
    font-family: 'Playfair Display', serif;
}

.resume h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.resume h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

/* Modern Template */
.resume.modern {
    font-family: 'Montserrat', sans-serif;
}

.modern .resume-header {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 3rem 2.5rem;
    text-align: center;
}

.modern .resume-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modern .job-title {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
}

.modern .contact-info {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.modern .resume-body {
    padding: 2.5rem;
}

.modern .resume-section {
    margin-bottom: 2.5rem;
}

.modern .resume-section h2 {
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.modern .experience-item,
.modern .education-item {
    margin-bottom: 1.5rem;
}

.modern .item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.modern .item-title {
    font-weight: 600;
    color: var(--text-dark);
}

.modern .item-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.modern .item-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.modern .item-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.modern .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modern .skill-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Classic Template */
.resume.classic {
    font-family: 'Merriweather', serif;
}

.classic .resume-header {
    padding: 2.5rem;
    border-bottom: 4px solid var(--text-dark);
    text-align: center;
}

.classic .resume-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.classic .job-title {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

.classic .contact-info {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.classic .resume-body {
    padding: 2.5rem;
}

.classic .resume-section {
    margin-bottom: 2.5rem;
}

.classic .resume-section h2 {
    color: var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.classic .experience-item,
.classic .education-item {
    margin-bottom: 1.5rem;
}

.classic .item-header {
    margin-bottom: 0.5rem;
}

.classic .item-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.classic .item-subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.2rem;
}

.classic .item-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.classic .item-description {
    color: var(--text-dark);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.classic .skills-list,
.classic .languages-list {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Creative Template */
.resume.creative {
    font-family: 'Work Sans', sans-serif;
    display: flex;
}

.creative .sidebar {
    width: 35%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    padding: 2.5rem 2rem;
}

.creative .main-content {
    flex: 1;
    padding: 2.5rem;
}

.creative .resume-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.creative .job-title {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.creative .sidebar-section {
    margin-bottom: 2rem;
}

.creative .sidebar-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.creative .contact-item {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.creative .skill-item,
.creative .language-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.creative .resume-section {
    margin-bottom: 2.5rem;
}

.creative .resume-section h2 {
    color: #8b5cf6;
    border-bottom: 3px solid #8b5cf6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.creative .experience-item,
.creative .education-item {
    margin-bottom: 1.5rem;
}

.creative .item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.creative .item-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.creative .item-subtitle {
    color: var(--text-light);
}

.creative .item-date {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 0.9rem;
}

.creative .item-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Minimal Template */
.resume.minimal {
    font-family: 'Work Sans', sans-serif;
}

.minimal .resume-header {
    padding: 3rem 2.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.minimal .resume-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.minimal .job-title {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

.minimal .contact-info {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.minimal .resume-body {
    padding: 2.5rem;
}

.minimal .resume-section {
    margin-bottom: 2.5rem;
}

.minimal .resume-section h2 {
    color: var(--text-dark);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.minimal .experience-item,
.minimal .education-item {
    margin-bottom: 2rem;
}

.minimal .item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.minimal .item-title {
    font-weight: 600;
    color: var(--text-dark);
}

.minimal .item-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.minimal .item-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.minimal .item-description {
    color: var(--text-dark);
    line-height: 1.7;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.minimal .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.minimal .skill-tag {
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

.minimal .languages-list {
    color: var(--text-dark);
    line-height: 1.8;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .editor-container {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: relative;
        top: 0;
    }

    .preview-wrapper {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .preview-wrapper {
        padding: 1rem;
    }
    
    .control-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
    }

    .site-header,
    .editor-controls,
    .form-panel,
    .preview-controls,
    .customization-panel {
        display: none !important;
    }

    .resume {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}
