/* Advanced CV Builder Styles - UPDATED */
.advanced-editor-container {
    display: grid;
    grid-template-columns: 50% 50%; /* Equal split */
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    gap: 0;
}

/* Enhanced word wrapping for CV columns */
.cv-two-column .cv-left-column {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Add this */
}

/* Apply to all elements inside left column */
.cv-two-column .cv-left-column * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Specific element targeting */
.cv-two-column .cv-left-column p,
.cv-two-column .cv-left-column h1,
.cv-two-column .cv-left-column h2,
.cv-two-column .cv-left-column h3,
.cv-two-column .cv-left-column h4,
.cv-two-column .cv-left-column h5,
.cv-two-column .cv-left-column h6,
.cv-two-column .cv-left-column div,
.cv-two-column .cv-left-column span,
.cv-two-column .cv-left-column li,
.cv-two-column .cv-left-column td,
.cv-two-column .cv-left-column th {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    overflow: hidden !important;
    word-break: break-word !important; /* Add this */
}

/* Prevent long URLs and unbreakable text from overflowing */
.cv-two-column .cv-left-column {
    hyphens: auto !important;
    word-break: break-word !important;
}

/* Ensure text containers don't expand beyond column */
.cv-two-column .cv-left-column .cv-contact-info p,
.cv-two-column .cv-left-column .cv-address,
.cv-two-column .cv-left-column .cv-section {
    max-width: 100% !important;
    width: 100% !important;
}

/* Handle very long words/URLs specifically */
.cv-two-column .cv-left-column {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* Right column for consistency */
.cv-two-column .cv-right-column,
.cv-two-column .cv-right-column * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-break: break-word !important;
}

