/* CSS Code File Framework Layout */
.erip-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    max-width: 100%;
}
.erip-main-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}
.erip-card-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.erip-isolated-group {
    border-left: 4px solid #6366f1;
    background: #fafafa;
}
.erip-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 18px;
}
.erip-step-number {
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.erip-section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}
.erip-grid-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .erip-grid-columns { grid-template-columns: 1fr; }
    .erip-span-2 { grid-column: span 1 !important; }
}
.erip-span-2 { grid-column: span 2; }
.erip-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.erip-input-group input[type="text"],
.erip-input-group input[type="email"],
.erip-input-group input[type="date"],
.erip-input-group select,
.erip-input-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

/* Drag & Drop Optimization Area Rules */
.erip-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.2s ease;
}
.erip-dropzone.erip-drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}
.erip-drop-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}
.erip-dropzone-text {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 4px 0;
}
.erip-dropzone-subtext {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 14px 0;
}

/* Modern Clean Bootstrap-Style Button Classes */
.btn-primary.erip-bootstrap-btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn-primary.erip-bootstrap-btn:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.erip-add-node-btn {
    background: #f8fafc;
    color: #475569;
    border: 1px dashed #cbd5e1;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}
.erip-add-node-btn:hover {
    background: #f1f5f9;
}
.erip-dynamic-row {
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}
.erip-row-remove-btn {
    background: #fff5f5;
    color: #e11d48;
    border: 1px solid #ffe4e6;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.erip-submit-container {
    text-align: right;
    margin-top: 10px;
}
.erip-btn-submit-premium {
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
}
.erip-btn-submit-premium:hover {
    background: #1d4ed8;
}

.erip-alert-banner {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.erip-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.erip-alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.erip-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.erip-directory-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.erip-card-body { padding: 20px; }
.erip-card-body h4 { margin: 0 0 4px 0; font-size: 16px; color: #0f172a; }
.erip-dir-headline { font-size: 13px; color: #64748b; margin: 0 0 12px 0; }
.erip-job-id-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}
.erip-dir-meta { font-size: 12px; line-height: 1.6; color: #334155; }
.erip-card-footer {
    background: #f8fafc;
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    border-radius: 0 0 10px 10px;
}
.erip-action-link-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}
.erip-action-link-btn:hover { background: #f1f5f9; color: #0f172a; }

#erip-share-modal-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
}
.erip-modal-overlay {
    position: absolute; width: 100%; height: 100%; background: rgba(15,23,42,0.4);
}
.erip-modal-content-box {
    position: relative; background: #ffffff; padding: 24px; border-radius: 12px;
    width: 90%; max-width: 460px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.erip-modal-content-box h4 { margin: 0 0 8px 0; font-size: 15px; color: #0f172a; }
.erip-modal-content-box p { font-size: 12px; color: #64748b; margin: 0 0 12px 0; }
.erip-modal-content-box textarea {
    width: 100%; font-size: 12px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px;
    background: #f8fafc; resize: none; box-sizing: border-box;
}
.erip-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.erip-modal-actions button {
    padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; border:1px solid #cbd5e1; background:#fff;
}
#erip-copy-modal-btn { background: #2563eb; color: #fff; border: none; }
#erip-copy-modal-btn:hover { background: #1d4ed8; }
