/**
 * Pro CV Maker - Main Styles
 */

.pcvm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Steps Indicator */
.pcvm-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pcvm-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.pcvm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50%;
    top: 15px;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.pcvm-step.active .step-number {
    background: #2271b1;
    color: white;
}

.pcvm-step.completed .step-number {
    background: #27ae60;
    color: white;
}

/* Section Header */
.pcvm-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.pcvm-section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Categories */
.pcvm-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.pcvm-category-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.pcvm-category-btn:hover,
.pcvm-category-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

/* Templates Grid */
.pcvm-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pcvm-template-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.template-thumbnail {
    position: relative;
    height: 400px;
    background: #f5f5f5;
}

.template-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.template-info {
    padding: 20px;
}

/* Form Styles */
.pcvm-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pcvm-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.pcvm-form-section:last-child {
    border-bottom: none;
}

.pcvm-form-section h3 {
    margin-bottom: 20px;
    color: #2271b1;
}

.pcvm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.pcvm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pcvm-form-group input,
.pcvm-form-group textarea,
.pcvm-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pcvm-form-group textarea {
    resize: vertical;
}

/* Buttons */
.pcvm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 10px;
    width: 100%;
}

.pcvm-btn-primary {
    background: #2271b1;
    color: white;
}

.pcvm-btn-primary:hover {
    background: #135e96;
}

.pcvm-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.pcvm-btn-outline {
    background: transparent;
    border: 2px solid #2271b1;
    color: #2271b1;
}

.pcvm-btn-danger {
    background: #dc3545;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
}

/* Form Actions */
.pcvm-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Preview */
.pcvm-preview-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.pcvm-preview-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}

.pcvm-preview-main {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Payment */
.pcvm-payment-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.payment-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.payment-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.price {
    color: #28a745;
    font-weight: bold;
}

/* Simple Payment Actions */
.simple-payment-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.simple-payment-actions .pcvm-btn {
    flex: 1;
    max-width: 200px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.simple-payment-actions .pcvm-btn-secondary {
    background: #6c757d;
    color: white;
}

.simple-payment-actions .pcvm-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.simple-payment-actions .pcvm-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.simple-payment-actions .pcvm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Hide old payment method selection */
.payment-methods {
    display: none;
}

.payment-method-grid {
    display: none;
}

.payment-method-card {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .simple-payment-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .simple-payment-actions .pcvm-btn {
        max-width: none;
        width: 100%;
    }
}

/* Loading */
.pcvm-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .pcvm-steps {
        flex-direction: column;
    }
    
    .pcvm-step::after {
        display: none;
    }
    
    .pcvm-preview-container {
        grid-template-columns: 1fr;
    }
    
    .pcvm-form-row {
        grid-template-columns: 1fr;
    }
}

/* Photo Preview */
.photo-preview-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.photo-preview-img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pcvm-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* File input styling */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: #f8f9fa;
}

input[type="file"]:hover {
    border-color: #2271b1;
    background: #e8f4f8;
}

/* Template Selector Modal */
.pcvm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.pcvm-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.pcvm-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2271b1;
}

.pcvm-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.3s;
}

.pcvm-modal-close:hover {
    color: #333;
}

.pcvm-modal-body {
    padding: 30px;
}

.pcvm-templates-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.pcvm-template-card-mini {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.pcvm-template-card-mini:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.2);
    transform: translateY(-3px);
}

.pcvm-template-card-mini.active {
    border-color: #27ae60;
    background: #f0f9f4;
}

.template-preview-mini {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-preview-icon {
    font-size: 50px;
    opacity: 0.9;
}

.pcvm-template-card-mini .template-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.pcvm-template-card-mini .template-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 32px;
}

.pcvm-template-card-mini .pcvm-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
}

.pcvm-template-card-mini.active .pcvm-btn-primary {
    background: #27ae60;
    cursor: default;
}

