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

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.header-left p {
    color: #64748b;
    font-size: 14px;
}

.header-right {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Theme Bar */
.theme-bar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 40px;
}

.theme-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.theme-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.theme-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Main Container */
.main-container {
    flex: 1;
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: calc(100vh - 140px);
}

/* Left Panel */
.left-panel {
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
}

.panel-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.panel-header p {
    color: #64748b;
    font-size: 14px;
}

.form-sections {
    padding: 24px;
}

.form-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.section-header i {
    color: #3b82f6;
    font-size: 16px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.add-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    color: #3b82f6;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: #e2e8f0;
}

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

.form-grid input:nth-child(1),
.form-grid input:nth-child(2) {
    grid-column: span 1;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.experience-item, .education-item, .project-item {
    background: #fafbfc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
}

.experience-item input, .education-item input, .project-item input,
.experience-item textarea, .project-item textarea {
    margin-bottom: 8px;
}

/* Right Panel */
.right-panel {
    background: #f8fafc;
    overflow-y: auto;
    padding: 24px;
}

.preview-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.resume-preview {
    /* A4 paper dimensions: 210mm x 297mm at 96 DPI */
    width: 794px; /* 210mm */
    min-height: 1123px; /* 297mm */
    max-width: 794px;
    background: white;
    font-size: 14px;
    line-height: 1.5;
    padding: 40px; /* ~14mm margins */
    box-sizing: border-box;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    
    /* Custom properties for theme customization */
    --header-color: #1e293b;
    --section-color: #3b82f6;
    --text-color: #374151;
    --accent-color: #10b981;
    --font-family: 'Inter', sans-serif;
    --header-size: 28px;
    --section-spacing: 24px;
    --margins: 40px;
    --border-style: none;
    --skill-style: rounded;
}

/* Apply custom properties to resume components */
.resume-preview {
    font-family: var(--font-family);
    color: var(--text-color);
    padding: var(--margins);
}

.resume-preview .resume-name {
    color: var(--header-color);
    font-size: var(--header-size);
    font-weight: 700;
}

.resume-preview .resume-title {
    color: var(--section-color);
    font-size: calc(var(--header-size) * 0.6);
}

.resume-preview .section-title {
    color: var(--section-color);
    border-bottom: var(--border-style);
    margin-bottom: calc(var(--section-spacing) * 0.5);
    padding-bottom: 4px;
}

.resume-preview .resume-section {
    margin-bottom: var(--section-spacing);
}

.resume-preview .skill-tag {
    background: var(--accent-color);
    color: white;
    border-radius: 4px;
}

.resume-preview .skill-tag.square {
    border-radius: 0;
}

.resume-preview .skill-tag.pill {
    border-radius: 20px;
}

.resume-preview .skill-tag.underline {
    background: transparent;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    border-radius: 0;
}

.resume-preview .resume-contact {
    color: var(--text-color);
    opacity: 0.8;
}

/* Customization Panel */
.customization-panel {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.customization-panel.active {
    max-height: 600px;
    padding: 20px 40px;
    overflow-y: auto;
}

.customization-content h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.customization-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.customization-section:last-of-type {
    border-bottom: none;
}

.customization-section h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

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

.customization-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customization-group label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.customization-group input,
.customization-group select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.customization-group input[type="color"] {
    width: 50px;
    height: 32px;
    padding: 2px;
    cursor: pointer;
}

.customization-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* Executive Theme - Sophisticated Split Layout */
.theme-executive {
    display: grid;
    grid-template-columns: 35% 65%;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.theme-executive .resume-sidebar {
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
    color: white !important;
    padding: 32px 24px;
}

.theme-executive .resume-main {
    padding: 32px;
    background: #fafafa;
}

.theme-executive .resume-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white !important;
}

.theme-executive .resume-title {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 24px;
    color: #94a3b8 !important;
}

.theme-executive .resume-contact {
    color: white !important;
}

.theme-executive .sidebar .section-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #60a5fa !important;
    border-bottom: 1px solid #374151;
    padding-bottom: 8px;
}

.theme-executive .sidebar * {
    color: white !important;
}

.theme-executive .sidebar .skill-tag {
    background: rgba(96, 165, 250, 0.2) !important;
    color: #60a5fa !important;
    border: 1px solid #60a5fa !important;
}

.theme-executive .main .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    border-bottom: 2px solid #1a202c;
    padding-bottom: 8px;
}

/* Corporate Theme - Modern Professional */
.theme-corporate {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: white;
}

.theme-corporate .resume-header {
    background: white;
    padding: 40px;
    border-bottom: 4px solid #1e40af;
    position: relative;
}

