/**
 * CV Builder Admin Styles
 */

.cv-builder-wrapper {
    min-height: calc(100vh - 32px);
    
}

.cv-builder-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
}

/* Header Section */
.cv-builder-header {
    margin-bottom: 30px;
}

.cv-builder-title {
    font-size: 32px;
    font-weight: 700;
    color: #8B1538;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.cv-builder-subtitle {
    font-size: 16px;
    color: #4a4a4a;
    margin: 0;
    line-height: 1.5;
}

/* Language Selection */
.cv-builder-language-section {
    margin-bottom: 25px;
}

.cv-builder-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.cv-language-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cv-builder-select-wrapper {
    position: relative;
    display: block;
    max-width: 320px;
    flex: 0 0 auto;
}

/* Shortcode Preview in language wrapper */
.cv-language-wrapper .cv-shortcode-preview {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
}

.cv-language-wrapper .cv-shortcode-output {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.cv-builder-select {
    width: 100%;
    padding: 8px 35px 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cv-builder-select:focus {
    outline: none;
    border-color: #8B1538;
}

/* Shortcode Preview */
.cv-shortcode-preview {
    margin-top: 10px;
    margin-bottom: 15px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cv-shortcode-output {
    display: block !important;
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
}

.cv-shortcode-output * {
    max-width: 100%;
}

/* Ensure translator widget dropdowns work properly */
.cv-shortcode-output .gt-selector,
.cv-shortcode-output .gtranslate-wrapper,
.cv-shortcode-output .gtranslate,
.cv-shortcode-output select {
    position: relative;
    z-index: 1000;
    display: block !important;
    visibility: visible !important;
}

.cv-shortcode-output .gt-selector ul,
.cv-shortcode-output .gtranslate-wrapper ul {
    z-index: 1001;
    position: absolute;
}

/* Toast Notifications */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cv-builder-toast {
    animation: slideIn 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

#cv-builder-toast-container .notice {
    margin: 0 0 10px 0 !important;
    padding: 12px 15px !important;
}

/* Shortcut Input Section */
.cv-shortcut-input-section {
    margin-bottom: 30px;
}

.cv-shortcut-input-section textarea {
    font-family: monospace;
    font-size: 13px;
}

/* Form Sections */
.cv-builder-sections {
    margin-bottom: 30px;
}

.cv-builder-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cv-builder-section:hover {
    border-color: #d0d0d0;
}

.cv-builder-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.cv-builder-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #8B1538;
    margin: 0;
}

.cv-builder-section-toggle {
    color: #666;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.cv-builder-section.active .cv-builder-section-toggle .cv-arrow-down {
    display: none;
}

.cv-builder-section.active .cv-builder-section-toggle .cv-arrow-up {
    display: block !important;
}

.cv-builder-section:not(.active) .cv-builder-section-toggle .cv-arrow-up {
    display: none !important;
}

.cv-builder-section-content {
    max-height: 0;
    overflow: hidden;
    transition: none;
    padding: 0;
}

.cv-builder-section.active .cv-builder-section-content {
    max-height: 5000px !important;
    padding: 8px !important;
    border-top: 1px solid #f0f0f0;
    overflow: visible;
    display: block !important;
}

/* Form Styles */
.cv-builder-form {
    width: 100%;
}

.cv-builder-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cv-builder-form-row:last-child {
    margin-bottom: 0;
}

.cv-builder-form-group {
    flex: 1;
}

.cv-builder-form-group-full {
    flex: 1 1 100%;
}

.cv-builder-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.cv-builder-form-group input[type="text"],
.cv-builder-form-group input[type="email"],
.cv-builder-form-group input[type="tel"],
.cv-builder-form-group input[type="date"],
.cv-builder-form-group input[type="number"],
.cv-builder-form-group select,
.cv-builder-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s;
    font-family: inherit;
}

.cv-builder-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.cv-builder-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cv-builder-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cv-builder-modal__content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 360px;
    padding: 24px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.cv-builder-modal.is-visible .cv-builder-modal__content {
    transform: translateY(0);
}

.cv-builder-modal__body {
    margin-bottom: 20px;
}

.cv-builder-modal__message {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

.cv-builder-modal__footer {
    display: flex;
    justify-content: center;
}

.cv-builder-modal__button {
    background: #8B1538;
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 14px rgba(139, 21, 56, 0.25);
}

.cv-builder-modal__button:hover {
    background: #aa1a46;
    transform: translateY(-1px);
}

.cv-builder-modal__button:active {
    transform: translateY(0);
}

.cv-builder-modal__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.3);
}

@media (max-width: 480px) {
    .cv-builder-modal__content {
        margin: 0 16px;
        padding: 20px;
    }

    .cv-builder-modal__message {
        font-size: 15px;
    }

    .cv-builder-modal__button {
        width: 100%;
    }
}

.cv-builder-form-group input:focus,
.cv-builder-form-group select:focus,
.cv-builder-form-group textarea:focus {
    outline: none;
    border-color: #8B1538;
}

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

