/* =============================================
   Fale Hafez – Main Admin Panel Styles
   Unique prefix: fh-panel-  /  fh-psc-
   ============================================= */

/* ---- Wrapper ---- */
#fh-panel-main-wrap {
    font-family: 'Tahoma', 'Vazirmatn', Arial, sans-serif;
    max-width: 900px;
    padding-bottom: 40px;
}

/* ---- Header ---- */
.fh-panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fff8ee 0%, #fff 100%);
    border: 1px solid #e0c87a;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 26px;
    box-shadow: 0 2px 12px rgba(200,150,26,.10);
    position: relative;
    overflow: hidden;
}

.fh-panel-header::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #b5451b 0%, #d4a017 100%);
    border-radius: 0 12px 12px 0;
}

.fh-panel-logo {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

.fh-panel-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #b5451b;
    margin: 0 0 4px;
    line-height: 1.2;
}

.fh-panel-tagline {
    color: #7a6a50;
    font-size: 0.9rem;
    margin: 0;
}

.fh-panel-tagline a {
    color: #c8961a;
    text-decoration: none;
    font-weight: 600;
}

.fh-panel-tagline a:hover {
    text-decoration: underline;
}

/* ---- Status Grid ---- */
.fh-panel-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

@media (max-width: 700px) {
    .fh-panel-status-grid { grid-template-columns: 1fr; }
}

.fh-panel-status-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}

.fh-panel-status-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

/* OK state */
.fh-psc-ok {
    border-color: #2a7d2e;
    background: linear-gradient(135deg, #f0fff1 0%, #fff 100%);
}

.fh-psc-ok .fh-psc-badge {
    background: #2a7d2e;
    color: #fff;
}

/* Missing state */
.fh-psc-missing {
    border-color: #c0392b;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.fh-psc-missing .fh-psc-badge {
    background: #c0392b;
    color: #fff;
}

.fh-psc-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.fh-psc-body h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #2c2c2c;
    font-weight: 700;
}

.fh-psc-body p {
    margin: 0 0 6px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
}

.fh-psc-body a {
    color: #0073aa;
    text-decoration: none;
}

.fh-psc-body a:hover { text-decoration: underline; }

.fh-psc-body code {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.85rem;
    color: #c0392b;
    font-weight: 700;
}

.fh-psc-hint {
    color: #888 !important;
    font-style: italic;
}

.fh-panel-sep { color: #ccc; }

/* ---- CTA Section ---- */
.fh-panel-cta-section {
    background: #fff;
    border: 1px solid #e0c87a;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 26px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(200,150,26,.08);
}

.fh-panel-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d4a017 0%, #b5451b 100%);
    color: #fff !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    font-family: 'Tahoma', Arial, sans-serif !important;
    padding: 14px 36px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(181,69,27,.30);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    text-decoration: none;
    height: auto !important;
    line-height: 1.4 !important;
}

.fh-panel-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(181,69,27,.40);
    filter: brightness(1.06);
    color: #fff !important;
}

.fh-panel-create-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(181,69,27,.25);
}

.fh-panel-btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.fh-panel-cta-hint {
    margin: 12px 0 0;
    color: #666;
    font-size: 0.88rem;
}

.fh-panel-all-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    background: #f0fff1;
    border: 1px solid #2a7d2e;
    color: #2a7d2e;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.93rem;
}

/* ---- Shortcodes Reference ---- */
.fh-panel-sc-ref {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 22px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.fh-panel-sc-ref-title {
    font-size: 1.05rem;
    color: #444;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.fh-panel-sc-ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 700px) {
    .fh-panel-sc-ref-grid { grid-template-columns: 1fr; }
}

.fh-panel-sc-ref-item {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
}

.fh-panel-sc-ref-item code {
    display: block;
    font-size: 0.88rem;
    color: #c0392b;
    font-weight: 700;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 8px;
    word-break: break-all;
    direction: ltr;
    text-align: left;
}

.fh-panel-sc-ref-item p {
    margin: 0;
    font-size: 0.83rem;
    color: #666;
    line-height: 1.5;
}
