html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.cursor-pointer {
    cursor: pointer;
}

/* Top donors card */

.donor-wrapper {
    text-align: center;
    transition: all 0.4s ease;
}

    .donor-wrapper:hover .donor-img-wrapper {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
        transform: scale(1.05);
        cursor: pointer;
    }

.donor-img-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #dc3545;
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
}

.donor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donor-name {
    font-weight: bold;
    font-size: 1rem;
    color: #dc3545;
    transition: color 0.3s ease;
}

.donor-blood {
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 4px;
}

.donor-wrapper:hover .donor-name {
    color: #c82333;
}

@media (max-width: 576px) {
    .donor-img-wrapper {
        width: 100px;
        height: 100px;
    }

    .donor-name {
        font-size: 0.95rem;
    }
}


/* available donors & search + filters */
.search-box {
    border: none;
    background: #f9f5f5;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
}

.filter-btn {
    border: none;
    background: #f0ebeb;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 8px;
    color: #5c4040;
    transition: background 0.3s;
}

    .filter-btn:hover {
        background: #e3dada;
    }

.availability-badge {
    border: none;
    border-radius: 16px;
    padding: 4px 12px;
    font-weight: 500;
}

.available {
    background-color: #f8d7da;
    color: #842029;
}

.unavailable {
    background-color: #e2e3e5;
    color: #6c757d;
}

.view-profile-link {
    color: #a94442;
    font-weight: 600;
    text-decoration: none;
}

    .view-profile-link:hover {
        text-decoration: underline;
    }

.donor-table th {
    font-weight: 600;
    color: #6c4a4a;
}

.donor-table td {
    vertical-align: middle;
}

.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
}


/* donors list */

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
    border-radius: 0.75rem;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #dc3545;
    }

.modal-content {
    border-radius: 0.75rem;
}

.badge-soft {
    background-color: #f8d7da;
    color: #842029;
}

.modern-card {
    border: 1px solid #f5c6cb;
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

    .modern-card:hover {
        border-color: #dc3545;
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.15);
        transform: translateY(-5px);
        background-color: #f8d7da;
    }

.blood-badge {
    width: 50px;
    height: 50px;
    background-color: #dc3545;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card-body ul li i {
    width: 20px;
}

@media (max-width: 576px) {
    .blood-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* my sent requests */
.request-card {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

    .request-card:hover {
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        transform: translateY(-4px);
    }

    .request-card .badge {
        font-size: 0.85rem;
        padding: 0.4em 0.75em;
    }

.btn-sm i {
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .request-card {
        padding: 0.75rem;
    }

        .request-card h5 {
            font-size: 1rem;
        }
}

/* my received request */
.request-card {
    background-color: #fff5f5;
    border-left: 5px solid #dc3545;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

    .request-card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        transform: translateY(-4px);
    }

.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.65em;
}

.btn-sm i {
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .request-card h5 {
        font-size: 1.1rem;
    }
}

/* top donors */
.leaderboard-table tbody tr {
    transition: all 0.2s ease;
}

    .leaderboard-table tbody tr:hover {
        background-color: #fff3f3;
    }


.gold-row {
    background-color: #fff8dc !important;
    font-weight: bold;
}

.silver-row {
    background-color: #f2f2f2 !important;
    font-weight: bold;
}

.bronze-row {
    background-color: #ffe5e5 !important;
    font-weight: bold;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .leaderboard-table td,
    .leaderboard-table th {
        font-size: 0.9rem;
    }

    .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}


/* Profile picture */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

/* leaderboard */
.gold-row {
    background-color: #fff9e6;
}

.silver-row {
    background-color: #f0f0f0;
}

.bronze-row {
    background-color: #fbe8d3;
}


/* phone number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}


/* confirm email */
.fa-envelope-circle-check {
    color: #28a745;
}