/* Photo Upload */
.cv-builder-upload-area {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.cv-upload-photo-btn {
    background: #fdfdfd;
    border: 1px solid #8B1538;
    border-radius: 6px;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    color: #8B1538;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cv-upload-photo-btn:hover {
    background: #fff5f7;
    border-color: #6d1029;
    color: #6d1029;
}

.cv-upload-photo-btn:active {
    transform: translateY(1px);
}

.cv-builder-upload-placeholder {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    display: none;
}

.cv-builder-upload-placeholder:hover {
    border-color: #8B1538;
    background: #fff;
}

.cv-builder-upload-placeholder svg {
    color: #8B1538;
    margin-bottom: 15px;
}

.cv-builder-upload-placeholder p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.cv-builder-upload-hint {
    font-size: 12px !important;
    color: #999 !important;
}

.cv-builder-upload-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.cv-builder-upload-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.cv-builder-upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    background: rgba(139, 21, 56, 0.9);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.cv-builder-upload-remove:hover {
    background: rgba(139, 21, 56, 1);
}

/* Action Button */
.cv-builder-actions {
    margin: 30px 0 20px 0;
    text-align: center;
}

.cv-builder-button {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cv-builder-button-primary {
    background-color: #8B1538;
    color: #ffffff;
    min-width: 250px;
}

.cv-builder-button-primary:hover {
    background-color: #6d1029;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 21, 56, 0.2);
}

.cv-builder-button-primary:active {
    transform: translateY(0);
}

/* Legal Text */
.cv-builder-legal {
    text-align: center;
    margin-bottom: 20px;
}

.cv-builder-terms {
    font-size: 13px;
    color: #4a4a4a;
    margin: 0;
}

.cv-builder-link {
    color: #8B1538;
    text-decoration: none;
    transition: color 0.2s;
}

.cv-builder-link:hover {
    color: #6d1029;
    text-decoration: underline;
}

/* Note Box */
.cv-builder-note {
    background: #fffbf0;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px 20px;
    margin-top: 20px;
}

.cv-builder-note p {
    margin: 0;
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
}

.cv-builder-note strong {
    color: #333;
}

/* Field Manager Styles */
.cv-field-manager-header-fields {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cv-field-manager-fields {
    margin-bottom: 20px;
}

.cv-field-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s;
}

.cv-field-item:hover {
    background: #fff;
    border-color: #d0d0d0;
}

.cv-field-item.disabled {
    opacity: 0.5;
}

.cv-field-item.validation-error {
    border-color: #e74c3c !important;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.cv-field-label-edit {
    border: 1px solid #8B1538 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

.cv-field-input:focus,
.cv-field-select:focus,
textarea.cv-field-input:focus {
    border-color: #8B1538 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

.cv-header-text.editing {
    border: 1px solid #8B1538 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

.cv-field-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-right: 20px;
}

.cv-field-controls-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* Toggle Switch */
.cv-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.cv-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cv-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cv-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cv-toggle-switch input:checked+.cv-toggle-slider {
    background-color: #8B1538;
}

.cv-toggle-switch input:checked+.cv-toggle-slider:before {
    transform: translateX(20px);
}

/* Edit Button */
.cv-field-edit-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cv-field-edit-btn:hover {
    color: #8B1538;
}

.cv-field-edit-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: currentColor;
    fill: none;
}

.cv-edit-icon {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

/* Field Label */
.cv-field-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-width: 120px;
}

/* Field Input */
.cv-field-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
    min-width: 200px;
}

.cv-field-input:focus {
    outline: none;
    border-color: #8B1538;
}

.cv-field-input textarea,
.cv-field-input[rows] {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.cv-field-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

@media (max-width: 800px) {
    .cv-field-input-wrapper {
        min-width: 100%;
    }
}

.cv-field-input-wrapper .cv-field-input {
    width: 100%;
    padding-right: 35px;
}

.cv-calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.cv-calendar-icon:hover {
    color: #8B1538;
}

.cv-calendar-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Field Select */
.cv-field-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
    background: white;
    min-width: 200px;
    cursor: pointer;
}

.cv-field-select:focus {
    outline: none;
    border-color: #8B1538;
}

/* Header Fields Specific Styles */
.cv-header-field {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    margin-bottom: 10px !important;
    justify-content: center !important;
}

.cv-header-field:hover {
    background: transparent !important;
    border: none !important;
}

.cv-header-field .cv-field-controls-right {
    display: none !important;
}

.cv-header-field .cv-field-controls-left {
    justify-content: center !important;
}

/* Ganesha Image */
.cv-field-ganesha-image {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.cv-field-ganesha-image svg {
    display: block;
}

.cv-field-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.ganesha-icon {
    width: 100%;
    min-height: 30px;
    position: relative;
}

.ganesha-icon img {
    display: flex;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 640px) {
    .ganesha-icon img {
        top: 20px;
    }
}

/* Header Text Fields */
.cv-header-text-field {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    min-width: 150px;
}

.cv-header-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.cv-header-underline {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin-top: 4px;
}

/* Move Buttons */
.cv-field-move-up,
.cv-field-move-down {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-field-move-up:hover,
.cv-field-move-down:hover {
    background: #f0f0f0;
    border-color: #8B1538;
    color: #8B1538;
}

/* Delete Button */
.cv-field-delete {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 4px;
    cursor: pointer;
    color: #e74c3c;
    border-radius: 4px;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-field-delete svg {
    width: 16px;
    height: 16px;
    display: block;
}

.cv-field-delete:hover {
    background: #fee;
    border-color: #e74c3c;
    color: #c0392b;
}

/* Add Field Button */
.cv-field-manager-actions {
    margin: 20px 0;
}

.cv-add-field-btn {
    background: transparent;
    border: 1px dashed #8B1538;
    padding: 10px 20px;
    cursor: pointer;
    color: #8B1538;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.cv-add-field-btn:hover {
    background: #8B1538;
    color: white;
}

/* Navigation Buttons */
.cv-field-manager-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cv-nav-btn {
    padding: 10px 25px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cv-nav-btn:hover {
    border-color: #8B1538;
    color: #8B1538;
}

.cv-nav-next {
    background: #8B1538;
    color: white;
    border-color: #8B1538;
}

.cv-nav-next:hover {
    background: #6d1029;
    border-color: #6d1029;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cv-builder-container {
        padding: 25px 0px;
    }

    .cv-builder-title {
        font-size: 26px;
    }

    .cv-builder-form-row {
        flex-direction: column;
        gap: 0;
    }

    .cv-builder-button-primary {
        width: 100%;
        min-width: auto;
    }

    .cv-field-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cv-field-controls-left {
        width: 100%;
        flex-wrap: wrap;
    }

    .cv-field-controls-right {
        width: 100%;
        justify-content: flex-end;
    }

    .cv-field-input,
    .cv-field-select {
        min-width: 100%;
    }

    .cv-field-label {
        min-width: auto;
    }
}

/* Religious Symbol Modal */
.cv-symbol-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.cv-symbol-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-symbol-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cv-symbol-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

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

.cv-symbol-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #8B1538;
    margin: 0;
}

.cv-symbol-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.cv-symbol-modal-close:hover {
    color: #8B1538;
}

.cv-symbol-modal-body {
    display: flex;
    gap: 30px;
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.cv-symbol-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    flex: 1;
}

.cv-symbol-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    aspect-ratio: 1;
    min-height: 70px;
}

.cv-symbol-btn:hover {
    border-color: #8B1538;
    background: #fff5f7;
}

.cv-symbol-btn.cv-symbol-btn-active {
    background: #fff5f7;
    border: 2px solid #8B1538;
}

.cv-symbol-btn svg {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
}

.cv-symbol-img {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.cv-symbol-preview {
    width: 280px;
    flex-shrink: 0;
}

.cv-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #8B1538;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.cv-preview-icon-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.cv-preview-icon-placeholder {
    width: 100px;
    height: 100px;
    border: 2px dashed #d0d0d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.cv-preview-icon-placeholder svg {
    width: 60px;
    height: 60px;
}

.cv-preview-icon-placeholder img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cv-preview-icon-placeholder span {
    font-size: 12px;
    color: #999;
}

.cv-preview-biodata-title {
    font-size: 14px;
    font-weight: 600;
    color: #8B1538;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.cv-preview-biodata-placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cv-placeholder-line {
    height: 10px;
    background: #e0e0e0;
    border-radius: 4px;
}

.cv-symbol-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
}

.cv-modal-btn {
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
}

.cv-modal-btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.cv-modal-btn-cancel:hover {
    background: #e5e5e5;
}

.cv-modal-btn-select {
    background: #8B1538;
    color: white;
    border-color: #8B1538;
}

.cv-modal-btn-select:hover {
    background: #6d1029;
    border-color: #6d1029;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .cv-symbol-modal-body {
        flex-direction: column;
    }

    .cv-symbol-preview {
        width: 100%;
    }

    .cv-symbol-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Date Picker */
.cv-field-input-wrapper {
    position: relative;
}

.cv-date-picker {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 280px;
    padding: 15px;
}

.cv-date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    gap: 10px;
}

.cv-date-picker-month-year {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    flex: 1;
}

.cv-date-picker-month-year:hover {
    background: #f5f5f5;
    color: #8B1538;
}

.cv-date-picker-month {
    display: inline-block;
}

.cv-date-picker-year {
    display: inline-block;
}

.cv-date-picker-dropdown-icon {
    display: inline-block;
    font-size: 10px;
    color: #666;
    margin-left: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
    transform: rotate(0deg);
}

.cv-date-picker-month-year:hover .cv-date-picker-dropdown-icon {
    color: #8B1538;
}

.cv-date-picker-dropdown-icon.cv-date-picker-dropdown-open {
    transform: rotate(180deg);
    color: #8B1538;
}

.cv-date-picker-nav-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.cv-date-picker-nav {
    background: transparent;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.cv-date-picker-nav:hover {
    background: #f5f5f5;
    color: #8B1538;
}

.cv-date-picker-nav:active {
    transform: scale(0.95);
}

.cv-date-picker-calendar {
    width: 100%;
}

.cv-date-picker-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.cv-date-picker-day-name {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-align: center;
    padding: 5px 0;
    text-transform: uppercase;
}

.cv-date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cv-date-picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    min-height: 32px;
}

.cv-date-picker-day-other {
    color: #ccc;
}

.cv-date-picker-day-current {
    color: #333;
}

.cv-date-picker-day-current:hover {
    background: #f5f5f5;
    color: #8B1538;
}

.cv-date-picker-day-selected {
    background: #8B1538;
    color: white;
    font-weight: 600;
}

.cv-date-picker-day-selected:hover {
    background: #6d1029;
}

/* Year List Scrollbar */
.cv-date-picker-year-list::-webkit-scrollbar {
    width: 6px;
}

.cv-date-picker-year-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cv-date-picker-year-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.cv-date-picker-year-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Combined Year-Month Selection View - Match image layout */
.cv-date-picker-year-month-view {
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    display: none; /* Hidden by default, will be shown via JavaScript */
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-date-picker-year-month-view.cv-year-month-visible {
    display: flex;
    max-height: 500px;
    opacity: 1;
    padding-top: 15px;
}

/* Content container for two columns - Inline layout */
.cv-date-picker-year-month-content {
    display: flex;
    flex-direction: row; /* Side by side layout */
    gap: 0; /* No gap to hide divider */
    background: transparent; /* Hide divider background */
    overflow: hidden;
    height: 150px; /* Fixed height to show 3 items */
    align-items: stretch; /* Ensure both columns are same height */
    width: 100%; /* Full width */
    box-sizing: border-box;
    position: relative; /* For highlight bar positioning */
}

/* Highlight bar overlay - shows the middle selection area */
.cv-date-picker-year-month-content::before {
    content: '';
    position: absolute;
    top: 50px; /* Position at middle */
    left: 0;
    right: 0;
    height: 50px; /* Height of one item */
    background: linear-gradient(to bottom, 
        rgba(139, 21, 56, 0.08) 0%, 
        rgba(139, 21, 56, 0.12) 50%, 
        rgba(139, 21, 56, 0.08) 100%);
    pointer-events: none; /* Allow clicks through */
    z-index: 1;
    border-top: 1px solid rgba(139, 21, 56, 0.15);
    border-bottom: 1px solid rgba(139, 21, 56, 0.15);
    border-radius: 0;
}

/* Month-Year Column - Single column for combined month-year items */
.cv-date-picker-month-year-column {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fafafa;
    padding: 50px 0; /* Top and bottom padding to allow scrolling to center */
    box-sizing: border-box;
    height: 150px; /* Fixed height to show 3 items */
    scroll-snap-type: y mandatory; /* Enable scroll snapping */
    scroll-behavior: smooth; /* Smooth scrolling */
    width: 100%; /* Full width */
    /* Hide scrollbar but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.cv-date-picker-month-year-column::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera - Force hide */
    width: 0 !important;
    height: 0 !important;
}

/* Month-Year Items - Combined month and year display */
.cv-date-picker-month-year-item {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-align: center;
    border: none;
    border-radius: 0;
    background: transparent;
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    opacity: 0.4;
    transform: scale(0.85);
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.cv-date-picker-month-year-item:hover {
    opacity: 0.6;
}

.cv-date-picker-month-year-item.cv-date-picker-month-year-selected {
    background: #8B1538;
    color: white;
    font-weight: 600;
    opacity: 1;
    transform: scale(1);
    border-radius: 0;
    height: 50px;
    min-height: 50px;
}

.cv-date-picker-month-year-item.cv-date-picker-month-year-selected:hover {
    background: #8B1538;
    color: white;
}

.cv-date-picker-month-year-item.cv-date-picker-month-year-selected.cv-item-center {
    background: #8B1538 !important;
    color: white !important;
    border-radius: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
}

.cv-date-picker-month-year-item.cv-date-picker-month-year-selected.cv-item-center:hover {
    background: #8B1538 !important;
    color: white !important;
}

.cv-date-picker-month-year-item.cv-item-center {
    opacity: 1 !important;
    transform: scale(1) !important;
    font-weight: 600 !important;
    color: #8B1538 !important;
    background: rgba(139, 21, 56, 0.12) !important;
    font-size: 17px;
    border-radius: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
}

/* 
.cv-date-picker-month-column {
    flex: 0 0 49%; 
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fafafa;
    padding: 50px 0; 
    box-sizing: border-box;
    height: 150px; 
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
 */


.cv-date-picker-month-column,
.cv-date-picker-year-column {
    flex: 0 0 50%;
    display: flex;
    height: auto !important;
    max-height: 150px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fafafa;
    padding: 50px 0; 
    box-sizing: border-box;
    height: 150px; 
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.cv-date-picker {
    overflow: hidden !important;
}






.cv-date-picker-month-column::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera - Force hide */
    width: 0 !important;
    height: 0 !important;
}

/* Year Column - Right side (kept for backward compatibility) */
.cv-date-picker-year-column {
    flex: 0 0 50%; /* Equal width, don't grow or shrink */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fafafa;
    padding: 50px 0; /* Top and bottom padding to allow scrolling to center */
    box-sizing: border-box;
    height: 150px; /* Fixed height to show 3 items */
    scroll-snap-type: y mandatory; /* Enable scroll snapping */
    scroll-behavior: smooth; /* Smooth scrolling */
    /* Hide scrollbar but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.cv-date-picker-year-column::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera - Force hide */
    width: 0 !important;
    height: 0 !important;
}

/* Month Items */
.cv-date-picker-month-item {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-align: center;
    border: none;
    border-radius: 0; /* No border radius */
    background: transparent;
    height: 50px; /* Fixed height for each item - same as year */
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center; /* Snap to center */
    opacity: 0.4; /* Default: faded but visible */
    transform: scale(0.85); /* Default: smaller */
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.cv-date-picker-month-item:hover {
    opacity: 0.6;
}

.cv-date-picker-month-item:last-child {
    border-bottom: none;
}

.cv-date-picker-month-item.cv-date-picker-month-selected {
    background: #8B1538; /* Full red background when selected */
    color: white;
    font-weight: 600;
    opacity: 1;
    transform: scale(1);
    border-radius: 0; /* No border radius */
    height: 50px; /* Same height as year */
    min-height: 50px;
}

.cv-date-picker-month-item.cv-date-picker-month-selected:hover {
    background: #8B1538;
    color: white;
}

/* When selected AND center - full red background */
.cv-date-picker-month-item.cv-date-picker-month-selected.cv-item-center {
    background: #8B1538 !important;
    color: white !important;
    border-radius: 0 !important; /* No border radius */
    height: 50px !important; /* Same height as year */
    min-height: 50px !important;
}

.cv-date-picker-month-item.cv-date-picker-month-selected.cv-item-center:hover {
    background: #8B1538 !important;
    color: white !important;
}

/* December month specific styling */
.cv-date-picker-month-item:nth-child(12),
.cv-date-picker-month-item:nth-child(12).cv-date-picker-month-selected,
.cv-date-picker-month-item:nth-child(12).cv-item-center,
.cv-date-picker-month-item:nth-child(12).cv-date-picker-month-selected.cv-item-center {
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 23px !important;
}

/* Year Items */
.cv-date-picker-year-item {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-align: center;
    border: none;
    border-radius: 0; /* No border radius */
    background: transparent;
    height: 50px; /* Fixed height for each item - same as month */
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center; /* Snap to center */
    opacity: 0.4; /* Default: faded but visible */
    transform: scale(0.85); /* Default: smaller */
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.cv-date-picker-year-item:hover {
    opacity: 0.6;
}

.cv-date-picker-year-item:last-child {
    border-bottom: none;
}

.cv-date-picker-year-item.cv-date-picker-year-selected {
    background: #8B1538; /* Full red background when selected */
    color: white;
    font-weight: 600;
    opacity: 1;
    transform: scale(1);
    border-radius: 0; /* No border radius */
    height: 50px; /* Same height as month */
    min-height: 50px;
}

.cv-date-picker-year-item.cv-date-picker-year-selected:hover {
    background: #8B1538;
    color: white;
}

/* When selected AND center - full red background */
.cv-date-picker-year-item.cv-date-picker-year-selected.cv-item-center {
    background: #8B1538 !important;
    color: white !important;
    border-radius: 0 !important; /* No border radius */
    height: 50px !important; /* Same height as month */
    min-height: 50px !important;
}

.cv-date-picker-year-item.cv-date-picker-year-selected.cv-item-center:hover {
    background: #8B1538 !important;
    color: white !important;
}

/* Middle item highlight - will be controlled by JavaScript */
.cv-date-picker-year-item.cv-item-center {
    opacity: 1 !important;
    transform: scale(1) !important;
    font-weight: 600 !important;
    color: #8B1538 !important;
    background: rgba(139, 21, 56, 0.12) !important;
    font-size: 17px;
    border-radius: 0 !important; /* No border radius */
    height: 50px !important; /* Same height as month */
    min-height: 50px !important;
}

.cv-date-picker-year-item.cv-date-picker-year-selected:hover {
    background: #8B1538;
    color: white;
}

/* Footer with Reset and Done buttons */
.cv-date-picker-year-month-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.cv-date-picker-reset-btn,
.cv-date-picker-done-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    user-select: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cv-date-picker-reset-btn {
    background: #ffffff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.cv-date-picker-reset-btn:hover {
    background: #f8f8f8;
    color: #333;
    border-color: #d0d0d0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.cv-date-picker-reset-btn:focus {
    background: #ffffff; /* Keep white background on focus */
    color: #666;
    border-color: #e0e0e0;
    outline: none; /* Remove default focus outline */
    box-shadow: none; /* Remove any focus shadow */
}

.cv-date-picker-reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cv-date-picker-done-btn {
    background: #8B1538;
    color: white;
    box-shadow: 0 2px 6px rgba(139, 21, 56, 0.3);
}

.cv-date-picker-done-btn:hover {
    background: #a01842;
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.4);
    transform: translateY(-1px);
}

.cv-date-picker-done-btn:active {
    background: #720f2d;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(139, 21, 56, 0.3);
}

/* Scrollbar styling for columns - Hidden but functional */
.cv-date-picker-month-column::-webkit-scrollbar,
.cv-date-picker-year-column::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
    width: 0;
    height: 0;
}

.cv-date-picker-month-column::-webkit-scrollbar-track,
.cv-date-picker-year-column::-webkit-scrollbar-track {
    display: none;
}

.cv-date-picker-month-column::-webkit-scrollbar-thumb,
.cv-date-picker-year-column::-webkit-scrollbar-thumb {
    display: none;
}

.cv-date-picker-month-column::-webkit-scrollbar-thumb:hover,
.cv-date-picker-year-column::-webkit-scrollbar-thumb:hover {
    display: none;
}

/* Smooth Transitions */

.cv-date-picker-month-item {
    padding: 8px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
    user-select: none;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.cv-date-picker-month-item:hover {
    background: #f5f5f5;
    color: #333;
}

.cv-date-picker-month-item.cv-date-picker-month-selected {
    background: #8B1538;
    color: white;
    font-weight: 600;
}

.cv-date-picker-month-item.cv-date-picker-month-selected:hover {
    background: #8B1538;
    color: white;
}

/* Scrollbar for year list */
.cv-date-picker-year-month-view .cv-date-picker-year-list::-webkit-scrollbar {
    width: 6px;
}

.cv-date-picker-year-month-view .cv-date-picker-year-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cv-date-picker-year-month-view .cv-date-picker-year-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.cv-date-picker-year-month-view .cv-date-picker-year-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

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

.cv-date-picker-calendar {
    transition: all 0.2s ease-out;
}

/* Responsive Date Picker */
@media (max-width: 800px) {
    .cv-date-picker {
        width: calc(100vw - 40px);
        max-width: 340px; /* Wider to accommodate two columns side by side */
        min-width: 300px; /* Ensure minimum width for two columns */
        left: 50% !important;
        transform: translateX(-50%);
        right: auto;
        padding: 12px;
    }

    .cv-field-input-wrapper {
        position: relative;
    }

    .cv-date-picker-header {
        margin-bottom: 10px;
        gap: 8px;
    }

    .cv-date-picker-month-year {
        font-size: 13px;
        padding: 3px 6px;
    }

    .cv-date-picker-nav {
        font-size: 14px;
        padding: 3px 6px;
        min-width: 24px;
        height: 24px;
    }

    .cv-date-picker-day {
        min-height: 28px;
        font-size: 12px;
    }

    .cv-date-picker-day-name {
        font-size: 10px;
        padding: 4px 0;
    }

    .cv-date-picker-year-month-view {
        padding-top: 12px;
    }

    .cv-date-picker-year-month-content {
        flex-direction: row; /* Keep side-by-side layout on mobile */
        height: 150px; /* Maintain fixed height */
        min-height: 150px;
        max-height: 150px;
    }

    .cv-date-picker-month-column,
    .cv-date-picker-year-column {
        height: 150px; /* Maintain fixed height */
        max-height: 150px;
        flex: 0 0 50%; /* Keep equal width columns */
        min-width: 0; /* Allow columns to shrink if needed */
    }

    .cv-date-picker-month-item,
    .cv-date-picker-year-item {
        padding: 12px 8px; /* Reduced horizontal padding for mobile */
        font-size: 14px;
        height: 50px;
        min-height: 50px;
    }

    .cv-date-picker-year-month-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
    }

    .cv-date-picker-reset-btn,
    .cv-date-picker-done-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .cv-date-picker {
        width: calc(100vw - 30px);
        max-width: 320px; /* Wider to accommodate two columns */
        min-width: 280px; /* Ensure minimum width for two columns */
    }

    .cv-date-picker-year-month-content {
        flex-direction: row; /* Keep side-by-side layout */
        height: 150px;
    }

    .cv-date-picker-month-column,
    .cv-date-picker-year-column {
        flex: 0 0 50%; /* Keep equal width columns */
        height: 150px;
    }

    .cv-date-picker-month-item,
    .cv-date-picker-year-item {
        padding: 12px 6px; /* Further reduced padding for smaller screens */
        font-size: 13px;
    }

    .cv-photo-modal-content {
        width: 95%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .cv-date-picker {
        width: calc(100vw - 20px);
        max-width: 320px; /* Wider to accommodate two columns */
        min-width: 280px; /* Ensure minimum width for two columns */
        padding: 10px;
    }
    
    .cv-date-picker-year-month-content {
        flex-direction: row; /* Keep side-by-side layout on small mobile */
        height: 150px; /* Maintain fixed height */
        min-height: 150px;
        max-height: 150px;
    }
    
    .cv-date-picker-month-column,
    .cv-date-picker-year-column {
        height: 150px; /* Maintain fixed height */
        flex: 0 0 50%; /* Keep equal width columns */
        min-width: 0; /* Allow columns to shrink if needed */
    }

    .cv-date-picker-month-item,
    .cv-date-picker-year-item {
        padding: 12px 4px; /* Minimal padding for small screens */
        font-size: 13px;
        height: 50px;
        min-height: 50px;
        white-space: nowrap; /* Prevent text wrapping */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cv-date-picker-header {
        gap: 6px;
    }

    .cv-date-picker-month-year {
        font-size: 12px;
        padding: 2px 4px;
    }

    .cv-date-picker-nav {
        font-size: 12px;
        padding: 2px 4px;
        min-width: 20px;
        height: 20px;
    }

    .cv-date-picker-day {
        min-height: 24px;
        font-size: 11px;
    }

    .cv-date-picker-day-name {
        font-size: 9px;
    }

    .cv-date-picker-year-month-view {
        padding-top: 10px;
    }
    
    .cv-date-picker-year-month-footer {
        padding: 10px 12px;
    }
    
    .cv-date-picker-reset-btn,
    .cv-date-picker-done-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cv-date-picker-year-month-view .cv-date-picker-year-list {
        max-height: 250px;
        gap: 4px;
    }

    .cv-date-picker-year-dropdown-header {
        padding: 8px 10px;
    }
}

/* Extra small mobile devices (360px and below) */
@media (max-width: 360px) {
    .cv-date-picker {
        width: calc(100vw - 16px);
        max-width: 100%;
        min-width: 280px;
        padding: 8px;
    }
    
    .cv-date-picker-year-month-content {
        height: 140px; /* Slightly smaller height for very small screens */
        min-height: 140px;
        max-height: 140px;
    }
    
    .cv-date-picker-month-column,
    .cv-date-picker-year-column {
        height: 140px;
    }
    
    .cv-date-picker-month-item,
    .cv-date-picker-year-item {
        padding: 10px 3px; /* Even more minimal padding */
        font-size: 12px;
        height: 46px;
        min-height: 46px;
    }
    
    .cv-date-picker-header {
        gap: 4px;
    }
    
    .cv-date-picker-month-year {
        font-size: 11px;
    }
    
    .cv-date-picker-nav {
        font-size: 11px;
        min-width: 18px;
        height: 18px;
    }
    
    .cv-date-picker-day {
        min-height: 22px;
        font-size: 10px;
    }
    
    .cv-date-picker-day-name {
        font-size: 8px;
    }
    
    .cv-date-picker-reset-btn,
    .cv-date-picker-done-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .cv-date-picker-year-label {
        font-size: 13px;
    }

    .cv-date-picker-year-dropdown-icon {
        font-size: 9px;
    }

    .cv-date-picker-year-month-grid {
        gap: 8px;
        padding: 12px;
    }

    .cv-date-picker-month-item {
        padding: 8px 8px;
        font-size: 12px;
        min-height: 40px;
    }
}

/* Photo Upload Modal */
.cv-photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.cv-photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-photo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cv-photo-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    overflow: hidden;
}

.cv-photo-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cv-photo-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #8B1538;
    margin: 0;
}

.cv-photo-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.cv-photo-preview-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 300px;
}

.cv-photo-modal-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.cv-photo-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cv-photo-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.cv-photo-option:hover {
    background: #f5f5f5;
}

.cv-photo-radio {
    margin: 0;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8B1538;
}

.cv-photo-radio-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.cv-photo-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: white;
}

.cv-photo-modal-cancel {
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #333;
}

.cv-photo-modal-cancel:hover {
    background: #e5e5e5;
    border-color: #d0d0d0;
}

/* Crop Profile Picture Modal */
.cv-crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
}

