/* ============================================================
   USER PANEL (DSA Panel) — upanel.css
   ============================================================ */

/* Section wrapper */
.upanel-section {
    padding: 60px 0 80px;
    background: #f4f6fb;
    min-height: 70vh;
}

/* ── Stats Strip ─────────────────────────────────────────── */
.upanel-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.upanel-stat-card {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(30,42,74,.08);
    border-left: 4px solid #1e2a4a;
}
.upanel-stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: #1e2a4a;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.upanel-stat-icon--pending  { background: #e67e22; }
.upanel-stat-icon--approved { background: #27ae60; }
.upanel-stat-icon--profile  { background: #8e44ad; }
.upanel-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #1e2a4a;
    line-height: 1;
}
.upanel-stat-role {
    font-size: 15px !important;
}
.upanel-stat-label {
    display: block;
    font-size: 12px;
    color: #7a8299;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Two-column grid ──────────────────────────────────────── */
.upanel-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Profile Card ─────────────────────────────────────────── */
.upanel-profile-card {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(30,42,74,.09);
    overflow: hidden;
}
.upanel-profile-card__head {
    background: linear-gradient(135deg, #1e2a4a 0%, #2d3f6b 100%);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}
.upanel-profile-avatar {
    font-size: 48px;
    color: #c9a84c;
    flex-shrink: 0;
}
.upanel-profile-card__head h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.upanel-role-badge {
    background: #c9a84c;
    color: #1e2a4a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.upanel-profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.upanel-profile-list li {
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f8;
}
.upanel-profile-list li:last-child { border-bottom: none; }
.upanel-profile-label {
    font-size: 11px;
    color: #a0a8c0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}
.upanel-profile-label i { margin-right: 5px; color: #c9a84c; }
.upanel-profile-val {
    font-size: 13px;
    color: #1e2a4a;
    font-weight: 500;
    word-break: break-all;
}
.upanel-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: #f9fafc;
    border-top: 1px solid #eef0f8;
}

/* ── Applications Card ────────────────────────────────────── */
.upanel-apps-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(30,42,74,.09);
    overflow: hidden;
}
.upanel-apps-card__head {
    background: linear-gradient(135deg, #1e2a4a 0%, #2d3f6b 100%);
    padding: 16px 24px;
    border-bottom: 3px solid #c9a84c;
}
.upanel-apps-card__head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.upanel-apps-card__head h4 i { margin-right: 8px; color: #c9a84c; }

/* ── Table ────────────────────────────────────────────────── */
.upanel-table-wrap {
    overflow-x: auto;
    padding: 0;
}
.upanel-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
    font-size: 13px;
}
.upanel-table thead tr {
    background: #f4f6fb;
}
.upanel-table thead th {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #7a8299;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #eef0f8;
    white-space: nowrap;
}
.upanel-table tbody td {
    padding: 12px 14px;
    color: #1e2a4a;
    border-bottom: 1px solid #f2f4fa;
    vertical-align: middle;
}
.upanel-table tbody tr:hover td { background: #f9fafc; }
.upanel-td-date { white-space: nowrap; color: #7a8299 !important; font-size: 12px !important; }

/* ── Badges & Pills ───────────────────────────────────────── */
.upanel-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.upanel-status--approved { background: #e8f8f0; color: #27ae60; }
.upanel-status--pending  { background: #fef6e8; color: #e67e22; }

.upanel-loan-type {
    background: #edf2ff;
    color: #3a56b0;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.upanel-amt {
    font-weight: 700;
    color: #27ae60;
}
.upanel-wa-link {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.upanel-wa-link:hover { color: #1a8a4a; }

/* ── Empty State ──────────────────────────────────────────── */
.upanel-empty {
    text-align: center;
    padding: 60px 24px;
    color: #a0a8c0;
}
.upanel-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 14px;
    color: #c9a84c;
}
.upanel-empty p { font-size: 15px; margin-bottom: 18px; }

/* ── Buttons ──────────────────────────────────────────────── */
.upanel-btn {
    display: block;
    text-align: center;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}
.upanel-btn--primary {
    background: linear-gradient(135deg, #c9a84c, #e0c070);
    color: #1e2a4a;
}
.upanel-btn--primary:hover {
    background: linear-gradient(135deg, #b8942f, #c9a84c);
    color: #1e2a4a;
    text-decoration: none;
}
.upanel-btn--outline {
    background: transparent;
    color: #7a8299;
    border: 2px solid #e0e3ef;
}
.upanel-btn--outline:hover {
    background: #f4f6fb;
    color: #1e2a4a;
    text-decoration: none;
}
.upanel-btn i { margin-right: 6px; }

/* ── Registration success message ────────────────────────── */
.auth-login-success {
    background: #e8f8f0;
    color: #1a7a45;
    border: 1px solid #b2dfcb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.auth-login-success i { color: #27ae60; font-size: 16px; margin-top: 1px; flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .upanel-grid {
        flex-direction: column;
    }
    .upanel-profile-card {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .upanel-stats { gap: 12px; }
    .upanel-stat-card { min-width: 140px; padding: 14px; }
    .upanel-stat-num { font-size: 20px; }
}
