﻿/* =========================================================
   LOAN APPLICATION UI
   Minimal Premium Design
   RTL / Persian
========================================================= */


/* =========================================================
   01. ROOT & RESET
========================================================= */

/*------------------------------------------------------------------

[Typography]

Body :		'Nunito Sans', sans-serif;
-------------------------------------------------------------------*/
@font-face {
    font-family: Vazir;
    src: url('../../../../Fonts/Vazir/Vazir-FD.eot');
    src: url('../../../Fonts/Vazir/Vazir-FD.eot?#iefix') format('embedded-opentype'), url('../../../Fonts/Vazir/Vazir-FD.woff') format('woff'), url('../../../Fonts/Vazir/Vazir-FD.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../../../Fonts/Vazir/Vazir-Bold-FD.eot');
    src: url('../../../Fonts/Vazir/Vazir-Bold-FD.eot?#iefix') format('embedded-opentype'), url('../../../Fonts/Vazir/Vazir-Bold-FD.woff') format('woff'), url('../../../Fonts/Vazir/Vazir-Bold-FD.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: Vazir;
    src: url('../../../Fonts/Vazir/Vazir-Light-FD.eot');
    src: url('../../../Fonts/Vazir/Vazir-Light-FD.eot?#iefix') format('embedded-opentype'), url('../../../Fonts/Vazir/Vazir-Light-FD.woff') format('woff'), url('../../../Fonts/Vazir/Vazir-Light-FD.ttf') format('truetype');
    font-weight: 300;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Main Colors */
    --primary: #1769e0;
    --primary-dark: #0f56bd;
    --primary-light: #edf5ff;
    /* Status */
    --success: #18b981;
    --success-light: #eafaf5;
    --danger: #ef5b63;
    --danger-light: #fff0f1;
    --warning: #f59e0b;
    --warning-light: #fff8e8;
    /* Text */
    --text: #172b4d;
    --text-light: #718096;
    --text-muted: #9aa8b8;
    /* Background */
    --background: #f6f9fd;
    --white: #ffffff;
    /* Borders */
    --border: #e5edf7;
    --border-dark: #d5e0ed;
    /* Radius */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    /* Shadows */
    --shadow-sm: 0 5px 18px rgba(28, 70, 120, .05);
    --shadow: 0 8px 30px rgba(28, 70, 120, .06);
    --shadow-lg: 0 15px 40px rgba(28, 70, 120, .09);
}


html {
    scroll-behavior: smooth;
}


body {
    direction: rtl;
    font-family: Vazir, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


button {
    border: none;
}


a {
    color: inherit;
}


/* =========================================================
   02. PAGE
========================================================= */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: pageEnter .55s ease both;
}


@keyframes pageEnter {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   03. CONTAINER
========================================================= */

.container {
    width: min( 1180px, calc(100% - 40px) );
    margin-left: auto;
    margin-right: auto;
}


.center-content {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   04. HEADER
========================================================= */

.header {
    height: 76px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}


.header-inner {
    width: min( 1180px, calc(100% - 40px) );
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   05. LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}


.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, box-shadow .3s ease;
}


    .logo-icon:hover {
        transform: translateY(-2px) rotate(-2deg);
        box-shadow: 0 8px 20px rgba(23,105,224,.12);
    }


.logo-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}


.logo-text span {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-size: 11px;
}


/* =========================================================
   06. MAIN
========================================================= */

.main {
    flex: 1;
    padding: 50px 0;
}


/* =========================================================
   07. CARD
========================================================= */

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    animation: cardEnter .55s ease both;
}


@keyframes cardEnter {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}


.card-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 2;
    margin-bottom: 28px;
}


/* Login card */

.login-card {
    animation: loginCardEnter .7s cubic-bezier(.2,.8,.2,1) both;
}


@keyframes loginCardEnter {

    from {
        opacity: 0;
        transform: translateY(25px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   08. FORM
========================================================= */

.form-group {
    margin-bottom: 20px;
}


.form-label {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 700;
}


.input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
    padding: 0 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .2s ease;
}


    .input::placeholder {
        color: #aab6c4;
    }


    .input:focus {
        background: #ffffff;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(23,105,224,.08), 0 6px 18px rgba(23,105,224,.05);
        transform: translateY(-1px);
    }


/* =========================================================
   09. BUTTONS
========================================================= */

.btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}


.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(23,105,224,.18);
}


    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(23,105,224,.25);
    }


    .btn-primary:active {
        transform: translateY(0);
    }


.btn-light {
    background: var(--primary-light);
    color: var(--primary);
}


    .btn-light:hover {
        background: #e4f0ff;
        transform: translateY(-1px);
    }


