/* =============================================
   Fale Hafez – Admin FAL_PAGE Settings Styles
   Unique prefix: fh-fp-
   ============================================= */

#fh-falpage-admin-wrap {
    font-family: 'Tahoma', 'Vazirmatn', Arial, sans-serif;
}

/* ---- Header ---- */
.fh-fp-admin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    border-bottom: 2px solid #c8961a;
    padding-bottom: 14px;
}

.fh-fp-logo {
    width: 28px;
    height: auto;
}

.fh-fp-admin-title {
    font-size: 1.4rem;
    color: #b5451b;
    margin: 0;
    font-weight: 700;
}

/* ---- Two-column grid ---- */
.fh-fp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .fh-fp-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Cards ---- */
.fh-fp-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px 26px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.fh-fp-card-title {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fh-fp-card-icon {
    font-size: 1.2rem;
    color: #c8961a;
}

/* ---- Form fields ---- */
.fh-fp-field {
    margin-bottom: 18px;
}

.fh-fp-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
    font-size: 0.93rem;
}

.fh-fp-input,
.fh-fp-textarea {
    direction: rtl;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 0.93rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.fh-fp-input:focus,
.fh-fp-textarea:focus {
    border-color: #c8961a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(200,150,26,0.18);
}

.fh-fp-textarea {
    resize: vertical;
}

.fh-fp-hint {
    color: #777;
    font-size: 0.82rem;
    margin: 4px 0 0;
}

.fh-fp-hint-success {
    color: #2a7d2e;
}

.fh-fp-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fh-fp-url-row .fh-fp-input {
    flex: 1;
}

.fh-fp-autofill-btn {
    white-space: nowrap;
    background: #f0e0a0 !important;
    border-color: #c8961a !important;
    color: #5a3d00 !important;
    font-size: 0.82rem !important;
}

.fh-fp-autofill-btn:hover {
    background: #e8d080 !important;
}

/* ---- Save button ---- */
.fh-fp-actions {
    padding-top: 6px;
}

.fh-fp-save-btn {
    background: #c8961a !important;
    border-color: #a07010 !important;
    color: #fff !important;
    padding: 8px 24px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
}

.fh-fp-save-btn:hover {
    background: #a07010 !important;
}

/* ---- Shortcode box ---- */
.fh-fp-shortcode-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.fh-fp-shortcode-code {
    flex: 1;
    font-size: 1.05rem;
    color: #c0392b;
    font-weight: 700;
    direction: ltr;
    text-align: left;
}

.fh-fp-copy-btn {
    background: #e8e8e8;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.fh-fp-copy-btn:hover {
    background: #d4a017;
    color: #fff;
    border-color: #a07010;
}

/* ---- Create button ---- */
.fh-fp-create-btn {
    width: 100%;
    text-align: center;
    padding: 9px 0 !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    margin-bottom: 4px;
}

.fh-fp-create-hint {
    color: #555;
    font-size: 0.87rem;
    margin-bottom: 14px;
    line-height: 1.7;
}

/* ---- Divider ---- */
.fh-fp-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0 16px;
}

/* ---- Preview ---- */
.fh-fp-preview-title {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 10px;
    font-weight: 600;
}

.fh-fp-preview-box {
    background: #fffdf5;
    border: 1px solid #e4d5b3;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Tahoma', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.fh-fp-preview-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b5451b, #d4a017, #b5451b);
    border-radius: 10px 10px 0 0;
}

.fh-fp-preview-h {
    color: #c0392b;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 4px 0 6px;
    text-align: center;
}

.fh-fp-preview-sub {
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    margin: 0 0 8px;
}

.fh-fp-preview-desc {
    color: #333;
    font-size: 0.85rem;
    line-height: 1.9;
    text-align: justify;
}

.fh-fp-preview-cta {
    text-align: center;
    margin-top: 16px;
}

.fh-fp-preview-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e8c84a, #c8961a, #e8c84a);
    color: #3b2000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1px solid #a07010;
}
