/* Resume Styles */

/* Common structure for PDF rendering and Live Preview */
.resume-container {
    width: 210mm;
    min-height: 100%;
    height: auto;
    background: white;
    color: #333;
    padding: 0;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

@media print {
    .resume-container {
        box-shadow: none;
        width: 100%;
        height: 100%;
    }
}

/* Template 1 classes */
.t1-resume {
    width: 100%; 
    height: 100%; 
    padding: 40px; 
    font-family: var(--t1-font-family, 'Roboto', sans-serif);
}

.t1-resume .header { 
    text-align: center; 
    border-bottom: 2px solid var(--t1-accent); 
    padding-bottom: 20px; 
    margin-bottom: 20px; 
} 

.t1-resume .name { 
    font-size: var(--t1-title-size, 24px); 
    color: var(--t1-accent); 
    font-weight: bold; 
    margin-bottom: 5px; 
} 

.t1-resume .contact { 
    font-size: var(--t1-text-size, 14px); 
    color: #555; 
} 

.t1-resume .section { 
    margin-bottom: 20px; 
} 

.t1-resume .section-title { 
    font-size: var(--t1-heading-size, 16px); 
    color: var(--t1-accent); 
    border-bottom: 1px solid #ccc; 
    padding-bottom: 5px; 
    margin-bottom: 10px; 
} 

.t1-resume .section-content { 
    font-size: var(--t1-text-size, 14px); 
    line-height: 1.5; 
} 

/* Scale wrapper for preview */
.preview-scroll-container {
    overflow: auto;
    max-height: 80vh;
    border: 1px solid #ddd;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.preview-wrapper {
    transform-origin: top center;
    transition: transform 0.2s ease;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.template-card {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
}

.template-card img {
    width: 100%;
    height: auto;
    display: block;
}

.template-card.selected {
    border-color: var(--primary-color);
}

.template-card .selected-overlay {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.template-card.selected .selected-overlay {
    display: block;
}

.template-card-footer {
    padding: 10px;
    background: #f8f9fa;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}