/* =========================================================
   10. RIPPLE EFFECT
========================================================= */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    transform: scale(0);
    animation: rippleEffect .6s linear;
    pointer-events: none;
}


@keyframes rippleEffect {

    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* =========================================================
   11. ALERT
========================================================= */

.alert {
    padding: 17px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.9;
    animation: alertEnter .45s ease both;
}


@keyframes alertEnter {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.alert-success {
    background: var(--success-light);
    color: #087b57;
    border: 1px solid #c9f2e3;
}


.alert-danger {
    background: var(--danger-light);
    color: #b4232c;
    border: 1px solid #ffd5d8;
}


.alert-warning {
    background: var(--warning-light);
    color: #9a6700;
    border: 1px solid #ffe9ad;
}


/* =========================================================
   12. STEPPER
========================================================= */

.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
}


.step {
    display: flex;
    align-items: center;
    flex: 1;
}


.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf2f8;
    color: #8a99ac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}


.step.active .step-circle {
    background: var(--primary);
    color: #ffffff;
    animation: stepPulse 2s infinite;
}


.step.completed .step-circle {
    background: var(--success);
    color: #ffffff;
}


.step-text {
    margin-right: 8px;
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
}


.step.active .step-text {
    color: var(--primary);
    font-weight: 700;
}


.step-line {
    height: 1px;
    background: var(--border);
    flex: 1;
    margin: 0 12px;
}


.step.completed + .step-line {
    background: linear-gradient( to left, #18b981, #bdeedf );
}


@keyframes stepPulse {

    0%, 100% {
        box-shadow: 0 0 0 4px rgba(23,105,224,.08);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(23,105,224,.04);
    }
}


/* =========================================================
   13. OTP
========================================================= */

.otp-container {
    display: flex;
    direction: ltr;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
}


.otp-input {
    width: 48px;
    height: 58px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    outline: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


    .otp-input:focus {
        transform: translateY(-3px);
        background: #ffffff;
        border-color: var(--primary);
        box-shadow: 0 8px 20px rgba(23,105,224,.10), 0 0 0 4px rgba(23,105,224,.07);
    }


    .otp-input.filled {
        animation: otpFilled .25s ease;
    }


@keyframes otpFilled {

    0% {
        transform: scale(.85);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================================
   14. TIMER
========================================================= */

.timer-box {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
}


.timer {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-top: 5px;
    transition: color .25s ease;
}


    .timer.warning {
        color: var(--warning);
        animation: timerPulse 1.2s infinite;
    }


    .timer.danger {
        color: var(--danger);
        animation: timerPulse .8s infinite;
    }


@keyframes timerPulse {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}


/* =========================================================
   15. RESEND
========================================================= */

.resend {
    display: block;
    text-align: center;
    margin: 20px 0;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s ease;
}


    .resend:hover {
        color: var(--primary-dark);
    }


    .resend.disabled {
        color: #aab5c3;
        pointer-events: none;
    }


/* =========================================================
   16. DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


/* =========================================================
   17. INFO CARD
========================================================= */

.info-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: cardEnter .55s ease both;
}


    .info-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
        border-color: #d9e6f5;
    }


    .info-card.full {
        grid-column: 1 / -1;
    }


    .info-card:nth-child(1) {
        animation-delay: .08s;
    }


    .info-card:nth-child(2) {
        animation-delay: .16s;
    }


    .info-card:nth-child(3) {
        animation-delay: .24s;
    }


.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}


.info-card-title {
    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   18. ICON SYSTEM
========================================================= */

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}


.icon-sm {
    width: 16px;
    height: 16px;
}


.icon-lg {
    width: 26px;
    height: 26px;
}


.icon-xl {
    width: 42px;
    height: 42px;
}


.icon-box {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}


    .icon-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(23,105,224,.12);
    }


/* =========================================================
   19. INFO GRID
========================================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.info-item span {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 7px;
}


.info-item strong {
    font-size: 15px;
    font-weight: 700;
    color : black;
}


/* =========================================================
   20. FINANCIAL GRID
========================================================= */

.financial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}


.financial-item {
    padding: 18px;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}


    .financial-item:hover {
        transform: translateY(-2px);
        border-color: #d7e5f5;
        box-shadow: var(--shadow-sm);
    }


    .financial-item span {
        color: var(--text-light);
        display: block;
        font-size: 11px;
        margin-bottom: 9px;
    }


    .financial-item strong {
        font-size: 15px;
        font-weight: 700;
    }


    .financial-item small {
        color: var(--text-light);
        font-size: 10px;
        margin-right: 3px;
    }


/* =========================================================
   21. CONDITIONS
========================================================= */

