﻿
.search-bar-section-outer {
    padding: 32px;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.search-bar-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    /* margin-bottom: 24px; */
    flex-wrap: wrap;
    /* padding: 0 20px; */
}

.search-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B1538;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: 13px 48px 13px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1F2937;
    background: #FFFFFF;
    transition: all 0.2s ease;
    outline: none;
}

    .search-input::placeholder {
        color: #9CA3AF;
    }

    .search-input:hover {
        border-color: #D1D5DB;
    }

    .search-input:focus {
        border-color: #8B1538;
        box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
    }

/* Table Container */
.table-container-outer {
    padding: 32px;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}
.table-rf-tbl > table thead > tr {
    /* display: flex; */
    width: 1585px;
    height: 68px;
    align-items: flex-start;
    /* border-bottom: 1px solid #999; */
    background: #EBEBEB;
}

.table-rf {
    box-shadow: none !important;
    border: var(--border-rf);
    padding: var(--padding-rf);
    border-radius: var(--border-radius-rf);
    margin: var(--margin-rf);
    background-color: var(--background-color-rf);
    height: var(--height-rf);
    width: var(--width-rf);
    color: var(--color-rf);
    display: var(--display-rf);
    flex-direction: var(--flex-direction-rf);
}

.table-rf {
    --box-shadow-rf: 0 3px 10px #0000000a;
    --border-rf: none;
    --padding-rf: 0px 0px 0px 0px;
    --border-radius-rf: 5px 5px 5px 5px;
    --margin-rf: 0px 0px 0px 0px;
    --background-color-rf: White;
    --height-rf: calc(100vh - 261px);
    justify-content: space-between;
    --display-rf: inherit;
    /* --display-rf: flex; */
    --flex-direction-rf: column;
}

.pager-rf {
    display: flex;
    align-items: center;
    background-color: #fff !important;
    padding: 30px 0 0 0 !important;
    border-radius: 5px !important;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 14px;
    box-shadow: none;
    color: #000;
    flex-direction: row-reverse;
}

.pager-rf-summary {
    color: #999;
    font-family: Lato;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
    /* padding: 30px 0 0 0; */
}
.pager-rf-button.False {
    background-color: white !important;
    display: flex;
    width: 47.364px;
    height: 47.364px;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    border-radius: 10px !important;
    border: 1.701px solid #D1D5DC;
    opacity: 0.5;
    justify-content: center !important;
    color: black !important;
}
.pager-rf-button.pager-active {
    background-color: #9A3324 !important;
    color: #fff !important;
    display: flex;
    width: 47.364px;
    height: 47.364px;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    border-radius: 10px !important;
    border: 1.701px solid #D1D5DC;
    justify-content: center !important;
}
th.table-rf-action {
    text-align: center;
    width: 75px;
    position: sticky;
    top: 0;
    right: 0;
    z-index: 1;
    background-color: #F4F4F4;
}
.pager-rf-button:hover {
    border-color: #9A3324 !important;
}
/*.pager-rf-button {
    background-color: #FFF !important;
     color: #bfbfbf; 
    display: flex;
    width: 48px;
    height: 48px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    border: 1px solid rgba(153, 153, 153, 0.60);
}*/
    .pager-rf-button.pager-active {
        background-color: #9A3324 !important;
        color: #fff !important;
    }
/* Table Styles */
.donor-table {
    width: 100%;
    border-collapse: collapse;
}

    .donor-table thead {
        background: #F4F4F4 !important;
        height: 65px;
        min-height: 109px;
        width: 248px;
        align-items: center;
    }

    .donor-table th {
        text-align: left;
        overflow: hidden;
        color: #222221;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: Lato;
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
    }

        .donor-table th.sortable {
            cursor: pointer;
            user-select: none;
            position: relative;
            padding-right: 32px;
        }

            .donor-table th.sortable::after {
                content: '⇅';
                position: absolute;
                right: 12px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 0.875rem;
                color: #9CA3AF;
                opacity: 0.5;
            }

            .donor-table th.sortable:hover::after {
                opacity: 1;
                color: #6B7280;
            }

    .donor-table tbody tr {
        border-bottom: 1px solid #E5E7EB;
        transition: background-color 0.15s ease;
    }

        .donor-table tbody tr:nth-child(even) {
            background: #F9FAFB;
        }

        .donor-table tbody tr:hover {
            background: rgba(139, 21, 56, 0.05);
        }

    .donor-table td {
        padding: 18px 24px;
        font-size: 0.9375rem;
        color: #1F2937;
    }

    /* Serial Number Column */
    
        .donor-table td:first-child {
            /* font-weight: 500; */
            color: #6B7280;
            /* border-bottom: 1px solid rgba(153, 153, 153, 0.30); */
            /* display: flex; */
            height: 56px;
            /* padding: 0 16px; */
            align-items: center;
            gap: 8px;
            align-self: stretch;
        }
/* Donor Name Link */
.donor-link {
    color: #5B21B6;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 400;
}

    .donor-link:hover {
        color: #4C1D95;
    }

/* Manage Column */

.status-col {
    width: 110px; /* adjust as needed */
    text-align: center;
    white-space: nowrap; /* prevents wrapping */
}


/* Status badge */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

    .status-badge.active {
        background-color: #d1f3e0;
        color: #0f5132;
    }

    .status-badge.inactive {
        background-color: #f8d7da;
        color: #842029;
    }

.manage-cell {
    text-align: center;
}

.btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

    .btn-edit:hover {
        background: rgba(139, 21, 56, 0.05);
        color: #8B1538;
    }

.edit-icon {
    width: 18px;
    height: 18px;
}

/* Empty State Styles */
.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    padding: 2rem;
}

.empty-state-card {
    display: flex;
    padding: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(34, 34, 33, 0.08);
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(34, 34, 33, 0.08);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #fce8e8;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.book-icon {
    width: 36px;
    height: 36px;
    color: #b44;
    stroke-width: 2;
}

.empty-state-title {
    margin: 0 0 1rem 0;
    color: #2B2B2B;
    text-align: center;
    font-family: Lato;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 33px;
}

.empty-state-description {
    margin: 0 0 2rem 0;
    color: #666;
    text-align: center;
    font-family: Lato;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

.add-donor-btn {
    display: inline-flex;
    justify-content: center;
    background-color: #DA291C;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 56px;
    padding: 0 40px;
    align-items: center;
    border-radius: 8px;
    background: #DA291C;
}

    .add-donor-btn:hover {
        background-color: #923629;
    }

    .add-donor-btn:active {
        background-color: #7d2f23;
    }

.plus-icon {
    font-size: 1.25rem;
    font-weight: 400;
}

.btn-brand {
    color: #FFFFFF !important;
    background-color: #9A3324 !important;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-brand:hover {
        background-color: #6B0E2B !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(139, 21, 56, 0.25);
    }

    .btn-brand:active {
        transform: translateY(0);
    }

.filter-brand {
    background-color: #FFFFFF !important;
    border: 1px solid #ddd;
}

/* Responsive Design */
@@media (max-width: 768px) {
    .search-bar-section {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
    }

    .search-wrapper {
        max-width: 100%;
        min-width: 100%;
    }

    .btn-brand {
        width: 100%;
        justify-content: center;
    }

    .table-container {
        margin: 0 12px;
    }

    .donor-table {
        font-size: 0.875rem;
    }

        .donor-table th,
        .donor-table td {
            padding: 12px 16px;
        }

        .donor-table th {
            font-size: 0.8125rem;
        }
}

