/* ==========================
   Blood Donor Module
========================== */

body{
    margin:0;
    background:#F5F7FB;
    font-family:"AdorshoLipi",sans-serif;
}


/* ==========================
   Header
========================== */

.page-header{
    position:relative;
    background:linear-gradient(135deg,#B71C1C,#E53935);
    color:#fff;
    height:65px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 14px rgba(198,40,40,.22);
}

.page-header h1{
    margin:0;
    font-size:22px;
}

.back-btn{
    position:absolute;
    left:15px;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.16);
    border-radius:50%;
    color:#fff;
    text-decoration:none;
    font-size:24px;
}


/* ==========================
   Page
========================== */

.page-content{
    padding:18px;
    padding-bottom:100px;
}


/* ==========================
   Search
========================== */

.search-box{
    width:100%;
    padding:15px 17px;
    border:none;
    outline:none;
    border-radius:17px;
    background:#fff;
    box-shadow:0 5px 16px rgba(0,0,0,.07);
    font-size:16px;
    margin-bottom:17px;
    box-sizing:border-box;
    font-family:"AdorshoLipi",sans-serif;
}

.search-box:focus{
    box-shadow:
        0 0 0 2px rgba(198,40,40,.12),
        0 6px 18px rgba(0,0,0,.08);
}


/* ==========================
   Blood Filter
========================== */

.blood-filter{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:4px 1px 18px;
    scrollbar-width:none;
}

.blood-filter::-webkit-scrollbar{
    display:none;
}

.blood-btn{
    min-width:58px;
    border:none;
    border-radius:25px;
    padding:10px 15px;
    background:#fff;
    color:#C62828;
    font-weight:bold;
    font-size:15px;
    box-shadow:0 3px 10px rgba(0,0,0,.07);
    cursor:pointer;
    font-family:"AdorshoLipi",sans-serif;
    white-space:nowrap;
}

.blood-btn.active{
    background:#C62828;
    color:#fff;
}


/* ==========================
   Donor Card
========================== */

.donor-card{
    position:relative;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    margin-bottom:20px;
    box-shadow:0 7px 22px rgba(0,0,0,.075);
    border:1px solid #f0f0f0;
}


/* ==========================
   Image
========================== */

.donor-image-wrap{
    position:relative;
    width:100%;
}

.donor-image{
    width:100%;
    height:190px;
    object-fit:cover;
    display:block;
    border-bottom:4px solid #E53935;
}


/* ==========================
   Donor Badge
========================== */

.donor-badge{
    position:absolute;
    top:14px;
    right:14px;
    background:rgba(198,40,40,.94);
    color:#fff;
    padding:7px 13px;
    border-radius:22px;
    font-size:13px;
    font-weight:bold;
    box-shadow:0 4px 12px rgba(0,0,0,.18);
}


/* ==========================
   Donor Info
========================== */

.donor-info{
    padding:18px;
}

.donor-title{
    margin-bottom:10px;
}

.donor-name{
    margin:0;
    color:#222;
    font-size:25px;
    line-height:1.35;
    font-weight:bold;
}


/* ==========================
   Blood Group
========================== */

.blood-group{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:70px;
    padding:8px 16px;
    border-radius:30px;
    color:#fff;
    font-size:18px;
    font-weight:bold;
    margin-bottom:14px;
    box-sizing:border-box;
}

.blood-a{
    background:#E53935;
}

.blood-b{
    background:#1E88E5;
}

.blood-o{
    background:#43A047;
}

.blood-ab{
    background:#8E24AA;
}


/* ==========================
   Donor Details
========================== */

.donor-details{
    display:flex;
    flex-direction:column;
    gap:9px;
    margin-top:2px;
}

.info-row{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:10px 12px;
    background:#F8F9FB;
    border:1px solid #EEF0F3;
    border-radius:12px;
    color:#333;
}

.info-icon{
    width:28px;
    min-width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border-radius:8px;
    font-size:16px;
}

.info-row div{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

.info-row small{
    color:#888;
    font-size:13px;
}

.info-row strong{
    color:#333;
    font-size:16px;
    font-weight:normal;
    line-height:1.4;
    word-break:break-word;
}


/* ==========================
   Ready Status
========================== */

.ready-box{
    margin-top:12px;
}

.ready-status{
    display:block;
    padding:11px 13px;
    border-radius:12px;
    font-size:16px;
    font-weight:bold;
    text-align:center;
}

.ready-yes{
    background:#E8F5E9;
    color:#2E7D32;
}

.ready-no{
    background:#FFEBEE;
    color:#C62828;
}

.ready-unknown{
    background:#F5F5F5;
    color:#757575;
}


/* ==========================
   Buttons
========================== */

.donor-buttons{
    display:flex;
    gap:10px;
    margin-top:17px;
}

.call-btn,
.details-btn,
.disabled-btn{
    flex:1;
    min-width:0;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:14px;
    text-decoration:none;
    font-size:17px;
    font-weight:bold;
    box-sizing:border-box;
    font-family:"AdorshoLipi",sans-serif;
}

.call-btn{
    background:#2E7D32;
    color:#fff;
    box-shadow:0 4px 10px rgba(46,125,50,.18);
}

.details-btn{
    background:#1976D2;
    color:#fff;
    box-shadow:0 4px 10px rgba(25,118,210,.18);
}

.disabled-btn{
    background:#BDBDBD;
    color:#fff;
}


/* ==========================
   Empty / Loading
========================== */

.loading-box{
    text-align:center;
    padding:30px 15px;
}

.empty-card{
    text-align:center;
}

.empty-card .donor-info{
    padding:35px 20px;
}

.empty-icon{
    font-size:45px;
    margin-bottom:8px;
}

.empty-card h2{
    margin:5px 0;
    font-size:22px;
    color:#333;
}

.empty-card p{
    margin:8px 0 0;
    color:#777;
    font-size:15px;
}


/* ==========================
   Responsive
========================== */

@media(max-width:480px){

    .page-content{
        padding:15px;
        padding-bottom:100px;
    }

    .donor-image{
        height:170px;
    }

    .donor-info{
        padding:16px;
    }

    .donor-name{
        font-size:22px;
    }

    .blood-group{
        font-size:17px;
        padding:7px 15px;
    }

    .info-row strong{
        font-size:15px;
    }

    .ready-status{
        font-size:15px;
    }

    .call-btn,
    .details-btn,
    .disabled-btn{
        font-size:16px;
        height:46px;
    }

}


/* Very Small Screen */

@media(max-width:350px){

    .donor-buttons{
        flex-direction:column;
    }

    .call-btn,
    .details-btn,
    .disabled-btn{
        width:100%;
    }

}