/* Styles for Sample Request List table */

/* Container enabling horizontal scroll */
.sample-requests-section {
    overflow-x: auto;
}

/* Base table styling to force horizontal scroll on smaller screens */
.sample-requests-table {
    min-width: 1200px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Header row background */
.sample-requests-table thead tr.sr-head {
    background: #f5f6f8;
}

/* Common header cell */
.sr-th {
    text-align: left;
    padding: 12px 16px;
    white-space: nowrap;
}

/* Common body cell */
.sr-td {
    padding: 12px 16px;
    white-space: nowrap;
    align-items: center;
    align-content: center;
}

/* Filter row cells */
.sr-filter-td {
    padding: 8px 16px;
}

.sr-filter-td .dropdown-container,
.sr-filter-td input[type="text"],
.sr-filter-td input[type="search"] {
    width: 100%;
}

/* Row separator */
.sr-row-border {
    border-bottom: 1px solid #eee;
}

/* ID cell color */
.sr-id {
    color: #3b82f6; /* blue-500 */
}

/* Phone cell color */
.sr-phone {
    color: #f97316; /* orange-500 */
}

/* Agent badge */
.sr-agent-badge {
    display: inline-flex;
    align-items: center;
    height: 2.2rem;
    width: 10rem;
    padding: 0 0.75rem;
    background: #fff;
    color: #FF6027;
    border: 1px solid #FF6027;
    border-radius: 8px;
}

/* Status badge (colors are set inline dynamically) */
.sr-status {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 2.2rem;
    min-width: 8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.sr-status i {
    margin-left: .5rem;
}

/* Empty state */
.sr-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280; /* gray-500 */
}

.sr-id-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* space between id and icon */
    padding: 0.5rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.sr-id-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.sr-id-btn:active {
    background-color: #e5e5e5;
}

.sr-id-btn span {
    margin-right: 0.25rem;
}

.sr-id-btn img {
    width: 18px;
    height: 18px;
    transition: filter 0.2s ease;
}

.email-input {
    width: 15rem;
}

.skeleton-line {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
    background-size: 400% 100%;
    animation: skeleton 1.2s ease-in-out infinite;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
    background-size: 400% 100%;
    animation: skeleton 1.2s ease-in-out infinite;
}

@keyframes skeleton {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.custom-select {
    appearance: none; /* remove default arrow (Firefox) */
    -webkit-appearance: none; /* remove default arrow (Chrome, Safari) */
    -moz-appearance: none; /* remove default arrow (Firefox) */

    background-color: #8b5cf6; /* purple background */
    color: white; /* white text */
    font-weight: 500;

    padding: 0.5rem 2rem 0.5rem 1rem; /* space inside */
    border-radius: 0.5rem; /* rounded corners */
    border: none; /* remove border */
    cursor: pointer;

    font-size: 1rem;
    line-height: 1.5rem;

    /* Prevent text from touching the edges */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 20 20'><path d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;

    /* remove outline and add custom focus */
    outline: none;
}

.custom-select:focus {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
}

.truncate-cell {
    max-width: 16rem;
}

.truncate-cell .truncate {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
