/* Ensure admin panel tables have minimal cell padding */
/* Admin table: minimal padding, fixed layout, and no wrapping */
.table {
    table-layout: fixed;
    width: 100%;
}
.table th, .table td {
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Admin Table Column Classes */
.admin-table th.col-index, .admin-table td.col-index {
    width: 40px;
    text-align: center;
    padding: 0 4px;
}
.admin-table th.col-avatar, .admin-table td.col-avatar {
    width: 48px;
    text-align: center;
    padding: 0 4px;
}
.admin-table th.col-username, .admin-table td.col-username {
    width: 140px;
    text-align: left;
    padding: 0 8px;
}
.admin-table th.col-server, .admin-table td.col-server {
    width: 120px;
    text-align: left;
    padding: 0 8px;
}
.admin-table th.col-discord, .admin-table td.col-discord {
    width: 180px;
    text-align: left;
    padding: 0 8px;
}
.admin-table th.col-role, .admin-table td.col-role {
    width: 110px;
    text-align: left;
    padding: 0 8px;
}
.admin-table th.col-role-mgmt, .admin-table td.col-role-mgmt {
    width: 120px;
    text-align: left;
    padding: 0 8px;
}
.admin-table th.col-callouts, .admin-table td.col-callouts {
    width: 90px;
    text-align: right;
    padding: 0 8px;
}
.admin-table th.col-last-active, .admin-table td.col-last-active {
    width: 120px;
    text-align: left;
    padding: 0 8px;
}
.admin-table th.col-actions, .admin-table td.col-actions {
    width: 140px;
    text-align: center;
    padding: 0 4px;
}
}
/* Inline CSS migration from panel.js */
.admin-panel-error-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #dc2626;
    color: white;
    padding: 20px;
    border-radius: 2px;
    width: 28px;
    text-align: center;
    padding: 0 1px 0 0;
}
.admin-panel-error-close-btn {
    width: 70px;
    text-align: left;
    padding: 0 0 0 1px;
.admin-panel-title {
    margin: 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}
.wow-empty-message-margin {
    margin-bottom: 1rem;
}
.vote-option-row-flex {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.vote-option-remove-btn {
    width: 40px;
}
.vote-changes-summary-block {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #1f2937;
    border-radius: 0.375rem;
}
.vote-changes-summary-title {
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}
.vote-changes-summary-old {
    color: #dc2626;
    margin-bottom: 0.25rem;
}
.vote-changes-summary-new {
    color: #22c55e;
}
.vote-changes-modal-flex {
    display: flex;
    z-index: 10000;
}
.vote-changes-modal-width {
    max-width: 600px;
}
.vote-form-error-inline {
    background: #dc2626;
    color: white;
    padding: 10px;
    border-radius: 2px;
    margin-bottom: 1rem;
}
/* Admin Panel Styles */

.filter-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: 14px;
    min-width: 120px;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #666;
}

.filter-select:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.loading-row {
    text-align: center;
    padding: 40px !important;
    color: #888;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #334155;
    border-radius: 2px;
    border-top-color: #007acc;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.summary-card {
    background: #1e293b;
    border-radius: 2px;
    padding: 20px;
    text-align: center;
    border: 1px solid #334155;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.summary-card h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.summary-card span {
    color: #007acc;
    font-size: 2rem;
    font-weight: bold;
}

/* Responsive design */

/* Image Management Styles */
.boss-images-row {
    margin-top: 10px;
    padding: 15px;
    background: #1e293b;
    border-radius: 2px;
    border: 1px solid #334155;
}

.image-upload-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.image-count {
    color: #94a3b8;
    font-size: 14px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-item {
    position: relative;
    background: #0f172a;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #334155;
}

.image-item .thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    display: flex;
    justify-content: center;
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 30px;
    font-style: italic;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 2px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #64748b;
    color: #e2e8f0;
}

.btn-outline:hover {
    background: #64748b;
    color: #0f172a;
}

.btn-danger {
    background: #dc2626;
    border: 1px solid #dc2626;
    color: white;
}

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