/* Hook Selector Sidebar Styles */

.hook-selector-sidebar {
    margin-top: 8px;
    padding: 12px;
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
}

.hook-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 13px;
    color: #7c3aed;
}

.hook-selector-header:hover {
    color: #6d28d9;
}

.hook-selector-toggle {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
}

.hook-selector-summary {
    margin-top: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

.hook-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #7c3aed;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.hook-badge-empty {
    color: #6b7280;
    font-size: 12px;
}

/* Expanded Content */
.hook-selector-content {
    margin-top: 16px;
}

.hook-selector-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.hook-selection-badge {
    font-size: 13px;
    color: #374151;
}

.hook-warning-text {
    color: #ef4444;
    font-size: 12px;
}

.hook-preset-buttons {
    display: flex;
    gap: 8px;
}

.hook-btn-preset {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.hook-btn-preset:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #7c3aed;
    color: #7c3aed;
}

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

/* Search */
.hook-search-container {
    margin-bottom: 12px;
}

.hook-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.hook-search-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Category Pills */
.hook-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    max-height: 120px;
    overflow-y: auto;
}

.hook-category-pill {
    padding: 6px 12px;
    font-size: 11px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hook-category-pill:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.hook-category-pill.active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

.hook-pill-count {
    margin-left: 4px;
    opacity: 0.7;
    font-size: 10px;
}

/* Loading/Error States */
.hook-loading-state,
.hook-error-state {
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.hook-btn-retry {
    margin-top: 8px;
    padding: 6px 12px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

/* Hook Grid */
.hook-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Compact Hook Cards */
.hook-card-compact {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s;
    background: white;
}

.hook-card-compact:hover {
    border-color: #7c3aed;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.1);
}

.hook-card-compact.selected {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.hook-card-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.hook-checkbox {
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.hook-card-content {
    flex: 1;
    min-width: 0;
}

.hook-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.hook-card-template {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 4px;
}

.hook-card-example {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
    line-height: 1.4;
}

.hook-example-toggle {
    margin-top: 4px;
    font-size: 11px;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.hook-example-toggle:hover {
    color: #6d28d9;
}

/* Load More */
.hook-load-more-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.hook-btn-load-more {
    padding: 8px 16px;
    font-size: 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.hook-btn-load-more:hover {
    background: #f9fafb;
    border-color: #7c3aed;
    color: #7c3aed;
}

/* Scrollbar styling */
.hook-grid::-webkit-scrollbar,
.hook-category-pills::-webkit-scrollbar {
    width: 6px;
}

.hook-grid::-webkit-scrollbar-track,
.hook-category-pills::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.hook-grid::-webkit-scrollbar-thumb,
.hook-category-pills::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.hook-grid::-webkit-scrollbar-thumb:hover,
.hook-category-pills::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