.theme-corporate .resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
}

.theme-corporate .resume-name {
    font-size: 32px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.theme-corporate .resume-title {
    font-size: 16px;
    color: #374151;
    margin-bottom: 16px;
}

.theme-corporate .resume-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.theme-corporate .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
}

.theme-corporate .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #1e40af, #3b82f6);
}

/* Modern Theme - Minimalist Luxury */
.theme-modern {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #ffffff;
}

.theme-modern .resume-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 50px 32px;
    position: relative;
    overflow: hidden;
}

.theme-modern .resume-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: rotate(15deg);
}

.theme-modern .resume-name {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.theme-modern .resume-title {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.theme-modern .resume-body {
    padding: 40px 32px;
}

.theme-modern .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 12px;
}

.theme-modern .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #0f172a;
}

/* Minimal Theme - Clean Elegance */
.theme-minimal {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background: white;
}

.theme-minimal .resume-header {
    background: white;
    color: #2c3e50;
    padding: 32px;
    border-bottom: 1px solid #e1e8ed;
}

.theme-minimal .resume-name {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 8px;
    color: #2c3e50;
}

.theme-minimal .resume-title {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 16px;
}

.theme-minimal .resume-body {
    padding: 32px;
}

.theme-minimal .section-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e1e8ed;
}

/* Creative Theme - Artistic Design */
.theme-creative {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    background: white;
}

.theme-creative .resume-header {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 40px 32px 60px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.theme-creative .resume-name {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.theme-creative .resume-title {
    font-size: 18px;
    margin-bottom: 16px;
    font-style: italic;
}

.theme-creative .resume-body {
    padding: 60px 32px 32px;
    margin-top: -30px;
    background: white;
}

.theme-creative .section-title {
    font-size: 22px;
    color: #ff6b6b;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    text-align: center;
}

.theme-creative .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
}

/* Tech Theme - Modern Gradient */
.theme-tech {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f8fafc;
}

.theme-tech .resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.theme-tech .resume-name {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theme-tech .resume-title {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.theme-tech .resume-body {
    padding: 32px;
    background: white;
    margin: 0 20px;
    margin-top: -20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.theme-tech .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.theme-tech .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Academic Theme - Traditional */
.theme-academic {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    background: white;
}

.theme-academic .resume-header {
    background: white;
    color: #8B4513;
    padding: 32px;
    text-align: center;
    border-bottom: 3px solid #8B4513;
}

.theme-academic .resume-name {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
}

.theme-academic .resume-title {
    font-size: 14px;
    margin-bottom: 16px;
    font-style: italic;
}

.theme-academic .resume-body {
    padding: 32px;
}

.theme-academic .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #8B4513;
    padding-bottom: 8px;
}

/* Banking Theme - Premium Financial */
.theme-banking {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f8fafc;
}

.theme-banking .resume-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    padding: 32px;
    position: relative;
    text-align: center;
}

.theme-banking .resume-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #1e3a8a;
}

.theme-banking .resume-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.theme-banking .resume-title {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.theme-banking .resume-body {
    padding: 50px 32px 32px;
    background: white;
    margin: 0 20px;
    margin-top: -25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.theme-banking .section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    padding: 12px 0;
}

.theme-banking .section-title::before,
.theme-banking .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e3a8a, transparent);
}

.theme-banking .section-title::before {
    left: -60px;
}

.theme-banking .section-title::after {
    right: -60px;
}

/* Legal Theme - Professional Authority */
.theme-legal {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background: white;
}

.theme-legal .resume-header {
    background: #1f2937;
    color: white;
    padding: 36px 32px;
    text-align: center;
}

