/* Resume Builder Styles */

/* CSS Custom Properties */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Base Styles */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Force body to start at top */
body {
    top: 0 !important;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-anchor: none;
}

/* Dashboard container styling */
.dashboard-container {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Ensure no extra space at top */
* {
    margin-block-start: 0;
    margin-block-end: 0;
}

*:first-child {
    margin-top: 0 !important;
}

.main-content {
    padding: 0;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--gray-50);
    position: relative;
    top: 0;
}

/* Main content is properly positioned for sidebar */

.main-header {
    background: var(--white);
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    margin-top: 0;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.header-left h1 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--gray-900);
    margin: 0;
}

.header-left p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 1s ease-out 0.6s both;
}

.resume-preview-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    width: 300px;
    height: 400px;
    position: relative;
    transform: rotate(5deg);
    transition: var(--transition-normal);
}

.resume-preview-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.resume-preview-header {
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.resume-preview-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resume-preview-line {
    height: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    opacity: 0.7;
}

.resume-preview-line.long {
    width: 100%;
}

.resume-preview-line.medium {
    width: 75%;
}

.resume-preview-line.short {
    width: 50%;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
    border: 2px solid var(--warning-color);
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.features-section,
.templates-section,
.how-it-works-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-100);
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Template Filters */
.template-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.template-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--gray-100);
    animation: fadeInScale 0.6s ease-out;
}

.template-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.template-preview {
    height: 300px;
    background: var(--white);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.template-preview-wrapper {
    transform: scale(0.35);
    transform-origin: top left;
    width: 285.71%; /* 100% / 0.35 = 285.71% */
    height: 285.71%;
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    pointer-events: none;
    padding: 20px;
    box-sizing: border-box;
}

.template-preview-wrapper .header-modern,
.template-preview-wrapper .resume-section,
.template-preview-wrapper .quote-box,
.template-preview-wrapper .section-divider {
    margin-bottom: 15px;
}

.template-preview-wrapper .name-modern {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: bold;
}

.template-preview-wrapper .title-modern {
    font-size: 16px;
    margin-bottom: 10px;
}

.template-preview-wrapper .contact-modern {
    font-size: 12px;
    gap: 10px;
}

.template-preview-wrapper .resume-section-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.template-preview-wrapper .job-title-modern {
    font-size: 16px;
    font-weight: 600;
}

.template-preview-wrapper .company-modern {
    font-size: 14px;
}

.template-preview-wrapper .resume-description {
    font-size: 12px;
    line-height: 1.4;
}

.template-preview-wrapper .skill-tag {
    font-size: 11px;
    padding: 4px 8px;
    margin: 2px;
}

.template-preview-wrapper .resume-icon,
.template-preview-wrapper .section-icon {
    width: 16px;
    height: 16px;
}

.template-preview-wrapper svg {
    width: 16px;
    height: 16px;
}

.template-preview-wrapper .sidebar-modern {
    width: 30%;
    padding: 15px;
}

.template-preview-wrapper .resume-main {
    width: 70%;
    padding: 15px;
}

.template-preview-wrapper .timeline-container {
    position: relative;
}

.template-preview-wrapper .timeline-line {
    width: 3px;
    left: 10px;
}

.template-preview-wrapper .timeline-dot {
    width: 12px;
    height: 12px;
    left: 6px;
}

.template-preview-wrapper .experience-card {
    margin-left: 25px;
    margin-bottom: 15px;
    padding: 12px;
}

.template-preview-wrapper .date-badge {
    font-size: 10px;
    padding: 4px 6px;
}

/* Additional styles for different template layouts in preview */
.template-preview-wrapper .creative-layout {
    display: flex;
    gap: 8px;
}

.template-preview-wrapper .executive-header,
.template-preview-wrapper .corporate-header,
.template-preview-wrapper .startup-header,
.template-preview-wrapper .academic-header,
.template-preview-wrapper .healthcare-header,
.template-preview-wrapper .finance-header,
.template-preview-wrapper .agency-header,
.template-preview-wrapper .legal-header,
.template-preview-wrapper .engineering-header,
.template-preview-wrapper .sales-header,
.template-preview-wrapper .consulting-header,
.template-preview-wrapper .nonprofit-header,
.template-preview-wrapper .media-header,
.template-preview-wrapper .retail-header,
.template-preview-wrapper .global-header {
    padding: 20px;
    margin-bottom: 15px;
}

.template-preview-wrapper .executive-name,
.template-preview-wrapper .corporate-name,
.template-preview-wrapper .startup-name,
.template-preview-wrapper .academic-name,
.template-preview-wrapper .healthcare-name,
.template-preview-wrapper .finance-name,
.template-preview-wrapper .agency-name,
.template-preview-wrapper .legal-name,
.template-preview-wrapper .engineering-name,
.template-preview-wrapper .sales-name,
.template-preview-wrapper .consulting-name,
.template-preview-wrapper .nonprofit-name,
.template-preview-wrapper .media-name,
.template-preview-wrapper .retail-name,
.template-preview-wrapper .global-name {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

.template-preview-wrapper .executive-title,
.template-preview-wrapper .corporate-title,
.template-preview-wrapper .startup-tagline,
.template-preview-wrapper .academic-title,
.template-preview-wrapper .healthcare-title,
.template-preview-wrapper .finance-title,
.template-preview-wrapper .agency-tagline,
.template-preview-wrapper .legal-bar-info,
.template-preview-wrapper .engineering-role,
.template-preview-wrapper .sales-tagline,
.template-preview-wrapper .consulting-expertise,
.template-preview-wrapper .nonprofit-mission,
.template-preview-wrapper .media-tagline,
.template-preview-wrapper .retail-tagline,
.template-preview-wrapper .global-tagline {
    font-size: 12px;
    margin-bottom: 4px;
}

.template-preview-wrapper .minimal-header {
    padding: 12px;
    text-align: center;
}

.template-preview-wrapper .minimal-name {
    font-size: 22px;
    margin-bottom: 4px;
}

.template-preview-wrapper .minimal-divider {
    width: 50px;
    height: 2px;
    margin: 6px auto;
}

.template-preview-wrapper .tech-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    margin-bottom: 8px;
}

.template-preview-wrapper .tech-name {
    font-size: 20px;
    font-family: 'Courier New', monospace;
}

.template-preview-wrapper .tech-tagline {
    font-size: 12px;
    opacity: 0.9;
}

.template-preview-wrapper .portfolio-header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 12px;
    text-align: center;
}