.pcvm-template-card-mini.active .pcvm-btn-primary:hover {
    background: #27ae60;
}

/* Make modal scrollable */
.pcvm-modal-content::-webkit-scrollbar {
    width: 8px;
}

.pcvm-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pcvm-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.pcvm-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Color Picker Styles */
.preview-color-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.preview-color-section h4 {
    margin: 0 0 15px 0;
    color: #2271b1;
    font-size: 16px;
    font-weight: 600;
}

.color-picker-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 15px;
}

.color-presets {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 10px 1fr 10px 1fr 10px 1fr;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    -webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Firefox specific fixes */
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box;
}

.color-preset:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.color-preset.active {
    border-color: #fff;
    -webkit-box-shadow: 0 0 0 2px #2271b1, 0 4px 10px rgba(0,0,0,0.3);
    box-shadow: 0 0 0 2px #2271b1, 0 4px 10px rgba(0,0,0,0.3);
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.color-preset.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    /* Firefox specific */
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-color-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.custom-color-section label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

#custom-color-picker {
    width: 50px;
    height: 35px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
    /* Firefox specific fixes */
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

#custom-color-picker:hover {
    border-color: #2271b1;
}

#custom-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

#custom-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

#custom-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

/* Color picker notification */
.color-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10001;
    font-weight: 500;
    -webkit-animation: slideInRight 0.3s ease-out;
    animation: slideInRight 0.3s ease-out;
}