.theme-legal .resume-name {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.theme-legal .resume-title {
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.theme-legal .resume-body {
    padding: 32px;
}

.theme-legal .section-title {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

/* Medical Theme - Healthcare Professional */
.theme-medical {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: white;
}

.theme-medical .resume-header {
    background: #059669;
    color: white;
    padding: 32px;
}

.theme-medical .resume-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.theme-medical .resume-title {
    font-size: 16px;
    margin-bottom: 16px;
}

.theme-medical .resume-body {
    padding: 32px;
}

.theme-medical .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
}

/* Modern Gradient Theme - Most Attractive */
.theme-modern-gradient {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    overflow: hidden;
}

.theme-modern-gradient .resume-header {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.theme-modern-gradient .resume-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    color: white;
}

.theme-modern-gradient .resume-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.theme-modern-gradient .resume-contact {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.theme-modern-gradient .resume-body {
    padding: 40px;
    background: rgba(255,255,255,0.98);
    color: #1a1a1a;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.theme-modern-gradient .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #4c51bf;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.theme-modern-gradient .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Creative Pro Theme */
.theme-creative-pro {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: white;
    position: relative;
    overflow: hidden;
}

.theme-creative-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.theme-creative-pro .resume-header {
    position: relative;
    z-index: 2;
    padding: 50px 40px;
    text-align: center;
    color: white;
}

.theme-creative-pro .resume-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theme-creative-pro .resume-title {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.theme-creative-pro .resume-body {
    position: relative;
    z-index: 2;
    background: white;
    padding: 40px;
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
}

.theme-creative-pro .section-title {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}

.theme-creative-pro .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 2px;
}

/* Tech Modern Theme */
.theme-tech-modern {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #0a0e27;
    color: white;
    border-radius: 12px;
    overflow: hidden;
}

.theme-tech-modern .resume-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 40px;
    position: relative;
    color: white !important;
}

.theme-tech-modern .resume-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #090979);
}

.theme-tech-modern .resume-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #00d4ff !important;
}

.theme-tech-modern .resume-title {
    font-size: 16px;
    margin-bottom: 20px;
    color: #a0a9c0 !important;
}

.theme-tech-modern .resume-contact {
    color: white !important;
}

.theme-tech-modern .resume-body {
    padding: 40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    color: #e2e8f0 !important;
}

.theme-tech-modern .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #00d4ff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.theme-tech-modern .experience-item,
.theme-tech-modern .education-item,
.theme-tech-modern .project-item {
    color: #e2e8f0 !important;
}

.theme-tech-modern .skill-tag {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
    border: 1px solid #00d4ff !important;
}

.theme-tech-modern .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 25px;
}

.theme-tech-modern .section-title::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 12px;
}

/* Minimal Luxury Theme */
.theme-minimal-luxury {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background: #fafafa;
    color: #2c3e50;
}

.theme-minimal-luxury .resume-header {
    background: white;
    padding: 60px 40px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.theme-minimal-luxury .resume-name {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: #2c3e50;
}

.theme-minimal-luxury .resume-title {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 24px;
    font-weight: 400;
}

.theme-minimal-luxury .resume-body {
    padding: 50px 40px;
    background: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.theme-minimal-luxury .section-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.theme-minimal-luxury .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: #2c3e50;
}

/* Designer Theme */
.theme-designer {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: white;
    position: relative;
}

.theme-designer .resume-header {
    background: #2c3e50;
    color: white !important;
    padding: 40px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    padding-bottom: 60px;
}

.theme-designer .resume-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white !important;
}

.theme-designer .resume-title {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white !important;
}

.theme-designer .resume-contact {
    color: white !important;
}

.theme-designer .resume-body {
    padding: 60px 40px 40px;
    margin-top: -40px;
}

.theme-designer .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.theme-designer .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 4px;
    height: 100%;
    background: #e74c3c;
    border-radius: 2px;
}

/* Startup Theme */
.theme-startup {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    overflow: hidden;
}

.theme-startup .resume-header {
    padding: 50px 40px;
    text-align: left;
    background: rgba(0,0,0,0.1);
    color: white !important;
}

.theme-startup .resume-name {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white !important;
}

.theme-startup .resume-title {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white !important;
}

.theme-startup .resume-contact {
    color: white !important;
}

