/* SJ Resume Templates V2 - Completely Independent System */

/* Floating Dropdown Styles */
.floating-dropdown-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-dropdown-main-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1001;
}

.floating-dropdown-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.floating-dropdown-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    text-align: left;
}

.floating-dropdown-item:last-child {
    margin-bottom: 0;
}

.floating-dropdown-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-dropdown-item i {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* Specific button styles */
.floating-dropdown-item.apply-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.floating-dropdown-item.compact-button {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.floating-dropdown-item.print-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.floating-dropdown-item.back-button {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.floating-dropdown-item.sound-button {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.floating-dropdown-item.sound-button:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .floating-dropdown-container {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-dropdown-main-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .floating-dropdown-menu {
        min-width: 180px;
        padding: 6px;
    }
    
    .floating-dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .floating-dropdown-item i {
        font-size: 14px;
        min-width: 18px;
    }
}

/* Animation for dropdown items */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-dropdown-item {
    animation: slideInFromRight 0.3s ease forwards;
}

.floating-dropdown-item:nth-child(1) { animation-delay: 0.1s; }
.floating-dropdown-item:nth-child(2) { animation-delay: 0.2s; }
.floating-dropdown-item:nth-child(3) { animation-delay: 0.3s; }
.floating-dropdown-item:nth-child(4) { animation-delay: 0.4s; }
.floating-dropdown-item:nth-child(5) { animation-delay: 0.5s; }

/* Hover effects for main button */
.floating-dropdown-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.floating-dropdown-main-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
}

/* Focus states for accessibility */
.floating-dropdown-main-btn:focus,
.floating-dropdown-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .floating-dropdown-menu {
        background: #2d3748;
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .floating-dropdown-item {
        color: white;
    }
} 

/* Modal Styles */
.template-preview-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.template-preview-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.template-preview-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.template-preview-close:hover,
.template-preview-close:focus {
    color: #000;
    background-color: rgba(255,255,255,0.8);
}

.template-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.sj-resume-templates-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.template-selector-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.template-selector-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 300;
}

.template-selector-header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.guest-message {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.guest-message a {
    color: #fff;
    text-decoration: underline;
}

/* Content Styles */
.template-selector-content {
    display: grid;
    gap: 30px;
}

/* Resume Selection Section */
.resume-selection-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.resume-selection-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-dropdown-container {
    margin-top: 15px;
}

.resume-dropdown {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.resume-dropdown:focus {
    outline: none;
    border-color: #667eea;
}

.guest-resume-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.guest-resume-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* Template Selection Section */
.template-selection-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.template-selection-section h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Template Controls */
.template-controls {
    margin-bottom: 30px;
}

.template-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9em;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.template-filter {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.template-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Template Grid Container */
.template-grid-container {
    margin-top: 20px;
}

/* Template Grid - Much larger cards for dramatic effect */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Reduced from 300px to 250px */
    gap: 14px; /* Reduced horizontal/vertical space between cards */
    padding: 8px; /* Tighter outer padding */
}

/* Template Cards - Much larger size for dramatic visibility */
.template-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    max-width: 250px; /* Reduced from 300px to 250px */
    cursor: pointer;
    margin: 4px; /* Slightly reduced card margin */
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.template-card.digital-template:hover {
    border-color: #667eea;
}

.template-card.printable-template:hover {
    border-color: #2c3e50;
}

/* Card states */
.template-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.template-card.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.template-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* Template Preview - Much larger for dramatic A4 ratio */
.template-preview {
    position: relative;
    height: 292px !important; /* Reduced from 350px to 292px to maintain ratio (250/300 * 350) */
    padding: 8px; /* Reduce inner padding to minimize white frame */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Ensure uploaded images fit properly within template cards */
.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

/* Template category tag styling */
.template-category-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 5;
}

/* Preview Content - Blurred placeholder text */
.preview-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-header {
    margin-bottom: 8px;
}

.preview-name {
    font-size: 0.7em;
    font-weight: bold;
    margin-bottom: 2px;
    color: inherit;
    filter: blur(0.5px);
}

.preview-title {
    font-size: 0.6em;
    color: inherit;
    opacity: 0.8;
    filter: blur(0.3px);
}

.preview-section {
    flex-grow: 1;
}

.preview-label {
    font-size: 0.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: inherit;
    filter: blur(0.2px);
}

.preview-item {
    margin-bottom: 3px;
}

.preview-job {
    font-size: 0.5em;
    font-weight: bold;
    color: inherit;
    filter: blur(0.4px);
}

.preview-company {
    font-size: 0.4em;
    color: inherit;
    opacity: 0.7;
    filter: blur(0.3px);
}

/* Template Info - Compact */
.template-info {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

.template-info h4 {
    color: #333;
    margin-bottom: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Template Tags - Smaller */
.template-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.template-tags .tag {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.template-tags .tag.digital {
    background: #e3f2fd;
    color: #1976d2;
}

.template-tags .tag.printable {
    background: #fff3e0;
    color: #f57c00;
}

.template-tags .tag.category-general {
    background: #f3e5f5;
    color: #7b1fa2;
}

.template-tags .tag.category-it {
    background: #e8f5e8;
    color: #388e3c;
}

.template-tags .tag.category-creative {
    background: #fff8e1;
    color: #f57f17;
}

.template-tags .tag.category-business {
    background: #e0f2f1;
    color: #00695c;
}

.template-tags .tag.category-lawyer {
    background: #fce4ec;
    color: #c2185b;
}

.template-tags .tag.category-doctor {
    background: #f1f8e9;
    color: #689f38;
}

/* Sound Icon Styles */
.tag-icon.sound {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9 !important;
}

.tag-icon.sound:hover {
    background: #c8e6c9 !important;
    color: #1b5e20 !important;
    border-color: #a5d6a7 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}



/* No Resumes Message */
.no-resumes-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-resumes-message p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Responsive Design - Updated for thumbnails */
@media (max-width: 768px) {
    .sj-resume-templates-v2 {
        padding: 15px;
    }
    
    .template-selector-header h2 {
        font-size: 2em;
    }
    
    .template-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .template-card {
        max-width: none;
    }
    
    .template-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .preview-template-btn,
    .apply-template-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .template-card {
        margin-bottom: 10px;
    }
}

/* Print Styles */
@media print {
    .sj-resume-templates-v2 {
        display: none;
    }
} 

/* Template Preview Styles */
.template-preview.digital-modern-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.template-preview.digital-modern-preview h4 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.template-preview.digital-modern-preview p {
    color: #e0e0e0;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.template-preview.digital-modern-preview h5 {
    color: white;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.template-preview.digital-modern-preview .preview-item {
    font-size: 0.8em;
}

.template-preview.digital-modern-preview .preview-item strong {
    color: white;
}

.template-preview.digital-modern-preview .preview-item span {
    color: #e0e0e0;
}

/* Override any white backgrounds on digital template previews */
.template-preview.digital-modern-preview *,
.template-preview.digital-creative-preview * {
    background: transparent !important;
}

.template-preview.digital-modern-preview .preview-header,
.template-preview.digital-creative-preview .preview-header {
    background: transparent !important;
}

.template-preview.digital-modern-preview .preview-section,
.template-preview.digital-creative-preview .preview-section {
    background: transparent !important;
}

.template-preview.digital-creative-preview {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
}

.template-preview.digital-creative-preview h4 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.template-preview.digital-creative-preview p {
    color: #f0f0f0;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.template-preview.digital-creative-preview h5 {
    color: white;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.template-preview.digital-creative-preview .preview-item {
    font-size: 0.8em;
}

.template-preview.digital-creative-preview .preview-item strong {
    color: white;
}

.template-preview.digital-creative-preview .preview-item span {
    color: #f0f0f0;
}

/* Digital Ultra Preview Styles */
.template-preview.digital-ultra-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.template-preview.digital-ultra-preview::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>');
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.template-preview.digital-ultra-preview h4 {
    color: white;
    font-size: 1.2em;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.3em;
}

.template-preview.digital-ultra-preview p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
    margin-bottom: 1em;
}

.template-preview.digital-ultra-preview h5 {
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 0.3em;
}

.template-preview.digital-ultra-preview .preview-item {
    background: rgba(255,255,255,0.1);
    padding: 0.5em;
    border-radius: 8px;
    margin-bottom: 0.5em;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.template-preview.digital-ultra-preview .preview-item strong {
    color: white;
    font-size: 0.9em;
    display: block;
    margin-bottom: 0.2em;
}

.template-preview.digital-ultra-preview .preview-item span {
    color: rgba(255,255,255,0.8);
    font-size: 0.8em;
}

.template-preview.printable-classic-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.template-preview.printable-classic-preview h4 {
    color: #000000;
    font-size: 1.2em;
    margin-bottom: 5px;
    font-family: 'Times New Roman', serif;
}

.template-preview.printable-classic-preview p {
    color: #333333;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-family: 'Times New Roman', serif;
}

.template-preview.printable-classic-preview h5 {
    color: #2c3e50;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'Times New Roman', serif;
}

.template-preview.printable-classic-preview .preview-item {
    font-size: 0.8em;
}

.template-preview.printable-classic-preview .preview-item strong {
    color: #2c3e50;
    font-family: 'Times New Roman', serif;
}

.template-preview.printable-classic-preview .preview-item span {
    color: #6c757d;
    font-family: 'Times New Roman', serif;
}

.template-preview.printable-professional-preview {
    background: white;
    border: 1px solid #dee2e6;
}

.template-preview.printable-professional-preview h4 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
    font-weight: normal;
}

.template-preview.printable-professional-preview p {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.template-preview.printable-professional-preview h5 {
    color: #2c3e50;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    background: #ecf0f1;
    padding: 3px 8px;
    border-left: 3px solid #3498db;
    display: inline-block;
}

.template-preview.printable-professional-preview .preview-item {
    font-size: 0.8em;
    padding-left: 8px;
    border-left: 2px solid #bdc3c7;
    margin-left: 5px;
}

.template-preview.printable-professional-preview .preview-item strong {
    color: #2c3e50;
    font-family: 'Georgia', serif;
}

.template-preview.printable-professional-preview .preview-item span {
    color: #7f8c8d;
    font-family: 'Georgia', serif;
}

/* Two Column Modern Template Preview */
.template-preview.two-column-modern-preview {
    background: linear-gradient(90deg, #2c3e50 0%, #2c3e50 35%, #fff 35%, #fff 100%);
    color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.template-preview.two-column-modern-preview h4 {
    color: #ecf0f1 !important;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2em;
}

.template-preview.two-column-modern-preview p {
    color: #bdc3c7 !important;
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.1em;
}

/* Additional specificity for preview header elements */
.template-preview.two-column-modern-preview .preview-header h4 {
    color: #ecf0f1 !important;
}

.template-preview.two-column-modern-preview .preview-header p {
    color: #bdc3c7 !important;
}

/* Maximum specificity override for any conflicting styles */
body .sj-resume-templates-v2 .template-card[data-template="two-column-modern"] .template-preview.two-column-modern-preview .preview-header h4 {
    color: #ecf0f1 !important;
}

body .sj-resume-templates-v2 .template-card[data-template="two-column-modern"] .template-preview.two-column-modern-preview .preview-header p {
    color: #bdc3c7 !important;
}

.template-preview.two-column-modern-preview h5 {
    color: #2c3e50;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #34495e;
    padding-bottom: 0.1em;
    margin-bottom: 0.3em;
    letter-spacing: 0.5px;
}

.template-preview.two-column-modern-preview .preview-item {
    margin-bottom: 0.2em;
    position: relative;
    padding-left: 0.3em;
}

.template-preview.two-column-modern-preview .preview-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1px;
    height: 0.8em;
    background: #bdc3c7;
}

.template-preview.two-column-modern-preview .preview-item::after {
    content: '';
    position: absolute;
    left: -0.05em;
    top: 0.1em;
    width: 0.1em;
    height: 0.1em;
    background: #2c3e50;
    border-radius: 50%;
}

.template-preview.two-column-modern-preview .preview-item strong {
    color: #2c3e50;
    font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
}

.template-preview.two-column-modern-preview .preview-item span {
    color: #7f8c8d;
    font-size: 0.5em;
    font-style: italic;
    display: block;
    margin-top: 0.05em;
}

/* Two Column Modern Template Info Section */
.template-card[data-template="two-column-modern"] .template-info h4,
.template-card[data-template="two-column-modern"] .template-info h4 * {
    color: #2c3e50 !important;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.template-card[data-template="two-column-modern"] .template-info p,
.template-card[data-template="two-column-modern"] .template-info p * {
    color: #7f8c8d !important;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Additional specificity for any potential overrides */
.sj-resume-templates-v2 .template-card[data-template="two-column-modern"] .template-info h4 {
    color: #2c3e50 !important;
}

.sj-resume-templates-v2 .template-card[data-template="two-column-modern"] .template-info p {
    color: #7f8c8d !important;
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 3em;
    color: #6c757d;
    margin-bottom: 20px;
    display: block;
}

.no-results-content h4 {
    color: #495057;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 500;
}

.no-results-content p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 0;
}

.no-results-content .reset-filters {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.no-results-content .reset-filters:hover {
    color: #5a6fd8;
    text-decoration: underline;
} 

/* Template Info Section - Ensure black text for visibility */
.template-info {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.template-info h4 {
    color: #333 !important;
    margin-bottom: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.template-info p {
    color: #666 !important;
    font-size: 0.8em;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Ensure template card text is always black and visible */
.template-card .template-info * {
    color: #333 !important;
}

.template-card .template-info h4 {
    color: #333 !important;
}

.template-card .template-info p {
    color: #666 !important;
}

/* Specific overrides for any white text that might be inherited */
.template-card[data-template="digital-ultra"] .template-info h4,
.template-card[data-template="digital-ultra"] .template-info p,
.template-card[data-template="two-column-modern"] .template-info h4,
.template-card[data-template="two-column-modern"] .template-info p {
    color: #333 !important;
}

.template-card[data-template="digital-ultra"] .template-info p,
.template-card[data-template="two-column-modern"] .template-info p {
    color: #666 !important;
} 

/* Ensure preview content text is visible */
.preview-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-header {
    margin-bottom: 8px;
}

.preview-name {
    font-size: 0.7em;
    font-weight: bold;
    margin-bottom: 2px;
    color: inherit;
    filter: blur(0.5px);
}

.preview-title {
    font-size: 0.6em;
    color: inherit;
    opacity: 0.8;
    filter: blur(0.3px);
}

.preview-section {
    flex-grow: 1;
}

.preview-label {
    font-size: 0.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: inherit;
    filter: blur(0.2px);
}

.preview-item {
    margin-bottom: 3px;
}

.preview-job {
    font-size: 0.5em;
    font-weight: bold;
    color: inherit;
    filter: blur(0.4px);
}

.preview-company {
    font-size: 0.4em;
    color: inherit;
    opacity: 0.7;
    filter: blur(0.3px);
}

/* Specific overrides for Digital Ultra and Two Column Modern preview content */
.template-preview.digital-ultra-preview .preview-name,
.template-preview.digital-ultra-preview .preview-title,
.template-preview.digital-ultra-preview .preview-label,
.template-preview.digital-ultra-preview .preview-job,
.template-preview.digital-ultra-preview .preview-company {
    color: white !important;
}

.template-preview.two-column-modern-preview .preview-name,
.template-preview.two-column-modern-preview .preview-title,
.template-preview.two-column-modern-preview .preview-label,
.template-preview.two-column-modern-preview .preview-job,
.template-preview.two-column-modern-preview .preview-company {
    color: #ecf0f1 !important;
}

/* Ensure right column text in Two Column Modern is black */
.template-preview.two-column-modern-preview .preview-item strong {
    color: #2c3e50 !important;
}

.template-preview.two-column-modern-preview .preview-item span {
    color: #7f8c8d !important;
} 