/* eDocsZip Generator – frontend.css */

.edocszip-fe-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1d2327;
}

.edocszip-fe-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #003366;
}

.edocszip-fe-intro {
    color: #555;
    margin-bottom: 24px;
}

/* ── Steps ── */
.edocszip-fe-step {
    background: #fff;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.edocszip-fe-step-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edocszip-fe-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #003366;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Controls ── */
.edocszip-fe-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.edocszip-fe-select {
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    min-width: 240px;
    background: #fff;
    color: #1d2327;
}

.edocszip-fe-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* ── Buttons ── */
.edocszip-fe-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s, opacity 0.15s;
}

.edocszip-fe-btn-primary {
    background: #003366;
    color: #fff !important;
}
.edocszip-fe-btn-primary:hover {
    background: #00264d;
}

.edocszip-fe-btn-secondary {
    background: #f0f4f8;
    color: #1d2327 !important;
    border: 1px solid #ccd0d4;
}
.edocszip-fe-btn-secondary:hover {
    background: #e2e8ed;
}

.edocszip-fe-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* ── Spinner ── */
.edocszip-fe-spinner {
    font-size: 20px;
    animation: edocszip-spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes edocszip-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Entry table ── */
.edocszip-fe-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 14px;
}
.edocszip-fe-table thead th {
    text-align: left;
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #dde1e5;
    font-weight: 600;
    color: #555;
}
.edocszip-fe-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.edocszip-fe-table tbody tr:hover td {
    background: #f0f7fc;
}
.edocszip-fe-table tbody tr.edocszip-fe-selected td {
    background: #dbeeff;
}
.edocszip-fe-table label {
    cursor: pointer;
    display: block;
    font-size: 13px;
}

/* ── Action boxes ── */
.edocszip-fe-action-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.edocszip-fe-action-box {
    flex: 1;
    min-width: 230px;
    background: #f8f9fa;
    border: 1px solid #dde1e5;
    border-radius: 5px;
    padding: 16px 18px;
}
.edocszip-fe-action-box h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1d2327;
}
.edocszip-fe-action-box p {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
}

/* ── Result / notices ── */
.edocszip-fe-notice {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid transparent;
}
.edocszip-fe-error {
    background: #fdf2f2;
    border-color: #f5c6cb;
    color: #721c24;
}
.edocszip-fe-success {
    background: #f0faf3;
    border-color: #b7dfca;
    color: #155724;
}
.edocszip-fe-note {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin: 0 0 10px;
}

#edocszip-fe-action-result {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid transparent;
}