.theme-startup .resume-body {
    padding: 40px;
    background: rgba(255,255,255,0.98);
    color: #333;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.theme-startup .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.theme-startup .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
.resume-section {
    margin-bottom: 20px;
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.resume-contact span {
    font-size: 12px;
    color: inherit;
}

.experience-entry, .education-entry, .project-entry {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.experience-entry:last-child, .education-entry:last-child, .project-entry:last-child {
    border-bottom: none;
}

.job-title, .degree, .project-name {
    font-weight: 600;
    color: inherit;
    margin-bottom: 4px;
    font-size: 14px;
}

.company, .institution, .project-tech {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.duration, .year {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 8px;
}

.description, .project-description {
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

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

.skill-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Finance Theme - Sophisticated Dark */
.theme-finance {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: white;
}

.theme-finance .resume-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 36px 32px;
}

.theme-finance .resume-name {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.theme-finance .resume-title {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.theme-finance .resume-body {
    padding: 32px;
}

.theme-finance .section-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #f1f5f9, transparent);
    padding: 10px 16px;
    border-left: 4px solid #0f172a;
}

/* Consultant Theme - Boxed Sections */
.theme-consultant {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: white;
}

.theme-consultant .resume-header {
    background: #2F4F4F;
    color: white;
    padding: 36px 32px;
}

.theme-consultant .resume-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.theme-consultant .resume-title {
    font-size: 16px;
    margin-bottom: 16px;
}

.theme-consultant .resume-body {
    padding: 32px;
}

.theme-consultant .resume-section {
    background: #f8f9fa;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border-left: 5px solid #2F4F4F;
}

.theme-consultant .section-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0;
    background: #2F4F4F;
    padding: 12px 16px;
}

.theme-consultant .resume-section > div:not(.section-title) {
    padding: 16px;
}

/* Profile Modern Theme - With Photo */
.theme-profile-modern {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.theme-profile-modern .resume-sidebar {
    background: #34495e;
    color: white;
    padding: 24px 20px;
    text-align: center;
}

.theme-profile-modern .resume-main {
    padding: 32px;
    background: white;
}

.theme-profile-modern .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 4px solid white;
    background: #5a6c7d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.theme-profile-modern .resume-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.theme-profile-modern .resume-title {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 20px;
    text-align: center;
}

/* Profile Classic Theme - Header Photo */
.theme-profile-classic {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: white;
}

.theme-profile-classic .resume-header {
    background: white;
    padding: 32px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: center;
    border-bottom: 2px solid #2c3e50;
}

.theme-profile-classic .profile-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #2c3e50;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 32px;
}

.theme-profile-classic .resume-name {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.theme-profile-classic .resume-title {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 12px;
}

.theme-profile-classic .resume-body {
    padding: 32px;
}

/* ATS Professional Theme - Clean & Simple */
.theme-ats-professional {
    font-family: 'Calibri', 'Helvetica', sans-serif;
    line-height: 1.2;
    background: white;
    color: #333333;
    max-width: 8.5in;
    margin: 0 auto;
    padding: 1in;
}

.theme-ats-professional .resume-name {
    font-size: 18pt;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 4pt;
    text-align: left;
}

.theme-ats-professional .resume-title {
    font-size: 12pt;
    color: #666666;
    margin-bottom: 12pt;
    font-style: italic;
}

.theme-ats-professional .resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16pt;
    margin-bottom: 16pt;
    font-size: 10pt;
    color: #333333;
}

.theme-ats-professional .section-title {
    font-size: 12pt;
    font-weight: bold;
    color: #2c5aa0;
    text-transform: uppercase;
    margin: 16pt 0 8pt 0;
    border-bottom: 1pt solid #2c5aa0;
    padding-bottom: 2pt;
}

.theme-ats-professional .resume-section {
    margin-bottom: 16pt;
}

.theme-ats-professional .experience-entry,
.theme-ats-professional .education-entry,
.theme-ats-professional .project-entry {
    margin-bottom: 12pt;
}

.theme-ats-professional .job-title,
.theme-ats-professional .degree,
.theme-ats-professional .project-name {
    font-size: 11pt;
    font-weight: bold;
    color: #333333;
    margin-bottom: 2pt;
}

.theme-ats-professional .company,
.theme-ats-professional .institution {
    font-size: 10pt;
    color: #666666;
    margin-bottom: 2pt;
}

.theme-ats-professional .duration,
.theme-ats-professional .year {
    font-size: 10pt;
    color: #666666;
    float: right;
    margin-bottom: 4pt;
}

.theme-ats-professional .description,
.theme-ats-professional .project-description {
    font-size: 10pt;
    color: #333333;
    line-height: 1.3;
    margin-left: 12pt;
}

.theme-ats-professional .skills-list {
    display: block;
    font-size: 10pt;
    color: #333333;
    line-height: 1.3;
}

.theme-ats-professional .skill-tag {
    display: inline;
    background: none;
    color: #333333;
    padding: 0;
    margin: 0;
    border: none;
    font-weight: normal;
}

.theme-ats-professional .skill-tag::after {
    content: ', ';
}

.theme-ats-professional .skill-tag:last-child::after {
    content: '';
}

/* ATS Two Column Theme */
.theme-ats-two-column {
    font-family: 'Calibri', 'Helvetica', sans-serif;
    line-height: 1.2;
    background: white;
    color: #333333;
    max-width: 8.5in;
    margin: 0 auto;
    padding: 1in;
    display: grid;
    grid-template-columns: 2.5in 1fr;
    gap: 0.5in;
}

.theme-ats-two-column .resume-header {
    grid-column: 1 / -1;
    margin-bottom: 16pt;
}

.theme-ats-two-column .resume-name {
    font-size: 18pt;
    font-weight: bold;
    color: #1a472a;
    margin-bottom: 4pt;
}

.theme-ats-two-column .resume-title {
    font-size: 12pt;
    color: #666666;
    margin-bottom: 8pt;
    font-style: italic;
}

.theme-ats-two-column .resume-contact {
    font-size: 10pt;
    color: #333333;
    line-height: 1.3;
}

.theme-ats-two-column .resume-contact span {
    display: block;
    margin-bottom: 2pt;
}

.theme-ats-two-column .left-column .section-title {
    font-size: 12pt;
    font-weight: bold;
    color: #1a472a;
    text-transform: uppercase;
    margin: 16pt 0 8pt 0;
    border-bottom: 1pt solid #1a472a;
    padding-bottom: 2pt;
}

.theme-ats-two-column .right-column .section-title {
    font-size: 12pt;
    font-weight: bold;
    color: #1a472a;
    text-transform: uppercase;
    margin: 16pt 0 8pt 0;
    border-bottom: 1pt solid #1a472a;
    padding-bottom: 2pt;
}

/* ATS Executive Theme */
.theme-ats-executive {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.25;
    background: white;
    color: #333333;
    max-width: 8.5in;
    margin: 0 auto;
    padding: 1in;
}

.theme-ats-executive .resume-name {
    font-size: 18pt;
    font-weight: bold;
    color: #8b0000;
    margin-bottom: 4pt;
    text-align: center;
}

.theme-ats-executive .resume-title {
    font-size: 12pt;
    color: #666666;
    margin-bottom: 12pt;
    text-align: center;
    font-style: italic;
}

.theme-ats-executive .resume-contact {
    text-align: center;
    font-size: 10pt;
    color: #333333;
    margin-bottom: 16pt;
}

.theme-ats-executive .section-title {
    font-size: 14pt;
    font-weight: bold;
    color: #8b0000;
    text-transform: uppercase;
    margin: 16pt 0 8pt 0;
    text-align: center;
    border-bottom: 2pt solid #8b0000;
    padding-bottom: 4pt;
}

/* ATS Modern Theme */
.theme-ats-modern {
    font-family: 'Lato', 'Helvetica', sans-serif;
    line-height: 1.2;
    background: white;
    color: #333333;
    max-width: 8.5in;
    margin: 0 auto;
    padding: 1in;
}

.theme-ats-modern .resume-name {
    font-size: 16pt;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4pt;
    letter-spacing: 1pt;
}

.theme-ats-modern .resume-title {
    font-size: 11pt;
    color: #666666;
    margin-bottom: 12pt;
    text-transform: uppercase;
    letter-spacing: 0.5pt;
}

.theme-ats-modern .section-title {
    font-size: 12pt;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    margin: 16pt 0 8pt 0;
    letter-spacing: 1pt;
    position: relative;
}

.theme-ats-modern .section-title::after {
    content: '';
    position: absolute;
    bottom: -2pt;
    left: 0;
    width: 30pt;
    height: 1pt;
    background: #2c3e50;
}

/* ATS Clean Theme */
.theme-ats-clean {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.15;
    background: white;
    color: #333333;
    max-width: 8.5in;
    margin: 0 auto;
    padding: 1in;
}

.theme-ats-clean .resume-name {
    font-size: 17pt;
    font-weight: bold;
    color: #333333;
    margin-bottom: 4pt;
}

.theme-ats-clean .resume-title {
    font-size: 11pt;
    color: #666666;
    margin-bottom: 12pt;
}

.theme-ats-clean .section-title {
    font-size: 12pt;
    font-weight: bold;
    color: #333333;
    text-transform: uppercase;
    margin: 16pt 0 8pt 0;
    border-bottom: 1pt solid #cccccc;
    padding-bottom: 2pt;
}

/* Common ATS Styles */
.theme-ats-professional .resume-contact span,
.theme-ats-executive .resume-contact span,
.theme-ats-modern .resume-contact span,
.theme-ats-clean .resume-contact span {
    font-size: 10pt;
    color: #333333;
}

.theme-ats-professional .resume-contact span i,
.theme-ats-executive .resume-contact span i,
.theme-ats-modern .resume-contact span i,
.theme-ats-clean .resume-contact span i {
    display: none; /* Hide icons for ATS compatibility */
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .theme-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-executive {
        grid-template-columns: 1fr;
    }
}

/* AI Tools Grid */
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ai-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
}

.ai-tool-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.ai-tool-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.ai-tool-item i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #6b7280;
}

.ai-tool-item.selected i {
    color: #1d4ed8;
}

.ai-tool-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* AI Tool Tags in Resume */
.skill-tag.ai-tool {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Source Protection */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
