/* ========== FIXED ACTION BUTTON STYLES ========== */

/* Action Buttons Container */
.donor-card .donor-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Base Button Styles */
.donor-card .action-btn,
.site-button.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

/* Call Button - Solid Blue */
.call-btn {
    background: #2563eb !important;
    color: #fff !important;
}

.call-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    color: #fff !important;
}

.call-btn i {
    font-size: 14px;
}

/* WhatsApp Button - Solid Green (FIXED) */
.whatsapp-btn {
    background: #25d366 !important;
    color: #fff !important;
}

.whatsapp-btn:hover {
    background: #20ba5a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    color: #fff !important;
}

.whatsapp-btn i {
    font-size: 16px;
}

/* Report Button - Solid Red Background */
.report-btn {
    background: #dc2626 !important;
    color: #fff !important;
    border: none !important;
}

.report-btn:hover {
    background: #b91c1c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    color: #fff !important;
}

.report-btn i {
    font-size: 14px;
}

/* Active State for all buttons */
.call-btn:active,
.whatsapp-btn:active,
.report-btn:active,
.site-button.small:active {
    transform: scale(0.97);
}

/* Ensure colors persist on focus/active */
.call-btn:focus,
.call-btn:active,
.call-btn:visited {
    background: #2563eb !important;
    color: #fff !important;
}

.whatsapp-btn:focus,
.whatsapp-btn:active,
.whatsapp-btn:visited {
    background: #25d366 !important;
    color: #fff !important;
}

.report-btn:focus,
.report-btn:active,
.report-btn:visited {
    background: #dc2626 !important;
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donor-card .donor-actions {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .site-button.small,
    .donor-card .action-btn {
        padding: 10px 14px;
        font-size: 12px;
        gap: 5px;
    }

    .call-btn i {
        font-size: 13px;
    }

    .whatsapp-btn i {
        font-size: 15px;
    }

    .report-btn i {
        font-size: 13px;
    }
}

/* ========== LOADER STYLES ========== */
.filter-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f96b39;
}

/* ========== DONOR CARD STYLES ========== */
.donor-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.donor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.donor-card .card-accent {
    height: 5px;
    background: linear-gradient(90deg, #f96b39, #e84393);
}

.donor-card .card-inner {
    padding: 18px;
}

.donor-card .donor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.donor-card .donor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.donor-card .donor-last-donated {
    font-size: 12px;
    color: #94a3b8;
}

.donor-card .blood-badge {
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.donor-card .donor-divider {
    border: none;
    border-top: 1px solid #e8ecf0;
    margin: 12px 0;
}

.donor-card .donor-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #475569;
}

.donor-card .donor-info-row i {
    width: 16px;
    text-align: center;
    color: #f96b39;
    font-size: 13px;
}

.donor-card .donor-info-row strong {
    color: #1e293b;
    min-width: 38px;
}

.donor-card .donor-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.donor-card .donor-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.donor-card .tag-available {
    background: #dcfce7;
    color: #16a34a;
}

.donor-card .tag-unavailable {
    background: #fee2e2;
    color: #dc2626;
}

.donor-card .tag-travel {
    background: #dbeafe;
    color: #2563eb;
}

.donor-card .tag-no-travel {
    background: #f1f5f9;
    color: #64748b;
}

/* ========== DO'S & DON'TS MODAL STYLES ========== */
.modal-title {
    color: #ffffff;
}

.guidelines-section {
    margin-bottom: 25px;
}

.guidelines-section h5 {
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guidelines-section.dos h5 {
    color: #16a34a;
}

.guidelines-section.donts h5 {
    color: #dc2626;
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidelines-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.guidelines-section.dos .guidelines-list li {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
}

.guidelines-section.donts .guidelines-list li {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.guidelines-list li i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.guidelines-section.dos .guidelines-list li i {
    color: #16a34a;
}

.guidelines-section.donts .guidelines-list li i {
    color: #dc2626;
}

.modal-header {
    background: #f96b39;
    color: white;
    border-bottom: none;
    border-radius: 3px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
}

/* ========== DO'S & DON'TS BUTTON HOVER EFFECT ========== */
.site-button.outline.guidelines-btn {
    border: 2px solid #f96b39;
    color: #f96b39;
    background: transparent;
    transition: all 0.3s ease;
}

.site-button.outline.guidelines-btn:hover {
    background: #f96b39 !important;
    color: #fff !important;
    border-color: #f96b39 !important;
    box-shadow: 0 4px 12px rgba(249, 107, 57, 0.3);
}

.site-button.outline.guidelines-btn:hover i {
    color: #fff !important;
}

/* ========== CLEAR FILTERS BUTTON HOVER EFFECT ========== */
.site-button.outline {
    border: 2px solid #f96b39;
    color: #f96b39;
    background: transparent;
    transition: all 0.3s ease;
}

.site-button.outline:hover {
    background: #f96b39 !important;
    color: #fff !important;
    border-color: #f96b39 !important;
    box-shadow: 0 4px 12px rgba(249, 107, 57, 0.3);
}

.site-button.outline:hover i {
    color: #fff !important;
}
/* =================== MOBILE FILTER HAMBURGER =================== */
.mobile-filter-toggle {
    position: fixed;
    top: 250px;
    right: 16px;
    z-index: 999;
    background: #f96b39;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: #d96328;
    transform: scale(1.05);
}

.mobile-filter-toggle i {
    font-size: 20px;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    opacity: 1;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #f4f2ee;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
}

.mobile-filter-drawer.active {
    right: 0;
}

.mobile-filter-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 16px;
    border-bottom: 1px solid #d4d2ce;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.mobile-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-filter-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.mobile-filter-content {
    padding: 0;
}

.mobile-filter-content .shadow {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 16px;
    margin: 0;
}

.mobile-filter-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
}

.mobile-filter-content .form-control,
.mobile-filter-content .form-select {
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #d4d2ce;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-filter-content .form-control:focus,
.mobile-filter-content .form-select:focus {
    border-color: #f96b39;
    box-shadow: 0 0 0 2px rgba(249, 107, 57, 0.1);
}

.mobile-filter-content .filter-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
}

.mobile-filter-content .form-check {
    padding-left: 1.75em;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.mobile-filter-content .form-check-input {
    float: left;
    margin-left: -1.75em;
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    cursor: pointer;
}

.mobile-filter-content .form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
}

.mobile-filter-content .site-button {
    background: #f96b39;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249, 107, 57, 0.2);
    transition: all 0.2s;
}

.mobile-filter-content .site-button:hover {
    background: #d96328;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 107, 57, 0.3);
}

.mobile-filter-content .site-button.outline {
    background: transparent;
    border: 1px solid #d4d2ce;
    color: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    padding: 6px 12px;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .desktop-filter-sidebar {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-filter-toggle,
    .mobile-filter-overlay,
    .mobile-filter-drawer {
        display: none !important;
    }
}
/* Filter Count Badge */
.mobile-filter-toggle {
    overflow: visible;
}

.filter-count-badge {
    display: none;
    background: #0a66c2;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    position: absolute;
    top: -4px;
    right: -4px;
}

/* Clear All link in drawer header */
.mobile-clear-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #f96b39;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #f96b39;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-clear-all-link:hover {
    background: #f96b39;
    color: #fff;
}

/* Reset link below Apply */
.reset-link {
    display: block;
    text-align: center;
    color: rgba(0, 0, 0, 0.64);
    font-size: 14px;
    margin-top: 6px;
    text-decoration: none;
    font-weight: 700;
}

.reset-link:hover {
    color: #f96b39;
}

.site-button {
    padding: 10px 5px;
}