/* Input Sidebar (50%) */
.input-sidebar {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

/* Preview Area (50%) */
.preview-area {
    background: #ffffff;
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

/* Template Selection - AUTO COLOR */
.template-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.template-option {
    text-align: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.template-option.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.template-option:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.template-preview {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 2px solid transparent;
}

.template-option.active .template-preview {
    border-color: white;
}

/* Color Customization */
.color-customization {
    display: grid;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.color-picker-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.color-picker {
    width: 50px;
    height: 35px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-picker:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

/* Form Sections with Better Design */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.form-section.minimized {
    padding: 15px;
}

.form-section.minimized .section-content {
    display: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Section Menu - UPDATED */
.section-menu {
    position: relative;
}




/* Enhanced Add More Sections */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.section-add-btn {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 12px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-height: 80px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.section-add-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 ease;
}

.section-add-btn:hover::before {
    left: 100%;
}

.section-add-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.section-add-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.section-add-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.section-add-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

.section-add-btn span {
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.section-add-btn:hover span {
    letter-spacing: 0.5px;
}

/* Individual button color variations */
.section-add-btn:nth-child(1) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.section-add-btn:nth-child(2) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.section-add-btn:nth-child(3) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.section-add-btn:nth-child(4) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.section-add-btn:nth-child(5) { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.section-add-btn:nth-child(6) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.section-add-btn:nth-child(7) { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.section-add-btn:nth-child(8) { background: linear-gradient(135deg, #a3bded 0%, #6991c7 100%); }
.section-add-btn:nth-child(9) { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

/* Hover effects maintain gradient reversal */
.section-add-btn:nth-child(1):hover { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
.section-add-btn:nth-child(2):hover { background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%); }
.section-add-btn:nth-child(3):hover { background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); }
.section-add-btn:nth-child(4):hover { background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%); }
.section-add-btn:nth-child(5):hover { background: linear-gradient(135deg, #fee140 0%, #fa709a 100%); }
.section-add-btn:nth-child(6):hover { background: linear-gradient(135deg, #fed6e3 0%, #a8edea 100%); }
.section-add-btn:nth-child(7):hover { background: linear-gradient(135deg, #fecfef 0%, #ff9a9e 100%); }
.section-add-btn:nth-child(8):hover { background: linear-gradient(135deg, #6991c7 0%, #a3bded 100%); }
.section-add-btn:nth-child(9):hover { background: linear-gradient(135deg, #fda085 0%, #f6d365 100%); }

/* Button hover effect element */
.btn-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.section-add-btn:hover .btn-hover-effect {
    width: 120px;
    height: 120px;
}

/* Responsive design */
@media (max-width: 768px) {
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section-add-btn {
        min-height: 70px;
        padding: 12px 10px;
    }
}



.menu-toggle {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    cursor: pointer;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 180px;
}

.menu-dropdown.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #475569;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #3b82f6;
    color: white;
}

.menu-item.delete {
    color: #ef4444;
}

.menu-item.delete:hover {
    background: #ef4444;
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Form Elements - Enhanced */
.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

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

/* Enhanced Buttons */
.btn {
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

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

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Enhanced Entry Items */
.entry-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.entry-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.entry-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.entry-actions {
    display: flex;
    gap: 8px;
}

/* Enhanced Action Buttons */
.btn-icon {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-icon:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.btn-icon.delete {
    color: #ef4444;
    border-color: #fecaca;
}

.btn-icon.delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-icon.success {
    color: #10b981;
    border-color: #a7f3d0;
}

.btn-icon.success:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* AI Suggestions Button */
.ai-suggestions-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.ai-suggestions-btn:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Level Selector - Hide bullets when not selected */
.level-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bullets {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bullets.visible {
    opacity: 1;
}

.bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: transparent;
    transition: all 0.3s ease;
}

.bullet.filled {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* Date Input with Calendar */
.date-input {
    position: relative;
}

.date-input input[type="date"] {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
    font-size: 0.9rem;
}

/* Rich Text Editor */
.rich-text-editor {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f8fafc;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    background: white;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.editor-toolbar button:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.editor-content {
    min-height: 120px;
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.editor-content:focus {
    outline: none;
}

/* Additional Fields - Better Remove Button */
.additional-field {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #10b981;
}

.additional-field .btn-icon {
    margin-top: 10px;
    width: auto;
    padding: 8px 16px;
    gap: 6px;
}

/* Save & Reset Buttons */
.save-reset-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

/* Preview Styles */
.cv-preview {
    background: white;
    width: 100%;
    min-height: 297mm;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cv-two-column {
    display: grid;
    grid-template-columns: 35% 65%;
    min-height: 100%;
}

.cv-left-column {
    padding: 30px 20px;
    color: white;
}

.cv-right-column {
    padding: 30px;
    background: white;
}

/* Show all personal info in preview */
.cv-contact-info {
    margin-top: 20px;
}

.cv-contact-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-address {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Modal Positioning Fix */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
	color: #000000;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
	background: white;
    color: #000000;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.modal-close:hover {
    color: #374151;
}

#aiSuggestionsList {
    color: #000000 !important;
    background: white !important;
}

#aiSuggestionsList .suggestion-item {
    color: #000000 !important;
    background: white !important;
}

#aiSuggestionsList .suggestion-text {
    color: #000000 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .advanced-editor-container {
        grid-template-columns: 1fr;
    }
    
    .input-sidebar {
        height: auto;
        max-height: 50vh;
    }
    
    .save-reset-buttons {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .template-selector {
        grid-template-columns: 1fr;
    }
    
    .cv-two-column {
        grid-template-columns: 1fr;
    }
}

/* Signature Modal Styles */
.signature-modal {
    max-width: 600px;
    width: 90%;
}

.signature-tabs {
    display: flex;
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Draw Tab Styles */
.signature-canvas-container {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

#signatureCanvas {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
}

.canvas-instruction {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Type Tab Styles */
.type-signature-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.font-selection {
    margin-bottom: 20px;
}

.font-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.font-selector {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.signature-preview {
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    background: #f8fafc;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Signature Preview in CV Sections */
.cv-signature-preview {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.cv-signature-preview img {
    max-width: 200px;
    max-height: 80px;
    border-radius: 4px;
}

/* CV Preview Container for Footer */
.cv-preview {
    position: relative;
    min-height: 297mm;
}

/* Signature and Footer Sections */
.signature-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.loading-suggestions {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.loading-suggestions .fa-spin {
    margin-right: 10px;
    color: #3b82f6;
}

.no-suggestions {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-style: italic;
}

/* AI Suggestions Styling */
.suggestion-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

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

.suggestion-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.suggestion-checkbox {
    margin-top: 2px;
    accent-color: #10b981;
}

.suggestion-text {
    flex: 1;
    line-height: 1.5;
}

/* Checkbox container for better alignment */
.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}



/* Ensure CV preview has proper spacing */
.cv-right-column {
    padding-bottom: 40px;
}

/* Ensure signature images display properly */
.cv-preview img {
    max-width: 100%;
    height: auto;
}
/* Footer positioning */
.cv-right-column {
    position: relative;
    min-height: 100%;
}

.typed-preview {
    font-size: 2rem;
    color: #374151;
    font-family: 'Dancing Script', cursive;
}

.type-input {
    position: relative;
}

.type-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.char-count {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.8rem;
    background: white;
    padding: 0 5px;
}

/* Upload Tab Styles */
.upload-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #3b82f6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-area.dragover {
    background: #dbeafe;
    border-color: #1d4ed8;
}

.upload-area i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 15px;
}

.upload-area h4 {
    margin: 0 0 8px 0;
    color: #374151;
}

.upload-area p {
    margin: 0 0 15px 0;
    color: #64748b;
}

.upload-preview {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    color: #64748b;
}

.preview-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

#uploadPreview img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
}

/* Signature Actions */
.signature-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-content {
    max-width: 500px;
    margin: 5% auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-body {
    padding: 20px;
}

.modal-body ul {
    margin: 15px 0;
}

.modal-body li {
    margin: 8px 0;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.api-key-link {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.api-key-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    text-decoration: none;
    color: #374151;
}

.input-hint {
    font-size: 0.8em;
    color: #6b7280;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

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


.ai-platform-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    text-decoration: none;
    color: #374151;
}

.prompt-section pre {
    font-family: 'Courier New', monospace;
    background: #1f2937;
    color: #e5e7eb;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
}

.modal-content {
    max-width: 700px;
    margin: 5% auto;
	color: #ffffff;
}

.video-script-intro {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.video-script-intro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.affiliate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
    text-decoration: none;
    color: #374151;
}

.video-tips {
    border-left: 4px solid #f59e0b;
}

.teachable-cta {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    transition: all 0.3s ease;
}

.teachable-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.3);
}

.course-category {
    transition: all 0.2s ease;
}

.course-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-link:hover {
    text-decoration: underline !important;
}


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

.subscription-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

/* Subscription Modal Styles */
.subscription-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto; /* Enable main modal scrolling */
}

.subscription-modal-content {
    background-color: white;
    margin: 2% auto; /* Reduced margin to fit better */
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh; /* Limit maximum height */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Enhanced Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.features::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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.features .section-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.features .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.features-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
    perspective: 1000px;
}

.feature-slide {
    position: absolute;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100px) scale(0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
}

.feature-slide.prev {
    opacity: 0.6;
    transform: translateX(-300px) scale(0.9);
    z-index: 2;
}

.feature-slide.next {
    opacity: 0.6;
    transform: translateX(300px) scale(0.9);
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s ease;
}

.feature-slide.active .feature-icon {
    animation: float 3s ease-in-out infinite;
}

.feature-slide:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #4834d4, #686de0);
    box-shadow: 0 10px 30px rgba(72, 52, 212, 0.4);
}

.feature-slide:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #00d2d3, #54a0ff);
    box-shadow: 0 10px 30px rgba(0, 210, 211, 0.4);
}

.feature-slide h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.feature-slide p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Enhanced Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
}

.slider-prev, .slider-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Features Section - 3 Columns */
/* Features Section - Matching How It Works Design */
.features {
    padding: 80px 0;
    background-color: #f8fafc;
}

.features .section-title {
    color: #1f2937;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.features .section-subtitle {
    color: #6b7280;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.features .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.features .step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.features .step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.features .step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.features .step:hover .step-icon {
    transform: scale(1.1);
}

.features .step:nth-child(2) .step-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.features .step:nth-child(3) .step-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.features .step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 600;
}

.features .step p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* Animation on scroll for features */
.features .step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.features .step.animate {
    opacity: 1;
    transform: translateY(0);
}

.features .step:nth-child(1) { transition-delay: 0.1s; }
.features .step:nth-child(2) { transition-delay: 0.2s; }
.features .step:nth-child(3) { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .features .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
    }
    
    .features .step {
        padding: 25px 20px;
    }
    
    .features .section-title {
        font-size: 2rem;
    }
}

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

.subscription-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.subscription-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.subscription-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.subscription-body {
    padding: 25px;
    overflow-y: auto; /* Enable scrolling for body */
    flex: 1; /* Take remaining space */
    max-height: calc(90vh - 200px); /* Calculate max height */
}

.pdf-preview-container {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.pdf-preview {
    width: 100%;
    height: 200px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9em;
    overflow: hidden; /* Prevent preview overflow */
}

.pricing-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.pricing-option {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px; /* Ensure consistent height */
}

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

.pricing-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.pricing-option.recommended {
    border-color: #10b981;
    background: #f0fdf4;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.price-main {
    font-size: 1.5em;
    font-weight: bold;
    color: #1e40af;
}

.price-old {
    text-decoration: line-through;
    color: #64748b;
    margin-left: 8px;
    font-size: 0.9em;
}

.price-saving {
    color: #10b981;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 8px;
}

.subscription-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.subscription-features li {
    padding: 5px 0;
    color: #475569;
    font-size: 0.9em;
}

.subscription-features li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
}

.subscription-footer {
    padding: 20px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    text-align: center;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.subscription-footer p {
    margin: 0 0 15px 0;
    color: #64748b;
    font-size: 0.9em;
}

.payment-buttons {
    display: flex;
    gap: 10px;
}

/* Change .btn-wishmoney to .btn-payment */
.btn-payment {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-payment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-cancel {
    background: #64748b;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #475569;
    transform: translateY(-1px);
}

.loading-payment {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-payment i {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 10px;
}

/* Custom scrollbar for modal */
.subscription-body::-webkit-scrollbar {
    width: 6px;
}

.subscription-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.subscription-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.subscription-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* For Firefox */
.subscription-body {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Template Library Styles */
.btn-template {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    margin: 0 8px;
}

.btn-template:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.template-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.template-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.template-preview {
    height: 120px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.template-preview-content {
    width: 90%;
    height: 80%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.template-info {
    padding: 12px;
}

.template-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e293b;
}

.template-type {
    font-size: 0.8em;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

.ats-badge {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    margin-left: 5px;
}

/* Real Template Styles */
.btn-template-real {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    margin: 0 8px;
}

.btn-template-real:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* Source Filter */
.template-sources-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.source-filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.source-filter-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

/* Real Templates Grid */
.real-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.real-template-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.real-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #8b5cf6;
}

.real-template-preview {
    height: 250px;
    background: #f8fafc;
    overflow: auto;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
}

.real-template-info {
    padding: 15px;
    background: white;
}

.real-template-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #1e293b;
}

.real-template-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.template-source {
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.template-source.bootstrap { background: #7952b3; color: white; }
.template-source.tailwind { background: #38b2ac; color: white; }
.template-source.material { background: #6200ea; color: white; }

.template-category {
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
}
/* CSS Variables for Template Colors */
:root {
    --left-bg: #1e40af;
    --left-text: white;
    --right-bg: white;
    --right-text: #1f2937;
    --accent-color: #f59e0b;
}

/* Ensure content areas are properly styled */
.cv-contact-info,
.cv-skills-section,
.cv-profile-content,
.cv-experience-entries,
.cv-education-entries,
.cv-additional-sections {
    /* These will be populated with your existing data */
}

/* Make sure existing CV elements work in new templates */
.cv-section,
.entry-item,
.skill-item,
.language-item {
    /* Preserve your existing styling */
    margin-bottom: 1rem;
}
/* Category-specific styling for template previews */
.template-preview-content[style*="modern"] {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.template-preview-content[style*="creative"] {
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.template-preview-content[style*="minimal"] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.template-preview-content[style*="executive"] {
    border: 2px solid #2d3748;
    border-radius: 4px;
}

.template-preview-content[style*="academic"] {
    border-left: 4px solid #805ad5;
    border-radius: 4px;
}

.template-preview-content[style*="professional"] {
    border: 1px solid #cbd5e0;
    border-radius: 6px;
}

/* Footer Styles */
footer a:hover {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.newsletter-form .btn:hover {
    background-color: #ffb300;
    border-color: #ffb300;
}
.email-link {
    color: #007bff;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.cv-online-link a:hover {
    text-decoration: underline !important;
    color: var(--accent-color, #3b82f6) !important;
}


    .cv-online-link a:hover {
        text-decoration: underline !important;
        color: var(--accent-color, #3b82f6) !important;
    }

document.head.appendChild(linkStyle);
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* Font Imports - Add to your HTML head or import in CSS */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Great+Vibes&family=Parisienne&family=Sacramento&family=Alex+Brush&family=Allura&display=swap');
