/* ===================================================================
 * styles-search-admin.css
 * Purpose: Search container, split view, admin users table, bulk actions
 * Extracted from styles.css during the Apr 2026 split (task #23).
 * =================================================================== */
/* Search container and clear button styling */
.search-container .input-group {
    display: flex;
    align-items: stretch;
}

.search-container .input-group .form-control {
    height: 38px;
}

.search-container .input-group .btn {
    height: 38px;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

#contextMenu .context-item:hover {
    background-color: var(--primary-color);
    color: var(--text-dark) !important;
}

.admin-name {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.footer {
    text-align: center;
    padding: 0.75rem 2rem;
    background-color: var(--dark-bg);
    color: var(--text-light);
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    max-width: 300px;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Split View Styles */
.floating-window {
    position: fixed;
    background: var(--dark-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    resize: both;
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.floating-window .table-container {
    height: calc(100% - 40px) !important;
    overflow: auto;
}

.floating-window .table {
    margin: 0;
    width: 100% !important;
}

.floating-window .project-total-row {
    position: sticky;
    bottom: 0;
    background: var(--dark-bg);
    z-index: 2;
}

.floating-window thead th {
    position: sticky;
    top: 0;
    background: var(--dark-bg);
    z-index: 2;
    padding: 8px;
    white-space: nowrap;
}

.floating-window td {
    padding: 4px 8px;
    white-space: normal;
    word-break: break-word;
}

.view-options-menu {
    z-index: 1050;
    background: var(--dark-bg);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    padding: 8px 0;
}

.view-options-menu .dropdown-item {
    color: var(--text-light);
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-light);
    padding: 8px 16px;
}

.view-options-menu .dropdown-item:hover {
    background-color: var(--primary-color);

/* Admin Users Table Styles */
.admin-users-table .btn {
    padding: 0.1rem 0.2rem;
    font-size: 0.6rem;
    white-space: nowrap;
    margin-bottom: 1px;
    line-height: 1;
    min-width: 40px;
    max-width: 50px;
}

/* Bulk Actions Styles */
#bulk-actions {
    border-left: 4px solid var(--primary-color);
    background-color: var(--darker-bg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

#bulk-actions .card-header {
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

#bulk-actions .card-body {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Light mode overrides for bulk actions */
[data-theme="light"] #bulk-actions {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

[data-theme="light"] #bulk-actions .card-header {
    background-color: #f8f9fa;
    color: #333333;
    border-bottom: 1px solid #dee2e6;
}

[data-theme="light"] #bulk-actions .card-body {
    background-color: #ffffff;
    color: #333333;
}

/* Selected row highlighting */
.table-warning {
    background-color: rgba(var(--primary-color-rgb), 0.15) !important;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color) !important;
}

/* Row hover effects */
.user-row:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05) !important;
    transition: background-color 0.2s ease;
}

/* Button pulse animation for active states */
.btn-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Smooth checkbox transitions */
.form-check-input {
    transition: all 0.2s ease;
}

.form-check-input:hover {
    transform: scale(1.1);
}

/* Better spacing for bulk actions */
#bulk-actions .btn-group .btn {
    margin: 0 2px;
}

#bulk-actions .btn-group .btn:first-child {
    margin-left: 0;
}

#bulk-actions .btn-group .btn:last-child {
    margin-right: 0;
}

.table-responsive {
    overflow-x: auto;
}

/* Make sure action buttons always stay on one line or wrap properly */
.d-flex.flex-wrap.gap-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem !important;
}

/* Ensure the Actions column is wide enough */
.admin-users-table th:last-child,
.admin-users-table td:last-child {
    min-width: 200px;
    width: 200px;
}

/* Center action buttons in their container */
.admin-users-table td:last-child {
    text-align: center;
}

/* Make sure the table takes full width */
.table {
    width: 100% !important;
    table-layout: fixed;
}

/* Add horizontal scrolling specifically for admin tables */
.admin-users-table {
    min-width: 800px;
}

/* Ensure buttons fit nicely in their cells */
.admin-users-table .btn-group {
    display: flex;
    justify-content: center;
}

    color: var(--text-dark);
}

.floating-window .table-container {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.floating-window .table {
    width: 100% !important;
    margin-bottom: 0;
}

.floating-window-header {
    background: var(--darker-bg);
    padding: 8px;
    cursor: move;
display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--primary-color);
}

.window-controls {
    display: flex;
    gap: 8px;
    position: sticky;
    top: 0;
    right: 8px;
    z-index: 1000;
    background: var(--darker-bg);
    padding: 4px;
    border-radius: 4px;
}

.window-controls button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
}

.floating-window-content {
    height: calc(100% - 40px);
    overflow: auto;
    padding: 10px;
}

tr[data-level].dragging {
    opacity: 0.5;
    background: var(--dark-bg);
}

tr[data-level].drag-over {
    border: 2px dashed var(--primary-color);
    background: rgba(245, 179, 1, 0.1);
}

