/* ============================================
   AVGOON RESUME FORM - استایل کامل
   ============================================ */

/* Messages */
#avgoon-form-messages {
    margin-bottom: 24px;
}

.avgoon-message {
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.avgoon-message-success {
    background: #D1FAE5;
    border-right: 4px solid #10B981;
    color: #065F46;
}

.avgoon-message-error {
    background: #FEE2E2;
    border-right: 4px solid #EF4444;
    color: #991B1B;
}

.avgoon-message-warning {
    background: #FEF3C7;
    border-right: 4px solid #F59E0B;
    color: #92400E;
}

/* Error state */
.avgoon-input.error,
.avgoon-textarea.error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
}

/* Field hint */
.avgoon-field-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 8px;
    transition: all 0.3s;
}

.avgoon-field-hint i {
    font-size: 11px;
}

/* File Upload */
.avgoon-file-upload {
    position: relative;
    margin-bottom: 10px;
}

.avgoon-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.avgoon-file-upload-placeholder {
    border: 2px dashed #CBD5E1;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    background: #F8FAFC;
    cursor: pointer;
}

.avgoon-file-upload-placeholder:hover {
    border-color: #3A4599;
    background: #EEF0FF;
}

.avgoon-file-upload-placeholder i {
    font-size: 40px;
    color: #3A4599;
    margin-bottom: 10px;
    display: block;
}

.avgoon-file-upload-placeholder p {
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
}

.avgoon-file-upload-placeholder span {
    font-size: 11px;
    color: #94A3B8;
}

/* Preview Images */
.avgoon-file-upload-preview {
    position: relative;
    display: inline-block;
    margin-top: 16px;
}

.avgoon-file-upload-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #E2E8F0;
}

.avgoon-remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #EF4444;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.avgoon-remove-image:hover {
    background: #DC2626;
    transform: scale(1.05);
}

.avgoon-existing-image {
    display: inline-block;
    position: relative;
    margin-top: 16px;
}

.avgoon-existing-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #E2E8F0;
}

.avgoon-remove-existing {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #EF4444;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery Preview */
.avgoon-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.avgoon-gallery-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.avgoon-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
}

.avgoon-remove-gallery,
.avgoon-remove-gallery-new {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #EF4444;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.avgoon-remove-gallery:hover,
.avgoon-remove-gallery-new:hover {
    background: #DC2626;
    transform: scale(1.05);
}

/* Editor Styles */
.avgoon-editor {
    margin-bottom: 24px;
}

.avgoon-editor textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
}

.avgoon-editor textarea:focus {
    outline: none;
    border-color: #3A4599;
}

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

/* Responsive */
@media (max-width: 768px) {
    .avgoon-file-upload-placeholder {
        padding: 20px 15px;
    }
    
    .avgoon-file-upload-placeholder i {
        font-size: 32px;
    }
    
    .avgoon-gallery-item {
        width: 80px;
        height: 80px;
    }
}