.condition {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}


    .condition:hover {
        transform: translateX(-2px);
        border-color: #cddff4;
        background: #fbfdff;
    }


    .condition input {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 1.5px solid #cbd7e6;
        border-radius: 6px;
        background: #ffffff;
        position: relative;
        cursor: pointer;
        flex-shrink: 0;
        margin-top: 1px;
        transition: .2s ease;
    }


        .condition input:checked {
            background: var(--primary);
            border-color: var(--primary);
            transform: scale(1.05);
        }


            .condition input:checked::after {
                content: "";
                position: absolute;
                width: 5px;
                height: 10px;
                border-right: 2px solid white;
                border-bottom: 2px solid white;
                transform: rotate(45deg) translate(-1px, -2px);
                top: 2px;
                left: 6px;
            }


    .condition:has(input:checked) {
        background: #f5faff;
        border-color: #bcd8fa;
        box-shadow: 0 5px 15px rgba(23,105,224,.05);
    }


    .condition span {
        font-size: 13px;
        line-height: 1.8;
    }


/* =========================================================
   22. REQUEST LIST
========================================================= */

.requests {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.request {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: cardEnter .55s ease both;
}


    .request:hover {
        transform: translateY(-2px);
        border-color: #d7e5f5;
        box-shadow: var(--shadow-sm);
    }


.request-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}


.request-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 11px;
}


/* =========================================================
   23. STATUS
========================================================= */

.status {
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    font-weight: 600;
}


    .status.success {
        background: var(--success-light);
        color: #0b8a62;
    }


    .status.pending {
        background: var(--primary-light);
        color: var(--primary);
    }


    .status.danger {
        background: var(--danger-light);
        color: var(--danger);
    }


/* =========================================================
   24. SUCCESS PAGE
========================================================= */

.success-page {
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}


    .success-page h1 {
        font-size: 27px;
        margin-bottom: 12px;
        animation: successTextEnter .6s .3s ease both;
    }


    .success-page p {
        color: var(--text-light);
        line-height: 2;
        animation: successTextEnter .6s .4s ease both;
    }


@keyframes successTextEnter {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   25. SUCCESS ICON
========================================================= */

.success-svg {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: block;
}


.success-circle {
    stroke: var(--success);
    stroke-width: 2;
    fill: #e9faf4;
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
    animation: drawCircle .7s ease forwards;
}


.success-check {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck .45s .55s ease forwards;
}


@keyframes drawCircle {

    to {
        stroke-dashoffset: 0;
    }
}


@keyframes drawCheck {

    to {
        stroke-dashoffset: 0;
    }
}


/* =========================================================
   26. REQUEST NUMBER
========================================================= */

.request-number {
    margin: 25px 0;
    background: #f7faff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    animation: cardEnter .55s .25s ease both;
}


    .request-number span {
        display: block;
        font-size: 11px;
        color: var(--text-light);
        margin-bottom: 7px;
    }


    .request-number strong {
        font-size: 20px;
        color: var(--primary);
        letter-spacing: 1px;
    }


/* =========================================================
   27. UTILITY
========================================================= */

.text-muted {
    color: var(--text-light);
}


.text-primary {
    color: var(--primary);
}


.text-success {
    color: var(--success);
}


.text-danger {
    color: var(--danger);
}


.text-warning {
    color: var(--warning);
}


.text-center {
    text-align: center;
}


.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}


/* =========================================================
   28. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   29. RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }


    .info-card.full {
        grid-column: auto;
    }


    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .financial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   30. RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 24px);
    }


    .header {
        height: 68px;
    }


    .header-inner {
        width: calc(100% - 24px);
    }


    .main {
        padding: 25px 0;
    }


    .card {
        padding: 20px;
    }


    .card-title {
        font-size: 20px;
    }


    .info-grid {
        grid-template-columns: 1fr;
    }


    .financial-grid {
        grid-template-columns: 1fr;
    }


    .request {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .request-meta {
        flex-direction: column;
        gap: 7px;
    }


    .stepper {
        margin-bottom: 25px;
    }


    .step-text {
        font-size: 9px;
    }


    .step-line {
        margin: 0 6px;
    }


    .otp-input {
        width: 43px;
        height: 53px;
    }


    .success-page h1 {
        font-size: 23px;
    }
}


/* =========================================================
   31. VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .otp-container {
        gap: 5px;
    }


    .otp-input {
        width: 40px;
        height: 50px;
    }


    .step-text {
        display: none;
    }


    .step {
        justify-content: center;
    }
}


/* =========================================
   LOAN HISTORY TABLE - PREMIUM
========================================= */