@-webkit-keyframes slideInRight {
    from {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

/* Date Input Group */
.date-input-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.month-select,
.year-select {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.month-select {
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
}

.year-select {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* Checkbox Container */
.checkbox-container {
    margin-top: 10px;
}

.checkbox-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Disabled state for date selects */
.month-select:disabled,
.year-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}
#fill-demo-data {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

#fill-demo-data:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

#fill-demo-data:active {
    transform: translateY(0);
}

.pcvm-section-header small {
    font-style: italic;
    line-height: 1.4;
}

/* Color Customization */
.color-customization-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.color-customization-section h4 {
    margin: 0 0 15px 0;
    color: #2271b1;
    font-size: 14px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.custom-color-section {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.custom-color-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

#custom-color-picker {
    width: 60px;
    height: 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

#apply-custom-color {
    padding: 8px 12px;
    font-size: 11px;
}

/* Template Color Variables */
.cv-template {
    --primary-color: #2271b1;
    --secondary-color: #135e96;
    --accent-color: #e8f4f8;
}

/* Color transition for smooth changes */
.cv-template * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced Template Selection Styles */
.pcvm-template-card {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pcvm-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.template-thumbnail {
    position: relative;
    overflow: hidden;
}

.template-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pcvm-template-card:hover .template-thumbnail img {
    transform: scale(1.05);
}

.premium-badge, .free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.premium-badge {
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
}

.free-badge {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.template-features {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.feature-tag {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.template-preview-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.template-preview-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.template-info {
    padding: 20px;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.template-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.template-category {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.template-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0 15px 0;
}

.template-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.stat-icon {
    font-size: 14px;
}

.template-actions {
    display: flex;
    gap: 10px;
}

.template-actions .pcvm-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.template-preview-btn-alt {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
}

.template-preview-btn-alt:hover {
    border-color: #007cba;
    color: #007cba;
    background: rgba(0, 124, 186, 0.05);
}

/* Template Preview Modal */
.pcvm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.pcvm-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.pcvm-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.pcvm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pcvm-modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.pcvm-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.pcvm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .pcvm-templates-grid {
        grid-template-columns: 1fr;
    }
    
    .template-actions {
        flex-direction: column;
    }
    
    .pcvm-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .template-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .template-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .template-features {
        position: static;
        flex-direction: row;
        margin-top: 10px;
    }
    
    .template-thumbnail {
        position: relative;
    }
    
    .template-preview-btn {
        position: static;
        margin: 10px auto;
        display: block;
    }
}

/* Template Selector Modal Styles */
.template-categories-modal {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.template-category-btn-modal:hover,
.template-category-btn-modal.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.template-info-modal {
    padding: 15px 0;
}

.template-category-tag {
    display: inline-block;
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.premium-badge-modal {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.ats-badge-modal {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(52, 73, 94, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* ATS Template - Hide Color Picker */
.ats-template-selected .color-picker-section,
.ats-template-selected .color-customization,
.ats-template-selected .theme-colors,
.ats-template-selected .pcvm-color-picker,
.ats-template-selected .realtime-color-picker {
    display: none !important;
}

/* No Color Picker Templates - General hiding */
.no-color-picker-template .color-picker-section,
.no-color-picker-template .color-customization,
.no-color-picker-template .theme-colors,
.no-color-picker-template .pcvm-color-picker,
.no-color-picker-template .realtime-color-picker {
    display: none !important;
}

/* Specific ATS template color picker hiding */
body.ats-template-selected .color-preset,
body.ats-template-selected #custom-color-picker,
body.ats-template-selected .color-picker-wrapper,
body.ats-template-selected .color-options {
    display: none !important;
    pointer-events: none !important;
}

/* Specific no color picker template hiding */
body.no-color-picker-template .color-preset,
body.no-color-picker-template #custom-color-picker,
body.no-color-picker-template .color-picker-wrapper,
body.no-color-picker-template .color-options {
    display: none !important;
    pointer-events: none !important;
}

/* ATS Template Indicator */
.template-ats-professional .ats-badge,
.template-ats-friendly .ats-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

/* Elegant Black Template Indicator */
.template-elegant-black .no-color-badge {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

/* Minimalist White Template Indicator */
.template-minimalist-white .no-color-badge {
    display: inline-block;
    background: #95a5a6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

/* ATS Template Card Styling */
.pcvm-template-card[data-template-id*="ats"] {
    border: 2px solid #27ae60;
    position: relative;
}

.pcvm-template-card[data-template-id*="ats"]::before {
    content: "🤖 ATS";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #27ae60;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

/* Elegant Black Template Card Styling */
.pcvm-template-card[data-template-id="elegant-black"] {
    border: 2px solid #2c3e50;
    position: relative;
}

.pcvm-template-card[data-template-id="elegant-black"]::before {
    content: "🖤 Fixed";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #2c3e50;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

/* Minimalist White Template Card Styling */
.pcvm-template-card[data-template-id="minimalist-white"] {
    border: 2px solid #95a5a6;
    position: relative;
}

.pcvm-template-card[data-template-id="minimalist-white"]::before {
    content: "⚪ Minimal";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #95a5a6;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.pcvm-template-card[data-template-id*="ats"] .template-badge {
    background: #27ae60;
    color: white;
}

/* Hide color picker elements specifically for ATS templates */
.cv-builder-step-2.template-ats-professional .color-picker-section,
.cv-builder-step-2.template-ats-friendly .color-picker-section,
.cv-builder-step-3.template-ats-professional .color-picker-section,
.cv-builder-step-3.template-ats-friendly .color-picker-section {
    display: none !important;
}

/* Hide color picker elements specifically for Elegant Black and Minimalist White */
.cv-builder-step-2.template-elegant-black .color-picker-section,
.cv-builder-step-2.template-minimalist-white .color-picker-section,
.cv-builder-step-3.template-elegant-black .color-picker-section,
.cv-builder-step-3.template-minimalist-white .color-picker-section {
    display: none !important;
}

/* ATS Mode Notification Styles */
.ats-notification {
    animation: slideInRight 0.3s ease-out;
}

.ats-mode-indicator {
    animation: fadeInUp 0.3s ease-out;
}

/* No Color Picker Notification Styles */
.no-color-picker-notification {
    animation: slideInRight 0.3s ease-out;
}

.no-color-picker-indicator {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Force hide any color-related elements when ATS template is active */
body.ats-template-selected [class*="color-"],
body.ats-template-selected [id*="color-"] {
    display: none !important;
}

/* Force hide any color-related elements when no color picker template is active */
body.no-color-picker-template [class*="color-"],
body.no-color-picker-template [id*="color-"] {
    display: none !important;
}

/* Exception for elements that should remain visible */
body.ats-template-selected .ats-notification,
body.ats-template-selected .ats-mode-indicator,
body.no-color-picker-template .no-color-picker-notification,
body.no-color-picker-template .no-color-picker-indicator {
    display: block !important;
}
/* Language Selection Styles */
.language-selection-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.language-selection-section h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 24px;
}

.language-selection-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 16px;
}

.language-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.language-option {
    position: relative;
}

.language-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.language-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.language-option input[type="radio"]:checked + .language-card {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.language-flag {
    font-size: 48px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.language-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.language-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Language indicator in form */
.form-language-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Responsive language selector */
@media (max-width: 768px) {
    .language-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .language-card {
        padding: 15px;
    }
    
    .language-flag {
        font-size: 36px;
        margin-right: 12px;
    }
    
    .language-info h4 {
        font-size: 16px;
    }
    
    .language-info p {
        font-size: 13px;
    }
}

/* Language-specific form styling */
body[data-cv-language="en"] .language-selection-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body[data-cv-language="en"] .form-language-indicator {
    background: #4facfe;
}

/* Section title transitions */
.section-title {
    transition: opacity 0.3s ease;
}

.section-title.changing {
    opacity: 0.5;
}
/* Smart Skills Suggestions */
.skills-suggestions-container {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

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

.suggestions-header {
    margin-bottom: 15px;
    text-align: center;
}

.suggestions-header h4 {
    margin: 0 0 5px 0;
    color: #2271b1;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.suggestions-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    min-height: 40px;
}

.skill-suggestion {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.skill-suggestion:hover {
    border-color: #2271b1;
    background: #e8f4f8;
    color: #2271b1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.skill-suggestion.selected {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.skill-suggestion.selected:hover {
    background: #135e96;
    border-color: #135e96;
}

.skill-suggestion .skill-icon {
    font-size: 12px;
}

.skill-suggestion.selected .skill-icon::before {
    content: "✓";
}

.skill-suggestion:not(.selected) .skill-icon::before {
    content: "+";
}

.suggestions-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.pcvm-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Skills textarea enhancements */
#skills-textarea {
    transition: border-color 0.3s ease;
}

#skills-textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

/* Loading state for suggestions */
.suggestions-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.suggestions-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Empty state */
.suggestions-empty {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.suggestions-empty::before {
    content: "🤔";
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .suggestions-grid {
        gap: 6px;
    }
    
    .skill-suggestion {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .suggestions-actions {
        flex-direction: column;
    }
    
    .suggestions-actions .pcvm-btn {
        width: 100%;
    }
}

/* Animation for skill addition */
.skill-added-animation {
    animation: skillAdded 0.5s ease;
}

@keyframes skillAdded {
    0% {
        background: #28a745;
        transform: scale(1.1);
    }
    100% {
        background: #2271b1;
        transform: scale(1);
    }
}
/* Smart Skills Placeholder Animation */
#skills-textarea {
    transition: all 0.3s ease;
}

#skills-textarea.placeholder-updating {
    background-color: #f0f8ff;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.skills-placeholder-indicator {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #e8f4f8;
    color: #2271b1;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

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

.skills-example-updated {
    color: #2271b1 !important;
    font-weight: 600;
    animation: highlightText 0.5s ease;
}

@keyframes highlightText {
    0% { background-color: transparent; }
    50% { background-color: rgba(34, 113, 177, 0.1); }
    100% { background-color: transparent; }
}

/* Skills suggestions container improvements */
.skills-suggestions-container {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.suggestions-header {
    margin-bottom: 15px;
}

.suggestions-header h4 {
    margin: 0 0 5px 0;
    color: #2271b1;
    font-size: 16px;
}

.suggestions-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.skill-suggestion {
    padding: 8px 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    user-select: none;
}

.skill-suggestion:hover {
    border-color: #2271b1;
    background: #f0f8ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.skill-suggestion.selected {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.suggestions-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.suggestions-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.suggestions-btn.primary {
    background: #2271b1;
    color: white;
}

.suggestions-btn.primary:hover {
    background: #135e96;
}

.suggestions-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.suggestions-btn.secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .skill-suggestion {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .suggestions-actions {
        flex-direction: column;
    }
    
    .suggestions-btn {
        width: 100%;
    }
}

/* Color Picker Section */
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments for sidebar language selector */
@media (max-width: 768px) {
    .language-toggle-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .language-toggle-btn {
        width: 100%;
    }
}

/* Smart Skills Suggestions Styles */
.skills-suggestions-container {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    animation: slideDown 0.3s ease-out;
}

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

.suggestions-header {
    margin-bottom: 15px;
    text-align: center;
}

.suggestions-header h4 {
    margin: 0 0 5px 0;
    color: #2271b1;
    font-size: 18px;
    font-weight: 600;
}

.suggestions-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.skill-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #2271b1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #2271b1;
    user-select: none;
    position: relative;
    overflow: hidden;
}

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

.skill-suggestion:hover::before {
    left: 100%;
}

.skill-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    border-color: #1e5a96;
}

.skill-suggestion.added {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
    transform: scale(1.05);
}

.skill-suggestion.added:hover {
    background: #219a52;
    border-color: #219a52;
    transform: scale(1.05) translateY(-1px);
}

.skill-text {
    font-weight: 500;
}

.skill-add-icon {
    font-weight: bold;
    font-size: 16px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.skill-suggestion:hover .skill-add-icon {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.skill-suggestion.added .skill-add-icon {
    background: rgba(255,255,255,0.3);
    transform: rotate(0deg);
}

.suggestions-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.suggestions-actions .pcvm-btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.suggestions-actions .pcvm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive Design for Skills Suggestions */
@media (max-width: 768px) {
    .skills-suggestions-container {
        padding: 15px;
        margin-top: 10px;
    }
    
    .suggestions-grid {
        gap: 6px;
    }
    
    .skill-suggestion {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .suggestions-header h4 {
        font-size: 16px;
    }
    
    .suggestions-subtitle {
        font-size: 13px;
    }
    
    .suggestions-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .suggestions-actions .pcvm-btn {
        width: 100%;
        text-align: center;
    }
}

/* Enhanced Skills Textarea */
#skills-textarea {
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
}

#skills-textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    outline: none;
}

#skills-textarea::placeholder {
    color: #6c757d;
    font-style: italic;
    transition: all 0.3s ease;
}

#skills-textarea:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* Skills Section Enhancement */
.pcvm-form-section:has(#skills-textarea) {
    position: relative;
}

.pcvm-form-section:has(#skills-textarea) .pcvm-form-group {
    position: relative;
}

/* Loading Animation for Skills Suggestions */
.skills-suggestions-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.skills-suggestions-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Success Animation for Added Skills */
@keyframes skillAdded {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

.skill-suggestion.just-added {
    animation: skillAdded 0.4s ease-out;
}

/* Notification Styles for Skills */
.skills-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10001;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Form Group for Skills */
.pcvm-form-group:has(#skills-textarea) {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pcvm-form-group:has(#skills-textarea):hover {
    border-color: #2271b1;
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.1);
}

.pcvm-form-group:has(#skills-textarea) label {
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 8px;
    display: block;
}

.pcvm-form-group:has(#skills-textarea) small {
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
    display: block;
}