/* app/assets/stylesheets/advanced_search.css */

.search-options {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.advanced-search-form-separator {
    position: relative;
    display: flex;
    align-items: center;
    margin: 30px 0;
    text-align: center;
}

.advanced-search-form-separator::before,
.advanced-search-form-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.advanced-search-form-separator::before {
    margin-right: 20px;
}

.advanced-search-form-separator::after {
    margin-left: 20px;
}

.advanced-search-form-separator-text {
    padding: 0 10px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.form-actions {
    margin-top: 1.5rem;
}

.not-found-message {
    background-color: #fff8f8;
    border: 1px solid #fed7d7;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.not-found-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.id-badge {
    display: inline-block;
    background-color: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.id-badge.not-found {
    background-color: #fed7d7;
    color: #c53030;
}

/* Bulk actions styling */
.bulk-actions-panel {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.bulk-action-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.bulk-action-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.bulk-action-tab:hover {
    color: #2c3e50;
}

.bulk-action-tab.active {
    color: #2c3e50;
    border-bottom: 3px solid #3182ce;
}

.bulk-action-form {
    display: none;
}

.bulk-action-form:first-child {
    display: block;
}

.affected-count {
    display: inline-block;
    margin-left: 1rem;
    color: #6c757d;
    font-style: italic;
}

/* Custom confirmation dialog styling */
.bulk-action-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.bulk-action-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-action-confirm-dialog {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.affected-count-large {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 16px 0;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

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

.designs-table th,
.designs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.designs-table th {
    background-color: #f7fafc;
    text-align: left;
    font-weight: 600;
}

.preview-cell {
    width: 80px;
}

.design-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.no-preview {
    width: 60px;
    height: 60px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
}

.actions-cell {
    width: 100px;
}

/* Centered pagination controls */
.pagination-container {
    margin-top: 2rem;
}
  
.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #6c757d;
}
  
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
  
.pagination-ellipsis {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin: 0 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}