.loan-history-card {
    overflow: hidden;
}

    /* Header */
    .loan-history-card .card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid #e8edf5;
        background: #fff;
    }

    .loan-history-card .card-title {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .loan-history-card .card-title-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: linear-gradient(135deg, #1769e0, #3989f3);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 16px rgba(23, 105, 224, .18);
    }

        .loan-history-card .card-title-icon svg {
            width: 21px;
            height: 21px;
        }

    .loan-history-card .card-title h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
        color: #172033;
    }

    .loan-history-card .card-title span {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        color: #8993a5;
    }

.loan-history-count {
    background: #eef5ff;
    color: #1769e0;
    border: 1px solid #d9e8ff;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}


/* Table wrapper */
.loan-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0;
}


/* Table */
.loan-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    direction: rtl;
}


    /* Table Header */
    .loan-table thead th {
        position: relative;
        background: #f5f8fc;
        color: #68758a;
        font-size: 12px;
        font-weight: 800;
        padding: 15px 16px;
        text-align: right;
        white-space: nowrap;
        border-bottom: 1px solid #e5eaf1;
    }

        /* خط آبی بالای عنوان‌ها */
        .loan-table thead th:first-child {
            border-right: 3px solid #1769e0;
        }

        /* جداکننده ظریف */
        .loan-table thead th + th {
            border-right: 1px solid #edf0f5;
        }


    /* Body */
    .loan-table tbody td {
        padding: 17px 16px;
        font-size: 13px;
        font-weight: 500;
        color: #303b4d;
        background: #fff;
        border-bottom: 1px solid #edf0f4;
        vertical-align: middle;
    }


    /* Hover */
    .loan-table tbody tr {
        transition: background .2s ease, transform .2s ease;
    }

        .loan-table tbody tr:hover td {
            background: #f8fbff;
        }


/* First column */
.loan-request-number {
    font-weight: 800 !important;
    color: #1769e0 !important;
    font-family: inherit;
    white-space: nowrap;
}


/* Amount */
.loan-amount {
    font-weight: 800 !important;
    color: #1c2738 !important;
    white-space: nowrap;
}

    .loan-amount small {
        color: #8b95a5;
        font-size: 10px;
        font-weight: 600;
        margin-right: 4px;
    }


/* Installment */
.loan-installment {
    font-weight: 700;
    color: #354052;
    white-space: nowrap;
}


/* Date */
.loan-date {
    color: #68758a;
    white-space: nowrap;
}


/* Duration */
.loan-duration {
    color: #596579;
    white-space: nowrap;
}


/* =========================================
   STATUS
========================================= */

.loan-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

    .loan-status::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex-shrink: 0;
    }


    /* Success */
    .loan-status.success {
        color: #087b58;
        background: #eafaf4;
        border: 1px solid #d0f1e4;
    }

        .loan-status.success::before {
            background: #18b981;
            box-shadow: 0 0 0 3px rgba(24,185,129,.10);
        }


    /* Warning */
    .loan-status.warning {
        color: #a26700;
        background: #fff7e8;
        border: 1px solid #f8e6bf;
    }

        .loan-status.warning::before {
            background: #f5a623;
            box-shadow: 0 0 0 3px rgba(245,166,35,.10);
        }


    /* Danger */
    .loan-status.danger {
        color: #c43d49;
        background: #fff0f2;
        border: 1px solid #f7d6da;
    }

        .loan-status.danger::before {
            background: #ef5b63;
            box-shadow: 0 0 0 3px rgba(239,91,99,.10);
        }


/* =========================================
   ACTION BUTTON
========================================= */

.loan-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 82px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #dce6f3;
    background: #f8fbff;
    color: #1769e0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}

    .loan-action-btn svg {
        width: 15px;
        height: 15px;
    }

    .loan-action-btn:hover {
        background: #1769e0;
        border-color: #1769e0;
        color: #fff;
        box-shadow: 0 5px 14px rgba(23,105,224,.18);
        transform: translateY(-1px);
    }


/* =========================================
   ROW DETAILS
========================================= */

.loan-table tbody tr:last-child td {
    border-bottom: none;
}


/* Right edge */
.loan-table tbody td:first-child {
    border-right: 3px solid transparent;
}

.loan-table tbody tr:hover td:first-child {
    border-right-color: #1769e0;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .loan-history-card .card-header {
        padding: 16px;
    }

    .loan-history-card .card-title-icon {
        width: 38px;
        height: 38px;
    }

    .loan-history-card .card-title h3 {
        font-size: 14px;
    }

    .loan-table thead th,
    .loan-table tbody td {
        padding: 13px 12px;
    }

    .loan-table {
        min-width: 850px;
    }
}