/* Shared Styles for Certification Repeater - Premium UI */

.cert-repeater-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #3b82f6;
    /* Accent border */
}

.cert-repeater-item:hover {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 8px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* .cert-repeater-item .remove-cert:first-child {
    display: none;
} */

.cert-repeater-item .remove-cert {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 10;
    background-color: #ef4444;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.cert-repeater-item .remove-cert:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.cert-repeater-item .form-label {
    color: #475569;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    margin: 4px;
    font-size: 13px;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.file-chip a {
    color: #2563eb;
    text-decoration: none;
}

.file-chip a:hover {
    text-decoration: underline;
}

.file-chip .btn-close {
    width: 0.4em;
    height: 0.4em;
    margin-left: 10px;
    background-size: 0.6em;
}

.file-drop-area {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.file-drop-area:hover,
.file-drop-area.asj-drop-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-drop-area p {
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cert-repeater-item {
        padding: 16px;
    }

    .cert-repeater-item .row>div {
        margin-bottom: 12px;
    }
}

.asj-add-btn {
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    border: 2px solid #3b82f6 !important;
    color: #3b82f6 !important;
}

.asj-add-btn:hover {
    background-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3) !important;
}

/* Fix for flatpickr calendar visibility */
.flatpickr-calendar {
    z-index: 999999 !important;
}