/* ReliefForge front-end styles — clean, self-contained, theme-friendly. */

.rfc-card {
    border: 1px solid #e2e2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 18px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    max-width: 720px;
}

.rfc-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.rfc-head h3 { margin: 0; font-size: 1.25rem; }

.rfc-balance {
    font-weight: 600;
    background: #f2f4f7;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: .9rem;
    white-space: nowrap;
}

.rfc-form { display: block; }

.rfc-field { display: block; margin: 12px 0; }
.rfc-field > span {
    display: block;
    font-size: .85rem;
    color: #444;
    margin-bottom: 4px;
}
.rfc-field input[type="number"],
.rfc-field input[type="text"],
.rfc-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cfd3da;
    border-radius: 8px;
    font-size: .95rem;
}

.rfc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
@media (max-width: 520px) {
    .rfc-grid { grid-template-columns: 1fr; }
}

.rfc-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-size: .9rem;
}

.rfc-more { margin: 14px 0; }
.rfc-more summary {
    cursor: pointer;
    font-size: .9rem;
    color: #2557a7;
}

.rfc-actions { margin-top: 16px; }

.rfc-btn {
    display: inline-block;
    background: #2557a7;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.rfc-btn:hover { background: #1c4587; }
.rfc-btn[disabled] { opacity: .5; cursor: not-allowed; }

.rfc-flash {
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: .92rem;
}
.rfc-success { background: #e7f6ec; color: #135f33; }
.rfc-error   { background: #fdecec; color: #8a1f1f; }

.rfc-status { text-align: center; }
.rfc-status.rfc-failed .rfc-status-text { color: #8a1f1f; }

.rfc-spinner {
    width: 34px; height: 34px;
    margin: 12px auto;
    border: 4px solid #e2e2e6;
    border-top-color: #2557a7;
    border-radius: 50%;
    animation: rfc-spin 1s linear infinite;
}
@keyframes rfc-spin { to { transform: rotate(360deg); } }

.rfc-history {
    width: 100%;
    border-collapse: collapse;
    max-width: 720px;
    font-size: .9rem;
}
.rfc-history th, .rfc-history td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}
.rfc-history th { background: #f7f8fa; }