.template-preview-wrapper .portfolio-name {
    font-size: 20px;
    margin-bottom: 4px;
}

.template-preview-wrapper .portfolio-tagline {
    font-size: 12px;
    opacity: 0.9;
}

.template-preview-wrapper .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.template-preview-wrapper .portfolio-box {
    height: 20px;
    background: #f0f0f0;
    border-radius: 2px;
}

/* Ensure all elements fit properly in preview */
.template-preview-wrapper * {
    box-sizing: border-box;
}

.template-preview-wrapper hr {
    margin: 6px 0;
    border: none;
    height: 1px;
    background: #e0e0e0;
}

.template-preview-wrapper ul {
    margin: 4px 0;
    padding-left: 16px;
}

.template-preview-wrapper li {
    font-size: 10px;
    margin-bottom: 2px;
}

.template-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.template-card:hover .template-preview::before {
    transform: translateX(100%);
}

/* Hover effect for template cards */
.template-card:hover .template-preview-wrapper {
    transform: scale(0.38);
    transition: transform 0.3s ease;
}

.template-info {
    padding: 1.5rem;
}

.template-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.template-description {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.template-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-category.modern {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.template-category.creative {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.template-category.professional {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.template-category.minimalist {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-600);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    border-radius: 1rem;
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
    height: 95vh;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    flex-wrap: nowrap;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Legacy modal-close styles - now using btn-outline-secondary */
.modal-close {
    /* Styles moved to btn-outline-secondary */
}

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

/* Builder Layout */
.builder-layout {
    display: grid;
    grid-template-columns: 250px 1fr 400px;
    height: 100%;
    overflow: hidden;
}

.builder-layout.preview-hidden {
    grid-template-columns: 250px 1fr;
}

.builder-sidebar {
    width: 250px;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    padding: 2rem 1rem;
}

.builder-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.builder-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray-600);
}

.builder-step:hover {
    background: var(--white);
}

.builder-step.active {
    background: var(--primary-color);
    color: var(--white);
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.builder-step.active .step-indicator {
    background: var(--white);
    color: var(--primary-color);
}

.builder-content {
    padding: 2rem;
    overflow-y: auto;
    background: var(--gray-50);
}

.builder-step-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.builder-step-content.active {
    display: block;
}

.step-content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition-fast);
}

.color-option.active {
    border-color: var(--gray-400);
    transform: scale(1.1);
}

.color-option[data-color="blue"] {
    background: var(--primary-color);
}

.color-option[data-color="green"] {
    background: var(--success-color);
}

.color-option[data-color="purple"] {
    background: #8b5cf6;
}

.color-option[data-color="orange"] {
    background: var(--warning-color);
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1100;
    transform: translateX(100%);
    transition: var(--transition-normal);
    border-left: 4px solid var(--success-color);
    opacity: 0;
    visibility: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

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

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

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

.notification-icon {
    font-size: 1.25rem;
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: var(--error-color);
}

.notification.warning .notification-icon {
    color: var(--warning-color);
}

.notification-message {
    font-weight: 500;
    color: var(--gray-900);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .sidebar ~ .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .main-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .template-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .templates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .modal-container {
        width: 95vw;
        height: 95vh;
        margin: 1rem;
    }
    
        .builder-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .builder-preview {
        display: none;
    }
    
    /* Mobile adjustments for accurate preview */
    .preview-content {
        padding: 1rem;
    }
    
    .resume-preview {
        transform: scale(0.25);
        margin-bottom: -700px;
    }
    
    .resume-preview[data-zoom="50"] {
        transform: scale(0.18);
        margin-bottom: -750px;
    }
    
    .resume-preview[data-zoom="75"] {
        transform: scale(0.22);
        margin-bottom: -720px;
    }
    
    .resume-preview[data-zoom="100"] {
        transform: scale(0.25);
        margin-bottom: -700px;
    }
    
    .resume-preview[data-zoom="125"] {
        transform: scale(0.32);
        margin-bottom: -650px;
    }
    
    .resume-preview[data-zoom="150"] {
        transform: scale(0.4);
        margin-bottom: -580px;
    }
    
    .resume-preview[data-zoom="200"] {
        transform: scale(0.5);
        margin-bottom: -450px;
    }

    .builder-sidebar {
        order: -1;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        border-right: none;
        padding: 1rem;
        width: 100%;
    }

    .modal-header-actions {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    /* Close button now uses standard btn styles */
    
    .modal-header-actions .btn-sm {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .builder-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .builder-step {
        flex-shrink: 0;
        min-width: 120px;
        padding: 0.75rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1f2937;
        --gray-100: #374151;
        --gray-200: #4b5563;
        --gray-300: #6b7280;
        --gray-400: #9ca3af;
        --gray-500: #d1d5db;
        --gray-600: #e5e7eb;
        --gray-700: #f3f4f6;
        --gray-800: #f9fafb;
        --gray-900: #ffffff;
        --white: #1f2937;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Indicators */
.btn:focus-visible,
.filter-btn:focus-visible,
.template-card:focus-visible,
.builder-step:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Print Styles */
@media print {
    .main-header,
    .hero-section,
    .features-section,
    .how-it-works-section,
    .modal-overlay {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
}

/* Live Preview Panel */
.builder-preview {
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.preview-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
}

.preview-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.preview-zoom {
    font-size: 0.875rem;
    color: var(--gray-600);
    min-width: 40px;
    text-align: center;
}

.preview-content {
    flex: 1;
    overflow: auto;
    padding: 2rem;
    background: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Resume Preview Styles - Accurate A4 Sizing */
.resume-preview {
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: 8px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    transform-origin: top center;
    transition: transform 0.3s ease;
    
    /* A4 dimensions: 210mm x 297mm = 8.27" x 11.69" */
    /* At 96 DPI: 794px x 1123px */
    width: 794px;
    min-height: 1123px;
    padding: 60px; /* ~20mm padding */
    box-sizing: border-box;
    
    /* Scale down to fit in preview */
    transform: scale(0.4);
    margin-bottom: -450px; /* Compensate for scale */
}

/* Zoom levels */
.resume-preview[data-zoom="50"] {
    transform: scale(0.25);
    margin-bottom: -630px;
}

.resume-preview[data-zoom="75"] {
    transform: scale(0.32);
    margin-bottom: -540px;
}

.resume-preview[data-zoom="100"] {
    transform: scale(0.4);
    margin-bottom: -450px;
}

.resume-preview[data-zoom="125"] {
    transform: scale(0.5);
    margin-bottom: -340px;
}

.resume-preview[data-zoom="150"] {
    transform: scale(0.6);
    margin-bottom: -225px;
}

.resume-preview[data-zoom="200"] {
    transform: scale(0.8);
    margin-bottom: -90px;
}



/* Resume Typography - Accurate for A4 page */
.resume-preview {
    font-size: 11pt; /* Standard resume font size */
    line-height: 1.4;
}

.resume-header {
    text-align: center;
    margin-bottom: 24pt;
    padding-bottom: 12pt;
    border-bottom: 1.5pt solid var(--primary-color);
}

.resume-name {
    font-size: 18pt;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6pt;
    line-height: 1.2;
}

.resume-contact {
    display: flex;
    justify-content: center;
    gap: 16pt;
    flex-wrap: wrap;
    color: var(--gray-600);
    font-size: 10pt;
}

.resume-section {
    margin-bottom: 18pt;
}

.resume-section-title {
    font-size: 13pt;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12pt;
    text-transform: uppercase;
    letter-spacing: 0.5pt;
    padding-bottom: 6pt;
    border-bottom: 2pt solid #3498db;
}

.resume-summary {
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 3pt;
}

.resume-experience-item,
.resume-education-item {
    margin-bottom: 12pt;
    padding-bottom: 12pt;
    border-bottom: 0.5pt solid var(--gray-200);
}

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

.resume-job-title,
.resume-degree {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 3pt;
    font-size: 11pt;
}

.resume-company,
.resume-school {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 3pt;
    font-size: 10pt;
}

.resume-dates {
    color: var(--gray-600);
    font-size: 9pt;
    margin-bottom: 6pt;
}

.resume-description {
    color: var(--gray-700);
    line-height: 1.4;
    font-size: 10pt;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6pt;
}

.resume-skill {
    background: var(--primary-color);
    color: var(--white);
    padding: 3pt 9pt;
    border-radius: 12pt;
    font-size: 9pt;
    font-weight: 500;
}

/* Color Scheme Variations */
.resume-preview.color-green {
    --primary-color: var(--success-color);
}

.resume-preview.color-purple {
    --primary-color: var(--secondary-color);
}

.resume-preview.color-orange {
    --primary-color: var(--warning-color);
}

/* Enhanced Template Cards */
.template-card {
    position: relative;
    overflow: hidden;
}

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

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.template-overlay .preview-btn {
    background: var(--white);
    color: var(--gray-900);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.template-overlay .preview-btn:hover {
    background: var(--gray-100);
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.feature-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Template Preview Styles */
.template-preview-content {
    padding: 1rem;
    background: var(--white);
    height: 100%;
    font-size: 10px;
    overflow: hidden;
}

/* Modern Template Preview */
.template-modern-professional .preview-header.modern {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.template-modern-professional .preview-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.template-modern-professional .preview-contact {
    font-size: 8px;
    color: var(--gray-600);
}

/* Creative Template Preview */
.template-creative-design {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
}

.template-creative-design .preview-header.creative {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
}

.template-creative-design .creative-name {
    font-weight: bold;
    font-size: 12px;
}

.template-creative-design .preview-skills span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
    font-size: 8px;
    margin-right: 0.25rem;
}

/* Executive Template Preview */
.template-executive-style .preview-header.executive {
    text-align: center;
    border-bottom: 3px solid var(--gray-800);
    padding-bottom: 0.5rem;
}

.template-executive-style .exec-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.template-executive-style .preview-title {
    font-size: 9px;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

/* Minimalist Template Preview */
.template-clean-minimalist .preview-header.minimal {
    text-align: center;
}

.template-clean-minimalist .minimal-name {
    font-weight: 300;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.template-clean-minimalist .preview-line {
    height: 1px;
    background: var(--gray-300);
    margin: 0.5rem 0;
}

.template-clean-minimalist .minimal-title {
    font-weight: 400;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tech Template Preview */
.template-tech-modern .preview-header.tech {
    background: var(--gray-900);
    color: var(--success-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.template-tech-modern .tech-name {
    font-weight: bold;
    font-size: 12px;
}

.template-tech-modern .tech-title {
    color: var(--success-color);
    font-family: 'Courier New', monospace;
}

.template-tech-modern .preview-code {
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 8px;
}

/* Portfolio Template Preview */
.template-creative-portfolio .preview-header.portfolio {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.template-creative-portfolio .portfolio-name {
    font-weight: bold;
    font-size: 12px;
}

.template-creative-portfolio .preview-tagline {
    font-size: 8px;
    opacity: 0.9;
}

.template-creative-portfolio .preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.template-creative-portfolio .preview-box {
    aspect-ratio: 1;
    background: var(--gray-200);
    border-radius: 2px;
}

/* Template-Specific Resume Styles */

/* Creative Layout */
.creative-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    height: 100%;
}

.resume-sidebar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.creative-header {
    text-align: center;
    margin-bottom: 2rem;
}

.creative-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.creative-contact div {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.creative-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creative-skills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.creative-skill {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.resume-main {
    padding: 2rem 1.5rem;
}

.creative-main-title {
    color: #f5576c;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Executive Layout */
.executive-header {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.executive-name-block {
    flex: 1;
}

.executive-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.executive-title {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.executive-contact {
    text-align: right;
}

.executive-contact div {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.executive-section {
    margin: 2rem 0;
}

.executive-title {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gray-800);
    padding-bottom: 0.5rem;
}

.executive-job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.executive-job {
    font-size: 1.1rem;
    font-weight: 600;
}

.executive-dates {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.executive-company {
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.executive-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.executive-skill {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

/* Minimalist Layout */
.minimal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.minimal-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.minimal-divider {
    height: 1px;
    background: var(--gray-300);
    margin: 1rem auto;
    width: 100px;
}

.minimal-contact {
    color: var(--gray-600);
    font-size: 1rem;
}

.minimal-section {
    margin: 2.5rem 0;
}

.minimal-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.minimal-job-line, .minimal-edu-line {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.minimal-separator {
    color: var(--gray-400);
    font-weight: 300;
}

.minimal-job, .minimal-degree {
    font-weight: 500;
}

.minimal-company, .minimal-school {
    color: var(--gray-600);
}

.minimal-dates {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-left: auto;
}

.minimal-desc {
    margin-left: 2rem;
    margin-top: 0.5rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Tech Layout */
.tech-header {
    background: var(--gray-900);
    color: var(--success-color);
    padding: 2rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin-bottom: 2rem;
}

.tech-name-block {
    margin-bottom: 1rem;
}

.tech-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tech-tagline {
    color: var(--gray-400);
    font-size: 1rem;
}

.tech-contact-item {
    margin-bottom: 0.5rem;
}

.tech-label {
    color: var(--primary-color);
    font-weight: bold;
}

.tech-section {
    margin: 2rem 0;
}

.tech-title {
    color: var(--success-color);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tech-code-block {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--success-color);
}

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

.tech-skill {
    background: var(--gray-900);
    color: var(--success-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.tech-job-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-at {
    color: var(--primary-color);
    font-weight: bold;
}

.tech-dates {
    color: var(--gray-600);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Portfolio Layout */
.portfolio-header {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.portfolio-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.portfolio-title {
    color: #764ba2;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.portfolio-job {
    font-weight: 600;
    font-size: 1.1rem;
}

.portfolio-dates {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.portfolio-skills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-skill {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

/* Download Section */
.download-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.download-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.download-info {
    margin-bottom: 1.5rem;
}

.info-box {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-box i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-text {
    margin-left: 0.5rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: left;
    justify-content: flex-start;
    min-height: 60px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.download-btn i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.btn-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
}

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

/* Fullscreen Preview Modal */
.fullscreen-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
}

.fullscreen-preview.active {
    display: flex;
}

.fullscreen-content {
    background: var(--white);
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.fullscreen-header {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.fullscreen-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.fullscreen-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.fullscreen-resume {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Loading States for Downloads */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading .btn-content,
.btn.loading i {
    opacity: 0;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Corporate Elite Template Styles */
.corporate-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px 8px 0 0;
    border-bottom: 4px solid #fbbf24;
}

.corporate-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: white;
}

.corporate-title {
    font-size: 1.2rem;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.corporate-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.corporate-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.corporate-section-title {
    color: #1f2937;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #fbbf24;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.corporate-experience {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.corporate-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.corporate-job-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1f2937;
}

.corporate-company {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.corporate-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.corporate-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.corporate-skill {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-left: 4px solid #fbbf24;
    font-weight: 600;
    color: #1f2937;
}

/* Startup Dynamic Template Styles */
.startup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.startup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.startup-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.startup-tagline {
    font-size: 1.1rem;
    color: #e0e7ff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.startup-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.startup-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.startup-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.startup-job-title {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.startup-growth-indicator {
    font-size: 1.5rem;
}

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

.startup-skill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Academic Scholar Template Styles */
.academic-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 3px solid #1f2937;
    margin-bottom: 2rem;
    background: #f8fafc;
}

.academic-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.academic-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.academic-title {
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.academic-degree-line,
.academic-position-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.academic-degree,
.academic-position {
    font-weight: 600;
    color: #374151;
}

.academic-school,
.academic-institution {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.academic-skills {
    column-count: 2;
    column-gap: 2rem;
}

.academic-skill {
    margin-bottom: 0.3rem;
    break-inside: avoid;
}

/* Healthcare Professional Template Styles */
.healthcare-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.healthcare-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.healthcare-credentials {
    font-size: 1.1rem;
    color: #bfdbfe;
    margin-bottom: 1rem;
    font-weight: 500;
}

.healthcare-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.healthcare-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.healthcare-title {
    color: #0284c7;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.healthcare-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.healthcare-position {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.healthcare-facility {
    color: #0284c7;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.healthcare-credentials-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.healthcare-skills {
    display: grid;
    gap: 0.5rem;
}

.healthcare-skill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Finance & Banking Template Styles */
.finance-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid #d4af37;
}

.finance-name {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    color: white;
}

.finance-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #d4af37;
    font-weight: 600;
}

.finance-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
}

.finance-section-title {
    color: #1f2937;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.finance-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.finance-job-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
}

.finance-company {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.finance-bottom-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.finance-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.finance-skill {
    background: #f9fafb;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

/* Creative Agency Template Styles */
.agency-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.agency-name {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.agency-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
}

.agency-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.agency-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agency-title {
    color: #f5576c;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agency-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.agency-job-title {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.agency-impact-badge {
    font-size: 1.5rem;
}

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

.agency-skill {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Legal Attorney Template Styles */
.legal-header {
    background: #1f2937;
    color: white;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #d4af37;
}

.legal-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Times New Roman', serif;
    color: white;
}

.legal-bar-info {
    font-size: 1rem;
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.legal-title {
    color: #1f2937;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 0.5rem;
}

.legal-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.legal-position {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.legal-firm {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.legal-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.legal-skills {
    display: grid;
    gap: 0.3rem;
}

.legal-skill {
    padding: 0.3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Engineering & Tech Template Styles */
.engineering-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    border: 2px solid #10b981;
}

.engineering-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #34d399;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.engineering-role {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #a7f3d0;
    font-weight: 500;
}

.engineering-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.engineering-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.engineering-title {
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

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

.engineering-skill {
    background: #1f2937;
    color: #10b981;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid #374151;
}

.engineering-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.engineering-job-title {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.engineering-company-badge {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.engineering-dates {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Sales & Marketing Template Styles */
.sales-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.sales-name {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.sales-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
}

.sales-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sales-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sales-title {
    color: #059669;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sales-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sales-job-title {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.sales-achievement-badge {
    font-size: 1.5rem;
}

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

.sales-skill {
    background: #059669;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Consulting & Strategy Template Styles */
.consulting-header {
    background: #1e40af;
    color: white;
    padding: 2rem;
    text-align: center;
}

.consulting-name {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.consulting-expertise {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.consulting-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
}

.consulting-title {
    color: #1e40af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.consulting-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.consulting-position {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.consulting-firm {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.consulting-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.consulting-skills {
    display: grid;
    gap: 0.5rem;
}

.consulting-skill {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 500;
}

/* Nonprofit & Social Template Styles */
.nonprofit-header {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.nonprofit-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nonprofit-mission {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-style: italic;
}

.nonprofit-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nonprofit-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nonprofit-title {
    color: #7c3aed;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nonprofit-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.nonprofit-position {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.nonprofit-impact-icon {
    font-size: 1.3rem;
}

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

.nonprofit-skill {
    background: #7c3aed;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Media & Journalism Template Styles */
.media-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.media-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.media-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-style: italic;
}

.media-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.media-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-title {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.media-position {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.media-publication-badge {
    font-size: 1.3rem;
}

.media-publication {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-style: italic;
}

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

.media-skill {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #fecaca;
}

/* Retail & Hospitality Template Styles */
.retail-header {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.retail-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.retail-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
}

.retail-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.retail-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.retail-title {
    color: #ea580c;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retail-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.retail-position {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.retail-service-star {
    font-size: 1.3rem;
    color: #fbbf24;
}

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

.retail-skill {
    background: #ea580c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* International Global Template Styles */
.global-header {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.global-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.global-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
}

.global-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.global-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.global-title {
    color: #0891b2;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.global-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.global-position {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.global-world-icon {
    font-size: 1.3rem;
}

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

.global-skill {
    background: #0891b2;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Template Preview Styles for New Templates */
.template-corporate-elite .preview-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem;
    text-align: center;
}

.template-startup-dynamic .preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
}

.template-academic-scholar .preview-header {
    border-bottom: 2px solid #374151;
    padding: 1rem;
    text-align: center;
}

.template-healthcare-professional .preview-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 1rem;
}

.template-finance-banking .preview-header {
    background: #1f2937;
    color: white;
    padding: 1rem;
    text-align: center;
}

.template-creative-agency .preview-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1rem;
}

.template-legal-attorney .preview-header {
    background: #374151;
    color: white;
    padding: 1rem;
    text-align: center;
}

.template-engineering-tech .preview-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 1rem;
    font-family: 'Courier New', monospace;
}

.template-sales-marketing .preview-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1rem;
}

.template-consulting-strategy .preview-header {
    background: #1e40af;
    color: white;
    padding: 1rem;
    text-align: center;
}

.template-nonprofit-social .preview-header {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    padding: 1rem;
}

.template-media-journalism .preview-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 1rem;
}

.template-retail-hospitality .preview-header {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    padding: 1rem;
}

.template-international-global .preview-header {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    padding: 1rem;
}

/* Template Preview Modal Styles */
.template-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.template-preview-modal.active {
    opacity: 1;
    visibility: visible;
}

.template-preview-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    height: 95%;
    max-height: 1100px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.template-preview-modal.active .template-preview-content {
    transform: scale(1);
}

.template-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.template-preview-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.template-preview-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.template-preview-close {
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.template-preview-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.template-preview-body {
    flex: 1;
    overflow: hidden;
    padding: 1rem;
    background: #f8fafc;
}

.template-preview-resume {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive adjustments for template preview modal */
@media (max-width: 768px) {
    .template-preview-content {
        width: 98%;
        height: 98%;
        margin: 0.5rem;
    }
    
    .template-preview-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .template-preview-actions {
        width: 100%;
        justify-content: center;
    }
    
    .template-preview-body {
        padding: 1rem;
    }
    
    .template-preview-resume {
        padding: 1.5rem;
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Add modern visual elements and dynamics to CV templates */

/* Progress Bars for Skills */
.skill-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}

/* Circular Progress Indicators */
.circular-progress {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#667eea 0deg, #764ba2 var(--progress, 0deg), #e0e0e0 var(--progress, 0deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0.5rem;
}

.circular-progress::before {
    content: '';
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.circular-progress span {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

/* Timeline Elements */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.8rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Infographic Elements */
.info-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    margin: 0.5rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.info-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    line-height: 1;
}

.info-stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Achievement Badges */
.achievement-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Enhanced Icons */
.resume-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
    fill: currentColor;
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    fill: #667eea;
}

/* Modern Card Elements - Professional Canva Style */
.experience-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #3498db;
}

.experience-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-title-modern {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.company-modern {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    margin: 0.25rem 0;
}

.date-badge {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Visual Separators */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, transparent 100%);
    margin: 2rem 0;
    border: none;
}

.dot-separator {
    text-align: center;
    margin: 1.5rem 0;
}

.dot-separator::before {
    content: '• • •';
    color: #667eea;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
}

/* Skill Tags - Professional Canva Style */
.skill-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.skill-tag:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Modern Header Styles */
.header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.name-modern {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-modern {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.contact-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.contact-item-modern {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Sidebar Enhancements */
.sidebar-modern {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

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

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Quote Boxes */
.quote-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-size: 3rem;
    color: #667eea;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
    opacity: 0.3;
}

/* Language Proficiency Bars */
.language-item {
    margin-bottom: 1rem;
}

.language-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.language-level {
    font-size: 0.85rem;
    color: #666;
}

.language-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.8s ease-in-out;
}

/* Modern Lists */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.modern-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Grid for Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.skill-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Enhanced Template Specific Styles - Professional Canva Style */

/* Modern Professional - Clean and Sophisticated */
.template-modern-professional .header-modern {
    background: #2c3e50;
    padding: 2.5rem 2rem;
    text-align: left;
    position: relative;
    border-left: 4px solid #3498db;
}

.template-modern-professional .name-modern {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    font-family: 'Inter', sans-serif;
}

.template-modern-professional .title-modern {
    font-size: 1.1rem;
    color: #bdc3c7;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: none;
}

.template-modern-professional .contact-modern {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.template-modern-professional .contact-item-modern {
    color: #ecf0f1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Creative Design - Professional and Clean */
.template-creative-design .sidebar-modern {
    background: #34495e;
    position: relative;
    border-right: 3px solid #e74c3c;
}

.template-creative-design .header-modern {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #2c3e50;
    margin: -2rem -2rem 2rem -2rem;
}

.template-creative-design .name-modern {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.template-creative-design .title-modern {
    color: #e74c3c;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Executive Style - Elegant and Professional */
.template-executive-style .header-modern {
    background: #1a1a1a;
    padding: 2.5rem 2rem;
    position: relative;
    text-align: center;
}

.template-executive-style .header-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #d4af37;
}

.template-executive-style .name-modern {
    font-size: 2.2rem;
    font-weight: 300;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.template-executive-style .title-modern {
    color: #d4af37;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tech Modern - Clean and Professional */
.template-tech-modern .header-modern {
    background: #263238;
    position: relative;
    padding: 2.5rem 2rem;
    border-left: 4px solid #00bcd4;
}

.template-tech-modern .name-modern {
    font-family: 'Inter', sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.template-tech-modern .title-modern {
    color: #00bcd4;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Creative Portfolio - Refined and Elegant */
.template-creative-portfolio .header-modern {
    background: #8e44ad;
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
}

.template-creative-portfolio .header-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9b59b6, #8e44ad, #9b59b6);
}

.template-creative-portfolio .name-modern {
    font-size: 2.1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.template-creative-portfolio .title-modern {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Minimal Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.3s ease-out;
}

/* Print Optimizations */
@media print {
    .header-modern,
    .experience-card,
    .sidebar-modern {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .skill-progress-fill,
    .language-progress {
        background: #333 !important;
    }
    
    .achievement-badge,
    .skill-tag {
        border: 1px solid #333 !important;
        background: white !important;
        color: #333 !important;
    }
}

.template-preview-wrapper li {
    font-size: 10px;
    margin-bottom: 2px;
}

.preview-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    font-size: 14px;
    background: var(--gray-50);
}

/* Simple PDF Preview - Clean and Working */
.fullscreen-resume {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Professional Fullscreen Preview Styles */
.fullscreen-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: var(--gray-50);
    color: var(--gray-600);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.fullscreen-preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--gray-100);
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
}

.template-name {
    font-size: 0.9rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: 20px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
}

.toolbar-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.toolbar-btn:active {
    transform: scale(0.95);
}

.zoom-level {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    min-width: 45px;
    text-align: center;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--gray-300);
    margin: 0 5px;
}

.preview-viewport {
    flex: 1;
    overflow: auto;
    background: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: 0;
}

.resume-container {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    transform-origin: center top;
    max-width: 800px;
    width: 100%;
}

.resume-page {
    padding: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    min-height: 800px;
}

.preview-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 40px;
}

.preview-error i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 20px;
}

.preview-error h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.preview-error p {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 400px;
}

/* Improved fullscreen modal styles */
.fullscreen-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fullscreen-preview.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.fullscreen-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--gray-900);
}

.fullscreen-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 16px;
}

.fullscreen-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.fullscreen-resume {
    flex: 1;
    overflow: hidden;
    background: var(--gray-50);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preview-toolbar {
        padding: 10px 15px;
    }
    
    .toolbar-left {
        gap: 10px;
    }
    
    .preview-title {
        font-size: 1rem;
    }
    
    .template-name {
        display: none;
    }
    
    .toolbar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .preview-viewport {
        padding: 10px;
    }
    
    .resume-page {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .toolbar-right {
        gap: 5px;
    }
    
    .zoom-level {
        min-width: 35px;
        font-size: 0.8rem;
    }
    
    .toolbar-divider {
        display: none;
    }
}

/* Premium Badge Styles */
.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b5a00;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.premium-badge i {
    font-size: 8px;
}

/* Upgrade Banner Styles */
.upgrade-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.upgrade-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

/* Premium Modal Styles */
.premium-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    animation: fadeIn 0.2s ease;
}

.premium-modal-content {
    background: white !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 400px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    animation: modalSlideIn 0.3s ease;
    position: relative !important;
    margin: 0 !important;
}

.premium-modal-header {
    padding: 1.5rem 1.5rem 1rem !important;
    text-align: center !important;
    position: relative !important;
}

.premium-icon {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem !important;
}

.premium-icon i {
    font-size: 24px !important;
    color: white !important;
}

.premium-modal-header h3 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: none !important;
    border: none !important;
    font-size: 1.25rem !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.modal-close:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.premium-modal-body {
    padding: 0 1.5rem 1rem !important;
    text-align: center !important;
}

.premium-modal-body p {
    margin: 0 0 1.5rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
}

.premium-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.5rem !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
}

.feature-item i {
    color: #3b82f6 !important;
    font-size: 1rem !important;
    width: 16px !important;
    text-align: center !important;
}

.feature-item span {
    font-size: 0.875rem !important;
    color: #374151 !important;
}

.premium-modal-footer {
    padding: 1rem 1.5rem 1.5rem !important;
}

.premium-upgrade-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.premium-upgrade-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}