/**
 * CV Builder Admin Styles
 */

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

.cv-builder-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 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-builder-select-wrapper {
    position: relative;
    display: block;
    max-width: 320px;
}

.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;
}

/* 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: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.cv-builder-section.active .cv-builder-section-content {
    max-height: 5000px !important;
    padding: 20px !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: 4px;
    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;
}

.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: 4px;
    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 20px;
    }

    .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;
}

.cv-date-picker-month-year {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
}

.cv-date-picker-nav {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

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

.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;
}

/* Responsive Date Picker */
@media (max-width: 768px) {
    .cv-date-picker {
        width: 260px;
    }

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

/* 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;
    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;
}

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

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

.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: 300px;
    max-height: 400px;
}

.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;
}

.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;
    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;
}

.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;
}

.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;
}

.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;
}

/* 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;
}