/* Contact Controls Styles - Search bar, buttons, and control elements */

/* Controls Container */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: white;
    border-bottom: 1px solid #e1e4e8;
    gap: 20px;
}

.controls-left {
    flex: 1;
    max-width: 400px;
}

.controls-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 8px 12px;
    width: 100%;
    position: relative;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.search-box i {
    color: #64748b;
    font-size: 14px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 4px 8px;
    font-size: 13px;
    width: 100%;
    background: transparent;
    color: #0f172a;
    font-weight: 500;
}

.search-box input::placeholder {
    color: #475569;
    font-weight: 500;
}

/* Clear Search Button */
.clear-search {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: none;
    transition: all 0.2s ease;
}

.clear-search:hover {
    color: #1e3c72;
}

.clear-search.show {
    display: block;
}

/* Base Button Styles */
.btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn i {
    font-size: 12px;
}

/* Button Variants */
.btn-primary {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.btn-primary:hover {
    background: #2a5298;
    border-color: #2a5298;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
}

.btn-secondary {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

.btn-secondary:hover {
    background: #475569;
    border-color: #475569;
}

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

.btn-outline:hover {
    background: #f7f9fc;
    border-color: #cbd5e1;
}

.btn-success {
    background: #059669;
    color: white;
    border-color: #059669;
}

.btn-success:hover {
    background: #047857;
    border-color: #047857;
}

.btn-info {
    background: white;
    color: #1e3c72;
    border: 1px solid #1e3c72;
}

.btn-info:hover {
    background: #1e3c72;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
}

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

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

/* Button States */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:active {
    transform: scale(0.98);
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 4px;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Filter Dropdowns */
.filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    background: white;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Quick Actions Bar */
.quick-actions {
    display: flex;
    gap: 8px;
    padding: 12px 32px;
    background: #f7f9fc;
    border-bottom: 1px solid #e1e4e8;
}

.quick-action-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.quick-action-btn.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* Bulk Selection Controls */
.bulk-controls {
    display: none;
    padding: 12px 32px;
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    align-items: center;
    gap: 16px;
}

.bulk-controls.show {
    display: flex;
}

.bulk-select-info {
    flex: 1;
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

.bulk-actions {
    display: flex;
    gap: 8px;
}

/* Pagination Controls */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: white;
    border-top: 1px solid #e1e4e8;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #e1e4e8;
    background: white;
    color: #64748b;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f7f9fc;
    border-color: #cbd5e1;
}

.page-btn.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

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

.page-info {
    padding: 0 16px;
    color: #64748b;
    font-size: 13px;
}

/* Toggle Switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #1e3c72;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}