.cv-crop-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-crop-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cv-crop-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    overflow: hidden;
}

.cv-crop-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cv-crop-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #8B1538;
    margin: 0;
}

.cv-crop-modal-body {
    display: flex;
    gap: 30px;
    padding: 25px;
    min-height: 400px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.cv-crop-area {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.cv-crop-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-crop-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.cv-crop-preview-area {
    width: 280px;
    flex-shrink: 0;
}

.cv-crop-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #8B1538;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.cv-crop-preview-container {
    width: 100%;
}

.cv-crop-preview-box {
    width: 200px;
    height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-crop-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: white;
}

.cv-crop-modal-cancel {
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #333;
}

.cv-crop-modal-cancel:hover {
    background: #e5e5e5;
    border-color: #d0d0d0;
}

.cv-crop-modal-save {
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #8B1538;
    background: #8B1538;
    color: white;
}

.cv-crop-modal-save:hover {
    background: #6d1029;
    border-color: #6d1029;
}

/* Mobile Responsive Styles for Photo Modals */
@media (max-width: 768px) {
    .cv-photo-modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }

    .cv-photo-modal.active {
        align-items: flex-start;
        padding-top: 20px;
    }

    .cv-photo-preview-container {
        min-height: 150px;
        max-height: 250px;
    }

    .cv-photo-modal-header {
        padding: 15px 20px;
    }

    .cv-photo-modal-body {
        padding: 20px;
    }

    .cv-photo-modal-footer {
        padding: 12px 20px;
    }

    .cv-photo-modal-title {
        font-size: 16px;
    }

    .cv-crop-modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }

    .cv-crop-modal.active {
        align-items: flex-start;
        padding-top: 20px;
    }

    .cv-crop-modal-body {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        min-height: auto;
    }

    .cv-crop-area {
        min-height: 250px;
        max-height: 300px;
    }

    .cv-crop-preview-area {
        width: 100%;
    }

    .cv-crop-preview-box {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .cv-crop-modal-header {
        padding: 15px 20px;
    }

    .cv-crop-modal-footer {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .cv-crop-modal-title {
        font-size: 16px;
    }

    .cv-crop-modal-cancel,
    .cv-crop-modal-save {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cv-photo-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .cv-photo-modal.active {
        padding-top: 0;
        align-items: stretch;
    }

    .cv-photo-preview-container {
        min-height: 120px;
        max-height: 200px;
    }

    .cv-photo-modal-header {
        padding: 12px 15px;
    }

    .cv-photo-modal-body {
        padding: 15px;
    }

    .cv-photo-modal-footer {
        padding: 10px 15px;
    }

    .cv-photo-modal-title {
        font-size: 15px;
    }

    .cv-photo-modal-cancel {
        padding: 12px 20px;
        width: 100%;
    }

    .cv-crop-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .cv-crop-modal.active {
        padding-top: 0;
        align-items: stretch;
    }

    .cv-crop-modal-body {
        padding: 15px;
        gap: 15px;
    }

    .cv-crop-area {
        min-height: 200px;
        max-height: 250px;
    }

    .cv-crop-preview-box {
        width: 120px;
        height: 120px;
    }

    .cv-crop-modal-header {
        padding: 12px 15px;
    }

    .cv-crop-modal-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .cv-crop-modal-title {
        font-size: 15px;
    }

    .cv-crop-modal-cancel,
    .cv-crop-modal-save {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .cropper-container {
        max-height: 250px;
    }
}

/* Cropper.js styles */
.cropper-container {
    direction: ltr;
    max-width: 100%;
    max-height: 400px;
}

.cropper-view-box {
    outline: 2px dashed rgba(255, 255, 255, 0.8);
    outline-offset: -2px;
}

.cropper-face {
    background-color: transparent;
}

.cropper-line {
    background-color: rgba(255, 255, 255, 0.3);
}

.cropper-point {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 1px solid #8B1538;
    border-radius: 50%;
}

/* Responsive Crop Modal */
@media (max-width: 768px) {
    .cv-crop-modal-body {
        flex-direction: column;
    }

    .cv-crop-preview-area {
        width: 100%;
    }

    .cv-crop-preview-box {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Admin Template Settings */
.cv-builder-settings .cv-template-list {
    margin-top: 24px;
}

.cv-template-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
    background: #fff;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cv-template-thumb-wrapper {
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.cv-template-thumb-wrapper img.cv-template-thumb.hidden {
    display: none;
}

.cv-template-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-template-fields {
    flex: 1;
}

.cv-template-input {
    width: 100%;
}

.cv-template-actions {
    margin-top: 8px;
}

.cv-template-actions .button {
    margin-right: 6px;
}

/* Image Upload Fields */
.cv-image-upload-field {
    margin-top: 8px;
    min-height: 120px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 10px;
    background: #f9f9f9;
    position: relative;
}

.cv-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #999;
}

.cv-image-placeholder-text {
    font-size: 14px;
    color: #999;
}

.cv-image-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.cv-image-preview-img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

.cv-image-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cv-image-remove:hover {
    background: #a00;
}

.button:focus {
    background-color: transparent !important;
}

/* CV Count Display Styles */
.cv-count-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    padding: 8px 12px;
    background-color: #FEEFC5;
    border-radius: 6px;
}

.cv-count-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}

.cv-count-number {
    font-weight: 600;
    color: #763636;
    font-size: 14px;
    line-height: 1.4;
}

.cv-count-text {
    color: #763636;
    font-size: 14px;
    line-height: 1.4;
}
