/* Enhanced Search & Filter Section */
.search-filter { 
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem; 
    margin-bottom: 1rem; 
    align-items: end;
    padding: 1rem;
    flex-shrink: 0;
    border-radius: 2px; 
    font-size: var(--admin-font-size) !important; 
    
}

.search-input:focus { 
    outline: none; 
    border-color: #60a5fa; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
    transform: translateY(-1px);
}

/* Filter Dropdowns */
.filter-select { 
    background: linear-gradient(145deg, #0f172a, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    color: white; 
    padding: 0.75rem 1rem; 
    border-radius: 2px; 
    cursor: pointer; 
    font-size: var(--admin-font-size) !important;
    width: 100%;
    box-sizing: border-box;
    
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-select:hover {
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select option {
    background: #1e293b;
    color: white;
    padding: 0.5rem;
}

.filter-select option:hover {
    background: #334155;
}

/* Filter Summary */
.filter-summary {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: var(--admin-font-size) !important;
    text-align: center;
    font-weight: 500;
    flex-shrink: 0;
}

/* Active Filter Styling */
.filter-select:not([value=""]) {
    border-color: #10b981;
    background: linear-gradient(145deg, #064e3b, #1e293b);
    color: #34d399;
}

.filter-select:not([value=""]):hover {
    border-color: #34d399;
}

/* Clear Filters Button */
#clear-all-filters {
    background: linear-gradient(145deg, #dc2626, #991b1b);
}

#clear-all-filters:hover {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Tables */
.data-table { 
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

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

.table th { 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    padding: 0.5rem 0.4rem; 
    text-align: left; 
    font-weight: 600; 
    color: #60a5fa; 
    border-bottom: 1px solid rgba(59, 130, 246, 0.2); 
    cursor: pointer; 
    white-space: nowrap;
}

/* Discord Info column - minimal padding and tight width */
.table th.discord-info,
.table td.discord-info {
    padding: 0.05rem 0.05rem 0.05rem 0.1rem !important;
    box-sizing: border-box !important;
    max-width: 180px !important;
    width: auto !important;
    white-space: nowrap !important;
}

.table th:hover { 
    background: linear-gradient(145deg, #334155, #1e293b); 
}

/* Sortable header styling */
.sortable-header {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.sortable-header:hover {
    background: linear-gradient(145deg, #334155, #1e293b);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.table td { 
    padding: 0.5rem 0.4rem; 
    border-bottom: 1px solid rgba(59, 130, 246, 0.1); 
    vertical-align: middle;
}

/* Discord Info column - minimal padding and tight width */
.table th.discord-info,
.table td.discord-info {
    padding: 0.05rem 0.05rem 0.05rem 0.1rem !important;
    box-sizing: border-box !important;
    max-width: 180px !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* # column - almost zero padding */
.table th:nth-child(1),
.table td:nth-child(1) {
    padding: 0.05rem 0.1rem !important;
    box-sizing: border-box !important;
}

/* WoW Role column - minimal padding, especially on right to reduce gap */
.table th:nth-child(2),
.table td:nth-child(2) {
    padding: 0.05rem 0.05rem 0.05rem 0.1rem !important;
    box-sizing: border-box !important;
}

.table tr:hover { 
    background: rgba(59, 130, 246, 0.1); 
}

/* Selected Row Styling for Bulk Operations */
.table tr.selected-row {
    background: rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
}

.table tr.selected-row:hover {
    background: rgba(16, 185, 129, 0.3);
}

/* User Avatars */
.user-avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 2px; 
    border: 2px solid #60a5fa; 
}

/* WoW Character Input Fields */
.wow-character-input,
.wow-realm-input {
    width: 100%;
    min-width: 80px;
    max-width: 120px;
    padding: 0.25rem 0.4rem;
    font-size: var(--admin-font-size) !important;
}

/* Class and Spec Dropdowns */
.class-dropdown,
.spec-dropdown {
    width: 100%;
    min-width: 100px;
    max-width: 140px;
    padding: 0.25rem 0.4rem;
    font-size: var(--admin-font-size) !important;
}

/* Role Management Buttons */
.role-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.role-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.role-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 2px;
    font-size: var(--admin-font-size) !important;
    font-weight: 400;
    cursor: pointer;
    
    min-width: 80px;
    text-align: center;
}

.role-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}



/* Role button colors with maximum specificity */
.admin-panel .data-table .table tbody tr td .role-buttons .role-btn.btn-admin {
    background: linear-gradient(145deg, #dc2626, #991b1b);
    color: white;
}

.admin-panel .data-table .table tbody tr td .role-buttons .role-btn.btn-admin:hover:not(:disabled) {
    background: linear-gradient(145deg, #ef4444, #dc2626);
}

.admin-panel .data-table .table tbody tr td .role-buttons .role-btn.btn-raider {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
}

.admin-panel .data-table .table tbody tr td .role-buttons .role-btn.btn-raider:hover:not(:disabled) {
    background: linear-gradient(145deg, #34d399, #10b981);
}

.admin-panel .data-table .table tbody tr td .role-buttons .role-btn.btn-friends-family {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
}

.admin-panel .data-table .table tbody tr td .role-buttons .role-btn.btn-friends-family:hover:not(:disabled) {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
}



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

.loading::after {
    content: "...";
    
}

@keyframes loading-dots {
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

/* Rank Badges */
.rank-badge { 
    padding: 0.25rem 0.75rem; 
    border-radius: 2px; 
    font-size: var(--admin-font-size) !important; 
    font-weight: 600; 
    white-space: nowrap;
}

.rank-admin { 
    background: linear-gradient(145deg, #dc2626, #991b1b); 
    color: white; 
}

.rank-friends, .rank-family { 
    background: linear-gradient(145deg, #f59e0b, #d97706); 
    color: white; 
}

.rank-raider { 
    background: linear-gradient(145deg, #10b981, #059669); 
    color: white; 
}

.rank-member { 
    background: linear-gradient(145deg, #6b7280, #4b5563); 
    color: white; 
}

/* Status Badges */
.status-badge { 
    padding: 0.25rem 0.75rem; 
    border-radius: 2px; 
    font-size: var(--admin-font-size) !important; 
    font-weight: 600; 
    white-space: nowrap;
}

.status-late { 
    background: linear-gradient(145deg, #f59e0b, #d97706); 
    color: white; 
}

.status-out { 
    background: linear-gradient(145deg, #dc2626, #991b1b); 
    color: white; 
}

/* Analytics */
.analytics-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1rem; 
    margin-bottom: 1rem; 
}

.analytics-card { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    border-radius: 2px; 
    padding: 1rem; 
    text-align: center; 
}

.analytics-number { 
    font-size: var(--admin-font-size) !important; 
    font-weight: 700; 
    color: #60a5fa; 
    margin-bottom: 0.5rem; 
}

.analytics-label { 
    color: #9ca3af; 
    font-size: var(--admin-font-size) !important; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* Charts */
.charts-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
    margin-bottom: 1rem; 
}

.chart-container { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    border-radius: 2px; 
    padding: 1rem; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #9ca3af; 
    font-style: italic; 
}

/* Action Buttons */
.action-buttons { 
    display: flex; 
    gap: 0.5rem; 
    flex-wrap: wrap;
}

/* Pagination */
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 0.5rem; 
    margin-top: 1rem;
    flex-shrink: 0;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.page-btn { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    color: white; 
    padding: 0.5rem 1rem; 
    border-radius: 2px; 
    cursor: pointer; 
     
    min-width: 40px;
    text-align: center;
}

.page-btn:hover { 
    background: linear-gradient(145deg, #3b82f6, #1d4ed8); 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.page-btn.active { 
    background: linear-gradient(145deg, #3b82f6, #1d4ed8); 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Section Titles */
.section-title { 
    color: #60a5fa; 
    margin-bottom: 1rem; 
    font-size: var(--admin-font-size) !important; 
    font-weight: 600; 
}

/* Reason Cell */
.reason-cell { 
    max-width: 200px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}

/* Filter Animation Effects */
.filter-select, .search-input {
    position: relative;
    overflow: hidden;
}

.filter-select::before, .search-input::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    
}

.filter-select:focus::before, .search-input:focus::before {
    left: 100%;
}

/* Filter Indicator Badge */
.filter-indicator {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    border-radius: 2px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--admin-font-size) !important;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* Multi-Select Support (Future Enhancement) */
.filter-select[multiple] {
    height: auto;
    min-height: 2.5rem;
    max-height: 8rem;
    overflow-y: auto;
}

.filter-select[multiple] option {
    padding: 0.4rem 0.8rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.filter-select[multiple] option:checked {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: white;
}

/* Filter Counter in Tab Title */
.tab-title-with-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-count-badge {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    border-radius: 2px;
    padding: 0.2rem 0.6rem;
    font-size: var(--admin-font-size) !important;
    font-weight: bold;
}

/* Search Highlight */
.search-highlight {
    background: rgba(251, 191, 36, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: bold;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-style: italic;
}

.empty-state-icon {
    font-size: var(--admin-font-size) !important;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-message {
    font-size: var(--admin-font-size) !important;
    margin-bottom: 0.5rem;
}

.empty-state-submessage {
    font-size: var(--admin-font-size) !important;
    opacity: 0.7;
}

/* BULK DELETE MODAL STYLES */

/* Bulk Delete Modal Container */
.bulk-delete-modal-container {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

/* HUGE DANGER WARNING ALERT */
.bulk-delete-danger-alert {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 3px solid #ef4444;
    border-radius: 2px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 
        0 10px 25px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.1);
    
}

@keyframes danger-pulse {
    50% { 
        border-color: #dc2626;
        box-shadow: 
            0 15px 35px rgba(220, 38, 38, 0.4),
            0 0 0 3px rgba(220, 38, 38, 0.2);
    }
}

.danger-alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.danger-alert-icon {
    background: linear-gradient(145deg, #dc2626, #991b1b);
    color: white;
    border-radius: 2px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--admin-font-size) !important;
    font-weight: 900;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 
        0 8px 16px rgba(220, 38, 38, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    
}

@keyframes danger-shake {
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.danger-alert-text {
    flex: 1;
}

.danger-alert-title {
    font-size: var(--admin-font-size) !important;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.danger-alert-subtitle {
    font-size: var(--admin-font-size) !important;
    color: #b91c1c;
    font-weight: 600;
    margin-top: 2px;
}

.danger-alert-message {
    color: #7f1d1d;
    font-size: var(--admin-font-size) !important;
    line-height: 1.6;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 16px;
    border-radius: 2px;
    border-left: 6px solid #dc2626;
    margin: 0;
}

.danger-alert-message strong {
    color: #dc2626;
    font-weight: 800;
}

/* Summary Grid */
.bulk-delete-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.summary-card {
    background: linear-gradient(145deg, #334155, #1e293b);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    padding: 16px;
    
}

.summary-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.summary-card-full {
    grid-column: 1 / -1;
}

.summary-card-label {
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
    font-size: var(--admin-font-size) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card-value {
    color: white;
    font-size: var(--admin-font-size) !important;
    font-weight: 500;
    line-height: 1.4;
}

/* Individual Callouts List */
.bulk-delete-callouts-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    padding: 16px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.callout-item-detail {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: linear-gradient(145deg, #334155, #1e293b);
    border-radius: 2px;
    margin-bottom: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    
}

.callout-item-detail:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(145deg, #475569, #334155);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.callout-item-detail:last-child {
    margin-bottom: 0;
}

.callout-status-icon {
    margin-right: 12px;
    font-size: var(--admin-font-size) !important;
    margin-top: 2px;
    flex-shrink: 0;
}

.callout-detail-content {
    flex: 1;
    min-width: 0;
}

.callout-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.callout-user-name {
    font-weight: 600;
    color: white;
    font-size: var(--admin-font-size) !important;
}

.callout-date-text {
    color: #9ca3af;
    font-size: var(--admin-font-size) !important;
    font-weight: 500;
}

.callout-reason-text {
    color: #cbd5e1;
    font-size: var(--admin-font-size) !important;
    font-style: italic;
    line-height: 1.4;
    margin-top: 4px;
}

/* Bulk Delete Confirm Button */
.admin-panel .button-group .bulk-delete-confirm-btn {
    background: linear-gradient(145deg, #dc2626, #991b1b);
    color: white;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.bulk-delete-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    
}

.bulk-delete-confirm-btn:hover::before {
    left: 100%;
}

.admin-panel .button-group .bulk-delete-confirm-btn:hover {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.bulk-delete-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
/* Callouts column widths */
.table th.time-created, .table td.time-created { width: 120px; text-align:left; }
.table th.actions-col, .table td.actions-col { width: 120px; }
/* Inline-to-class migrations */
.inline-checkbox-label { display:flex; align-items:center; gap:6px; }
/* .callout-modal-overlay { display:none; } - Removed to allow summary modal to show */
.role-menu { position:absolute; background:#fff; border:1px solid #ddd; border-radius:6px; box-shadow:0 4px 12px rgba(0,0,0,0.15); z-index:1000; padding:8px 0; min-width:120px; }

/* Disabled callout button styling */
.admin-panel .callout-section .add-btn-vertical.disabled { 
    background: #ccc; 
    color: #666; 
    cursor: not-allowed; 
    opacity: 0.6; 
}

/* User delete confirmation modal */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10060;
}

.admin-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 2px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.admin-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #334155;
}

.admin-modal-header h3 {
    margin: 0;
    color: #f59e0b;
    font-size: var(--admin-font-size) !important;
}

.admin-modal-body {
    padding: 1.5rem;
}

.user-delete-info {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 2px;
    padding: 1rem;
    margin: 1rem 0;
}

.user-delete-info p {
    margin: 0.5rem 0;
    color: #e2e8f0;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 2px;
    padding: 1rem;
    margin: 1rem 0;
}

.warning-box p {
    margin: 0.5rem 0;
    color: #fca5a5;
}

.warning-box ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: #fca5a5;
}

.admin-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #334155;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Role button state classes */
.inactive-role {
    opacity: 0.4 !important;
    cursor: pointer !important;
    filter: grayscale(0.7);
    box-shadow: none !important;
    border: none !important;
}

.active-role {
    opacity: 1 !important;
    cursor: pointer !important;
    filter: none;
    border: 2px solid #60a5fa !important;
    box-shadow: 0 0 0 2px #bae6fd33;
    z-index: 1;
}

