@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
    color: #333;
}
.whitespace-nowrap{
    white-space: nowrap;
}


.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.login-header {
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    color: #222222;
}

.login-header p {
    margin: 0px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
    color: #222222;
}

.login-body {
    padding: 0px 30px 40px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    background: #28a745;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    background: #1d8a37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}
.input-group .form-control:focus{
    border-color: #e9ecef;
    box-shadow: none;
}
.input-group .form-control:focus + .input-group-text {
    border-color: none;
    box-shadow: none;
}

.brand-logo {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    color: #222222;
}
.home-section{
    padding: 2rem 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #28a745;
}

.container {
    margin: 2rem auto;
}


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 32px;
    color: #333;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 10px 10px;
    gap: 1rem;
    flex-wrap: nowrap;
}

.export-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 13px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}


.export-btn:active {
    transform: translateY(0);
}

/* Filters Section Styles */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.filter-select {
    padding: 11px 30px 11px 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 5px;
    align-items: end;
}

.clear-filters-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 11px 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.apply-filters-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apply-filters-btn:hover {
    background: #1d8a37;
    transform: translateY(-1px);
}

.clear-filters-btn:active,
.apply-filters-btn:active {
    transform: translateY(0);
}

.search-container {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-box {
    width: 100%;
    padding: 11px 18px 11px 45px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #38383876;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    border: 1px solid #2323234D;
    background-color: #fff;
    border-radius: 15px;
    padding: 22px 10px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.members-table {
    background: #fff;
    border: 1px solid #23232333;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px 10px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

th {
    background: #f0f0f0;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 12px 10px;
}

tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.member-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.member-row:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

.member-row.hidden {
    display: none !important;
}

.member-row.highlighted {
    background: rgba(40, 167, 69, 0.1) !important;
}

/* Modal Styles */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}



.detail-value {
    color: #333;
    font-weight: 500;
}

.pagination {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a {
    color: #222;
    padding: 0px;
    height: 40px;
    width: 40px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a:hover {
    background: #28a745;
    color: white;
}
.user_management_pagination .pagination a:hover{
    background: #3498db;
    color: white;
}

.pagination .current , .pagination li.active a {
    background: #28a745;
    color: white;
    border: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

.gender-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gender-male {
    background: #cbffd7;
    color: #28a745;
}

.gender-female {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.gender-other {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.info-badge i {
    font-size: 0.7rem;
}


.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #155724, #28a745);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.dashboard-card:nth-child(2)::before{
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.dashboard-card:nth-child(3)::before{
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.dashboard-card:nth-child(1) .dashboard-icon {
    background: linear-gradient(135deg, #155724, #28a745);
}

.dashboard-card:nth-child(2) .dashboard-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.dashboard-card:nth-child(3) .dashboard-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.dashboard-card:hover .dashboard-icon {
    transform: scale(1.1);
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.dashboard-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dashboard-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.dashboard-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.dashboard-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.dashboard-btn {
    background: linear-gradient(135deg, #155724, #28a745);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.dashboard-card:nth-child(2) .dashboard-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.dashboard-card:nth-child(2) .dashboard-btn:hover {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.dashboard-card:nth-child(3) .dashboard-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.dashboard-card:nth-child(3) .dashboard-btn:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status badge variations */
.status-badge.status-pending {
    background: #6c757d;
}

.status-badge.status-extracted {
    background: #28a745;
}

.status-badge.status-failed {
    background: #dc3545;
}

.status-badge.status-skipped {
    background: #ffc107;
    color: #212529;
}

.coming-soon {
    background: #6c757d !important;
}

.footer {
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}
.home-btn {
    color: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.authenticate-card.main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 30px;
    text-align: center;
    border: 1px solid #dee2e6;
    max-width: 900px;
    margin: 50px auto 0px;
}

.authenticate-card .welcome-title {
    font-size: 36px;
    color: #333;
    margin-bottom:0px;
}

.authenticate-card .welcome-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.authenticate-card .status-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #dee2e6;
}

.status-success {
    background: rgba(212, 237, 218, 0.9);
    border-left: 4px solid #28a745;
}

.status-warning {
    background: rgba(255, 243, 205, 0.9);
    border-left: 4px solid #ffc107;
}

.status-info {
    background: rgba(209, 236, 241, 0.9);
    border-left: 4px solid #17a2b8;
}

.mode-config {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: #667eea;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.mode-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 1rem 0;
}

.mode-test {
    background: #fff3cd;
    color: #856404;
}

.mode-production {
    background: #d4edda;
    color: #155724;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.authenticate-card .stat-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222222;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.action-buttons {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-buttons button{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-indicator {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-indicator.show {
    display: flex;
}

.stat-card:hover {
    transform: translateY(-5px);
}


.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #222222;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.sessions-table {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}


.session-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-row:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

.session-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.session-status-badge.status-completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.session-status-badge.status-failed {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.session-status-badge.status-in_progress {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.session-status-badge.status-stuck {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #28a745);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.session-details {
    display: none;
    background: rgba(248, 249, 250, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.session-details.show {
    display: block !important;
}

.progress-summary {
    grid-column: 1 / -1;
    background: rgba(102, 126, 234, 0.1) !important;
    border-left: 4px solid #667eea !important;
    padding: 1.5rem !important;
}

.progress-summary h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.progress-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.progress-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.progress-stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.thread-progress {
    grid-column: 1 / -1;
}

.thread-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.thread-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.thread-header {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.thread-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.thread-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.thread-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.empty-state i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}
.session-details-modal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.session-details-modal.modal.show{
    display: block;
}


.session-details-modal .modal-header {
    color: #212529;
    padding: 12px 19px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.session-details-modal .modal-close{
    background-color: transparent;
    border: none;
    font-size: 28px;
    color: #212529;
    padding: 0px;
}
.session-details-modal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}
.session-details-modal .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.session-details-modal .modal-dialog{
    max-width: 1200px;
}
.session-details-modal .modal-body {
    padding: 30px;
    background: white;
}

.session-details-modal .modal-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.session-details-modal .modal-detail-item , .session-details-modal .detail-item{
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.session-details-modal .modal-detail-label, .detail-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-details-modal .modal-detail-value {
    font-size: 1.1rem;
    color: #212529;
    font-weight: 500;
}

.session-details-modal .modal-progress-summary {
    grid-column: 1 / -1;
    background: #f8f9fa;
}

.session-details-modal .modal-progress-summary h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.2rem;
}

.session-details-modal .modal-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.session-details-modal .modal-progress-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.session-details-modal .modal-progress-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.session-details-modal .modal-progress-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-details-modal .modal-thread-progress {
    grid-column: 1 / -1;
}

.session-details-modal .modal-thread-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.session-details-modal .modal-thread-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.session-details-modal .modal-thread-header {
    font-weight: bold;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.session-details-modal .modal-thread-info > div {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.session-details-modal .modal-thread-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.session-details-modal .modal-thread-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}
/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.client-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.client-row:hover {
    background-color: #f8f9fa !important;
}
 /* Client Details Styles */
 .client-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.client-avatar {
    width: 80px;
    height: 80px;
    background: #b5b5b5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 2rem;
}

.client-info h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 0px;
}

.client-id {
    color: #6c757d;
    font-family: monospace;
    font-size: 0.9rem;
}

.info-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}
.card-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    min-width: 120px;
}

.info-value {
    color: #495057;
    text-align: right;
    flex: 1;
}

.contact-item, .address-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    border-radius: 5px;
}
.social-care-coverage-item, .consent-item, .insurance-item, .initiative-condition-item {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    border-radius: 5px;
}

.contact-item:last-child, .address-item:last-child {
    border-bottom: none;
}

.contact-icon, .address-icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #6c757d;
}

.contact-details, .address-details {
    flex: 1;
}

.contact-value, .address-value {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

.contact-meta, .address-meta {
    display: flex;
    gap: 0.5rem;
}
.filter-row{
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    flex-wrap: wrap;
}
.sort_order_card_page{
    padding:0px 30px;
}
.client_flag_td{
    width: 340px;
    white-space: normal;
}

@media (max-width: 768px) {
    .sort_order_card_page{
        padding:0px 10px;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 24px;
    }

    .main-card {
        margin: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        width: 100%;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    /* Filters responsive styles */
    .filters-section {
        flex-direction: column;
        gap: 5px;
    }
    
    .filter-group {
        min-width: 100%;
        flex: none;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .clear-filters-btn,
    .apply-filters-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Server Restart Information Styles */
.server-restart-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #17a2b8;
}

.server-restart-card .card-title {
    color: #17a2b8;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-restart-card .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-restart-card .alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.resumable-sessions {
    margin-bottom: 1.5rem;
}

.resumable-sessions h4 {
    color: #28a745;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resumable-sessions .text-muted {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.session-item:hover {
    background: #e9ecef;
    border-color: #28a745;
}

.session-info {
    flex: 1;
}

.session-id {
    font-weight: 600;
    color: #495057;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.session-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.session-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.session-date {
    font-size: 0.8rem;
    color: #adb5bd;
}

.server-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.server-stats .stat-item {
    text-align: center;
}

.server-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
}

.server-stats .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .session-stats {
        gap: 0.5rem;
    }
    
    .server-stats {
        gap: 1rem;
    }
}

/* Multi-Threaded Progress Styles */
.thread-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.thread-section h5 {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.thread-progress {
    background: white;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.thread-activity {
    background: white;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.thread-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-name {
    font-weight: 500;
    color: #495057;
}

.thread-status {
    font-size: 0.875rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.thread-status.active {
    background: #d4edda;
    color: #155724;
}

.thread-status.waiting {
    background: #fff3cd;
    color: #856404;
}

.thread-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.thread-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.thread-status.processing {
    background: #cce5ff;
    color: #004085;
}

/* Progress bar animations */
.progress-bar {
    transition: width 0.6s ease;
}

/* Thread indicators */
.thread-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.thread-indicator.active {
    background: #28a745;
    animation: pulse 2s infinite;
}

.thread-indicator.waiting {
    background: #ffc107;
}

.thread-indicator.completed {
    background: #17a2b8;
}

.thread-indicator.failed {
    background: #dc3545;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Enhanced session info */
.session-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.session-info-item {
    background: white;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.session-info-item .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.session-info-item .label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}
 /* Gender badge styling */
 .gender-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.gender-badge.gender-male {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.gender-badge.gender-female {
    background-color: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd9;
}

.gender-badge.gender-other {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* Initiative condition badge styling */
.initiative-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 0.25rem;
}

.initiative-badge.initiative-enhanced {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #ffcdd2 !important;
}

.initiative-badge.initiative-normal {
    background-color: #e3f2fd !important;
    color: #1976d2 !important;
    border: 1px solid #bbdefb !important;
}
.add_user_btn{
    background: #3192d2;
    padding: 9px 10px;
    border-radius: 6px;
    white-space: nowrap;
    color: #fff;
    border: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .thread-section {
        margin-bottom: 15px;
    }
    
    .session-info-grid {
        grid-template-columns: 1fr;
    }
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

.main-content {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.header-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.header-section p {
    font-size: 1.1rem;
    color: #6c757d;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    margin: 7px;
    font-size: 2rem;
    font-weight: bold;
}

.stat-card p {
    margin: 5px;
    opacity: 0.9;
}

.user-table-container {
    background: white;
    border-radius: 15px;
    /* overflow: hidden; Removed to prevent dropdown clipping */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    margin: 0;
    color: #2c3e50;
    font-weight: bold;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.user-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.user-table tr:hover {
    background-color: #f8f9fa;
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.clientCalledDetailsHistoryModal .modal-content {
    padding: 30px;
    border-radius: 15px;
}
.clientCalledDetailsHistoryModal .modal-body h5{
    color: #0d6efd;
}
.clientCalledHistoryModal .modal-body h5{
    color: #000000;
}
.form-group {
    margin-bottom: 20px;
}

.createScreenerModal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.createScreenerModal .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #27ae60;
    color: #155724;
}

.toast.success .toast-icon {
    color: #27ae60;
}

.toast.danger {
    border-left-color: #e74c3c;
    color: #721c24;
}

.toast.danger .toast-icon {
    color: #e74c3c;
}

.toast.warning {
    border-left-color: #f39c12;
    color: #856404;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info {
    border-left-color: #3498db;
    color: #0c5460;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-weight: 500;
    margin: 0;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #495057;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.admin-badge {
    background-color: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

.permission-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-header h4 {
    color: white;
    margin: 0;
    font-weight: bold;
}

.sidebar-header p {
    color: rgba(255,255,255,0.7);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 1rem;
    margin-bottom: 10px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    padding-left: 35px;
    padding-right: 35px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.search-container .fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
}

.search-container .fa-times {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    z-index: 1;
    display: none;
}

.search-container .fa-times:hover {
    color: #e74c3c;
}

.search-container.has-value .fa-times {
    display: block;
}

.pagination-container {
    background: white;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #3498db;
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
    height: 40px;
     width: 40px;
}

.page-link:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        gap: 15px;
    }

    .user-table {
        font-size: 14px;
    }
}

/* Clickable badge styles */
.clickable-badge {
    transition: all 0.3s ease;
    border: none;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    cursor: pointer;
}

.clickable-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    background-color: #0056b3 !important;
}

.clickable-badge:active {
    transform: scale(0.95);
}

.clickable-badge:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* Clickable title styles */
.clickable-title {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-title:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

.clickable-title:active {
    transform: scale(0.98);
}
  /* loading  */
  .stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745 0% 100%);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* County field styling */
.address-county {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.county-label {
    font-size: 0.8rem;
    color: #3498db;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.county-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Search field dropdown styling */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 800px;
}

.search-container .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-container .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.search-container .position-relative {
    position: relative;
    flex: 1;
}

.search-container .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.search-container .search-box {
    padding-left: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    height: 42px;
    transition: all 0.3s ease;
}

.search-container .search-box:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Language styling */
.language-item {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.language-name {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.language-details {
    margin-top: 10px;
}

.language-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.language-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.language-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 1.2rem;
    }
}

.status-dropdown-container {
    position: relative;
}

.status-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    background-color: white;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.status-dropdown:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.status-dropdown option {
    padding: 4px 8px;
}
.screener-stats-cards .stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.screener-stats-cards .stat-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screener-stats-cards .stat-card:hover {
    transform: translateY(-5px);
}

.screener-stats-cards .stat-card h3 {
    margin: 5px;
    font-size: 2rem;
    font-weight: bold;
}

.screener-stats-cards .stat-card p {
    margin: -3px;
    opacity: 0.9;
}


/* Full-page overlay */
.loading-overlay {
    position: fixed;           /* Stays in place even when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;             /* Hidden by default */
    justify-content: center;   /* Center content horizontally */
    align-items: center;       /* Center content vertically */
    background: rgba(0, 0, 0, 0.6);  /* Semi-transparent background */
    z-index: 9999;             /* Make sure it's on top of everything */
  }
  
  /* Inner loading box */
  .loading-content {
    color: #fff;
    text-align: center;
  }
  
  /* Simple CSS spinner */
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #007bff;  /* Bootstrap blue color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  /* Spinner animation */
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
.search_filter_canvas{
    width: 600px!important;
}
.searchWrapperBox{
    max-height: 200px;
    overflow: auto;
    background: #fff;
    border-radius: 5px;
    padding: 10px 10px;
}
.add-filters-btn{
    font-size: 31px;
    padding: 0;
    height: 42px;
    width: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.view_members_filter_section .filter-row{
    justify-content: flex-start;
}
.view_members_filter_section .filter-group{
    flex:unset;
}
.action_td_permissions{
    display: flex;
    max-width: 400px;
    flex-wrap: wrap;
    gap: 10px;
}
.user_management_action_cell{
    display: flex;
    gap:10px;
    align-items: start;
}
.status-toggle-badge {
    cursor: pointer !important;
}
.createdByFilter{
    height: 300px;       /* required for scroll */
    overflow-y: auto;  
}
.select2_box .select2-container .select2-selection--single{
    height: 42px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.select2_box .select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 42px;
}
.select2_box .select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 42px;
}