body {
    background: #0d0d0d;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
}
.container {
    display: flex;
    flex-direction: column;
    /* min-height: 100vh; */
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 40px;
    transition: margin-left 0.3s ease;
}
.container-chat {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 40px;
    padding-bottom: 10px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem 0 3rem;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #232323;
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #333;
}
.login-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.search-area {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.search-btn {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    padding: 8px;
    z-index: 2;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.search-btn:hover {
    background-color: #191919;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

#search-box-in-chat {
    display: flex;
    align-items: center;
    background: #232323;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: 600px;
    height: 150px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #232323;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: 600px;
    height: 200px;
    margin-bottom: 2rem;
}
#search-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    flex: 1;
    outline: none;
    margin: 15px 10px;
    resize: none;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.5;
}
#search-input::-webkit-scrollbar {
    display: none;
}
/* Context Sources */
.context-sources {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.context-chip {
    position: relative;
    display: inline-block;
    background: #191919;
    border: 1px solid #232323;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}

.context-chip:hover {
    background: #232323;
    border-color: #4a9eff;
}

.context-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.context-icon {
    font-size: 1rem;
}

.context-text {
    white-space: nowrap;
}

.context-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 300px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.dropdown-clear {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.dropdown-clear:hover {
    background: #2a2a2a;
}

.dropdown-sites {
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-empty {
    padding: 1rem;
    color: #888;
    font-size: 0.85rem;
    text-align: center;
}

.dropdown-site {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
}

.dropdown-site:hover {
    background: #2a2a2a;
}

.dropdown-site:last-child {
    border-bottom: none;
}

.dropdown-site a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 0.85rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-site a:hover {
    text-decoration: underline;
}

.dropdown-site-domain {
    color: #888;
    font-size: 0.75rem;
    margin-left: auto;
}

.dropdown-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #333;
}

.dropdown-select {
    width: 100%;
    background: #4a9eff;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.dropdown-select:hover {
    background: #3a8eef;
}

/* Inference CTA Bar for Sites Page */
.inference-cta {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cta-text {
    color: #fff;
    font-size: 0.9rem;
    flex: 1;
}

.cta-actions {
    display: flex;
    gap: 0.5rem;
}

.cta-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #404040;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.cta-btn.primary {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.cta-btn.primary:hover {
    background: #3a8eef;
    border-color: #3a8eef;
}

.cta-btn.secondary {
    background: #2a2a2a;
    color: #fff;
    border-color: #404040;
}

.cta-btn.secondary:hover {
    background: #333;
    border-color: #555;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #16a34a;
    border: 1px solid #22c55e;
}

.toast-error {
    background: #dc2626;
    border: 1px solid #ef4444;
}

.toast-info {
    background: #2563eb;
    border: 1px solid #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pill {
    position: relative;
    display: flex;
    align-items: center;
    background: #191919;
    color: #fff;
    border: 1px solid #232323;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}
.pill-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pill-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.pill:hover {
    background: #232323;
    border: 1px solid darkblue;
    color: white;
}
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff3b30;
    border: 2px solid #191919;
    transition: background-color 0.3s ease;
}
.pill:hover .badge {
    border-color: #232323;
}
.pill.connected .badge {
    background-color: #34c759;
}
@media (max-width: 600px) {
    header {
        padding: 1rem;
    }
    .search-box {
        width: 95vw;
    }
}

.attach-btn {
    position: absolute;
    left: 0;
    bottom: 0.5rem;
    padding: 8px;
    z-index: 2;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.attach-btn:hover {
    background-color: #191919;
}

.attach-btn svg {
    width: 20px;
    height: 20px;
}

.dropdown-icon {
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.has-dropdown {
    padding-right: 12px;
}

.has-dropdown:hover .dropdown-icon {
    opacity: 1;
}

.pill.has-dropdown:hover .dropdown-icon {
    transform: translateY(2px);
}

/* Pill dropdown styles */
.pills .pill {
    position: relative;
}

.pills .pill-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 250px;
    max-width: 350px;
}

.pills .pill-dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
    cursor: pointer;
}

.pills .pill-dropdown-item:hover {
    background: #2a2a2a;
}

.pills .pill-dropdown-item:last-child {
    border-bottom: none;
}

.pills .dropdown-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pills .dropdown-item-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pills .status-icon {
    font-size: 0.9rem;
}

.pills .status-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.pills .dropdown-item-details {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.pills .dropdown-item-time {
    color: #888;
    font-size: 0.75rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}
.user-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.user-name {
    font-size: 1rem;
    font-weight: 500;
}

#search-section {
    margin-top: 30px;
}

#search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}


#search-btn {
    padding: 10px 20px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#search-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#file-store-id {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

#results-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    white-space: pre-wrap;
}

#results-container .error {
    color: #dc3545;
    font-weight: bold;
}

/* Existing styles */
.google-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#logout-btn {
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#search-results {
    display: none;
    margin-top: 2rem;
    background: #181818;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    color: #fff;
    font-size: 1.1rem;
    min-height: 60px;
    /* width: 600px; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: auto;
    word-break: break-word;
}

.visible-search-results {
    display: block !important;
}

.inference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: #f7f8fa;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    color: #111;
}

.inference-table th,
.inference-table td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    color: #111;
}

.inference-table th.inference-column-headings {
    background: #e6eaf3;
    color: #111;
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 2px solid #bfc8d9;
}

.inference-table tr.inference-row:nth-child(even) {
    background: #f0f2f7;
}

.inference-table tr.inference-row:nth-child(odd) {
    background: #f7f8fa;
}

.inference-table tr.inference-row:hover {
    background: #e2e6f0;
    cursor: pointer;
}

.inference-table td {
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
}

.inference-table tr:last-child td {
    border-bottom: none;
}

.selected {
    background-color: #d4e6f1 !important;
    color: #111 !important;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgb(35, 35, 35);
    color: #666;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    font-size: 14px;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid #444;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s, background 0.2s;
}

.sidebar-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle-main {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    background: rgba(35, 35, 35, 0.9);
    border: 1px solid #444;
    color: #fff;
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section-header svg {
    color: #666;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
}

.sidebar-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-item.active svg {
    color: #fff;
}

.sidebar-item svg {
    color: #666;
    transition: color 0.2s;
}

.sidebar-item:hover svg {
    color: #fff;
}

.chat-list {
    max-height: 300px;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
    font-size: 13px;
}

.chat-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.chat-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Container adjustments */
.container.sidebar-open {
    margin-left: 280px;
}

/* Chat interface styles */
#chat-and-search-container {
    flex: 1;
    /* max-height: 60vh; */
    /* overflow-y: auto; */
    /* padding: 1rem; */
    /* margin-bottom: 1rem; */
    /* background: #181818; */
    border-radius: 1rem;
    color: #fff;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.chat-message.user {
    background: #007bff;
    color: white;
    margin-left: auto;
    max-width: 60%;
    text-align: right;
}

.chat-message.assistant {
    background: #333;
    color: #fff;
}

.chat-message.system {
    background: #444;
    color: #ccc;
    text-align: center;
    margin: 0 auto;
    font-style: italic;
}

.message-content {
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-age {
    color: #888;
    font-size: 12px;
    margin-right: 0.5rem;
    font-weight: 500;
}

.chat-title {
    color: #fff;
    font-size: 13px;
}

.chat-item:hover .chat-title {
    color: #fff;
}

.chat-item:hover .chat-age {
    color: #aaa;
}

.send-btn {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    padding: 8px;
    z-index: 2;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.send-btn:hover {
    background-color: #191919;
}

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

.send-btn svg {
    width: 20px;
    height: 20px;
}

/* Chat input specific styling */
#chat-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    flex: 1;
    outline: none;
    margin: 15px 10px;
    resize: none;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.5;
}

#chat-input::-webkit-scrollbar {
    display: none;
}

#chat-input:disabled {
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container.sidebar-open {
        margin-left: 0;
    }
    
    .sidebar {
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
} 

/* Campaign page styles */
.table-section {
    margin-bottom: 3rem;
}

.table-hint {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.urgency-chip {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

.action-btn {
    background: none;
    border: 1px solid #444;
    border-radius: 0.25rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    margin: 0 0.1rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #666;
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sortable::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    opacity: 0.5;
}

.sortable.sort-asc::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid currentColor;
}

.sortable.sort-desc::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid currentColor;
}

.comment-row {
    background: #2a2a2a !important;
}

.comment-cell {
    padding: 1.5rem !important;
}

.comment-section {
    background: #333;
    border-radius: 0.5rem;
    padding: 1rem;
}

.comment-history {
    margin-bottom: 1rem;
}

.comment-item {
    background: #444;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-timestamp {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.comment-text {
    color: #fff;
}

.comment-input {
    width: 100%;
    background: #444;
    border: 1px solid #555;
    border-radius: 0.25rem;
    color: #fff;
    padding: 0.75rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.comment-input:focus {
    outline: none;
    border-color: #007bff;
}

.comment-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.save-comment-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.save-comment-btn:hover {
    background: #0056b3;
}

.cancel-comment-btn {
    background: #666;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cancel-comment-btn:hover {
    background: #555;
}

/* Campaign CTA Styles */
.campaign-cta {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.campaign-cta.floating {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 500px;
    background: #2a2a2a;
    border: 1px solid #444;
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-text {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cta-actions button,
.cta-actions select,
.cta-actions input {
    padding: 0.5rem 1rem;
    border: 1px solid #555;
    border-radius: 0.25rem;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.cta-actions button:hover {
    background: #444;
}

.cta-actions select:hover,
.cta-actions input:hover {
    background: #444;
}

.cta-select-all {
    background: #0d7377 !important;
}

.cta-select-all:hover {
    background: #0a5d61 !important;
}

.cta-select-none {
    background: #666 !important;
}

.cta-select-none:hover {
    background: #555 !important;
}

.cta-add-to-campaign {
    background: #1976d2 !important;
}

.cta-add-to-campaign:hover {
    background: #1565c0 !important;
}

.cta-create-campaign {
    background: #388e3c !important;
}

.cta-create-campaign:hover {
    background: #2e7d32 !important;
}

.new-campaign-name {
    min-width: 200px;
}

.campaign-select {
    min-width: 200px;
}

/* Sites Table Styles */
.sites-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    color: #fff;
}

.sites-table th,
.sites-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.sites-column-headings th {
    background: #2a2a2a;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #333;
}

.sites-table tbody tr:hover {
    background: #2a2a2a;
    cursor: pointer;
}

.sites-table tbody tr:nth-child(even) {
    background: #1f1f1f;
}

.sites-table tbody tr:nth-child(odd) {
    background: #1a1a1a;
}

.sites-table tbody tr:nth-child(even):hover,
.sites-table tbody tr:nth-child(odd):hover {
    background: #2a2a2a;
}

.sites-table .checkbox-cell,
.sites-table .checkbox-header {
    width: 50px;
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.sites-table .website-cell {
    min-width: 250px;
}

.sites-table .date-cell {
    width: 150px;
    white-space: nowrap;
}

.sites-table .token-cell {
    width: 120px;
    text-align: right;
}

.sites-table .actions-cell {
    width: 80px;
    text-align: center;
}

.site-favicon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.site-title {
    color: #4a9eff;
    text-decoration: none;
}

.site-title:hover {
    text-decoration: underline;
}

.site-url {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-top: 2px;
}

.sites-table .delete-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.sites-table .delete-btn:hover {
    color: #ff4444;
}

.sites-table .delete-btn:disabled {
    color: #666;
    cursor: not-allowed;
}

.sites-table .delete-btn.confirming {
    color: #fff;
    font-size: 0.9rem;
}

.sites-table .delete-btn.deleting {
    color: #888;
}

.sites-table .confirm-delete {
    display: inline-block;
    white-space: nowrap;
}

.sites-table .confirm-yes {
    color: #ff4444;
    cursor: pointer;
    padding: 0 2px;
    font-weight: bold;
}

.sites-table .confirm-yes:hover {
    color: #ff0000;
}

.sites-table .confirm-no {
    color: #888;
    cursor: pointer;
    padding: 0 2px;
    font-weight: bold;
}

.sites-table .confirm-no:hover {
    color: #fff;
}

.sites-table .confirm-separator {
    color: #666;
    padding: 0 1px;
}

.sites-table .screenshot-link {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.sites-table .screenshot-link:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

.token-estimate {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: #ccc;
}

/* Sites Header Styles */
.sites-header {
    margin-bottom: 2rem;
}

.sites-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.sites-subtitle {
    color: #888;
    margin: 0;
    font-size: 1.1rem;
}

.sites-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 2rem;
    padding: 0;
}

/* Campaign sidebar items */
.campaign-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0.125rem 0;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s;
    color: #999;
}

.campaign-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.campaign-age {
    font-size: 0.75rem;
    color: #666;
    margin-right: 0.5rem;
    min-width: 2rem;
}

.campaign-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* People Page Styles */
.people-header {
    margin-bottom: 2rem;
}

.people-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.people-subtitle {
    color: #888;
    margin: 0;
    font-size: 1.1rem;
}

.people-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 2rem;
    padding: 0;
}

.search-container {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.pagination-info {
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: fit-content;
}

.table-container {
    background: #1a1a1a;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid #333;
    margin-bottom: 2rem;
}

/* People table specific styling */
#people-table {
    table-layout: fixed;
    width: 100%;
}

#people-table th {
    padding: 1rem 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid #333;
}

#people-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #2a2a2a;
    overflow: hidden;
    text-overflow: ellipsis;
}

#people-table .checkbox-cell,
#people-table .checkbox-header {
    width: 60px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

#people-table th:nth-child(2) { /* Name column */
    width: 30%;
}

#people-table th:nth-child(3) { /* Primary Metadata column */
    width: 45%;
}

#people-table th:nth-child(4) { /* Sourced On column */
    width: 25%;
    padding-right: 1rem;
}

#people-table .name-cell {
    min-width: unset;
    white-space: nowrap;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.checkbox-header {
    width: 50px;
    text-align: center;
}

.checkbox-cell {
    text-align: center;
    width: 50px;
}
/* Campaign CTA styling */
.campaign-cta {
    margin-top: 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
}

.campaign-cta.floating {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-color: #4a9eff;
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-text {
    font-weight: 600;
    color: #fff;
}

.cta-selection-controls {
    display: flex;
    gap: 0.5rem;
}

.cta-selection-controls button {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

.cta-selection-controls button:hover {
    background: #333;
    border-color: #4a9eff;
}

.cta-campaign-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.existing-campaign-section,
.new-campaign-section {
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #222;
}

.existing-campaign-section h4,
.new-campaign-section h4 {
    margin: 0 0 0.75rem 0;
    color: #4a9eff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
}

.campaign-select:focus {
    outline: none;
    border-color: #4a9eff;
}

.new-campaign-input-group {
    display: flex;
    gap: 0.5rem;
}

.new-campaign-name {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
}

.new-campaign-name:focus {
    outline: none;
    border-color: #4a9eff;
}

.cta-create-campaign {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #4a9eff;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.cta-create-campaign:hover {
    background: #3a8eef;
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 2000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: #22c55e;
    color: white;
    border: 1px solid #16a34a;
}

.toast-error {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.toast-info {
    background: #3b82f6;
    color: white;
    border: 1px solid #2563eb;
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

.toast-action {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: currentColor;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.toast-action:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.toast-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.toast-close:hover {
    opacity: 1;
}

.loading-container {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-container {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-container h3 {
    margin: 0 0 1rem 0;
    color: #fff;
}

.empty-container p {
    color: #888;
    margin: 0 0 2rem 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #333;
    border-color: #4a9eff;
}

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

/* Search and Stats Section */
#campaign-container .search-stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

#campaign-container .search-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#campaign-container #search-input {
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    width: 300px;
    transition: border-color 0.2s;
}

#campaign-container #search-input:focus {
    outline: none;
    border-color: #4a9eff;
}

#campaign-container #clear-search {
    padding: 0.75rem 1rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

#campaign-container #clear-search:hover {
    background: #444;
}

#campaign-container .stats-container {
    display: flex;
    gap: 2rem;
}

#campaign-container .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#campaign-container .stat-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 0.25rem;
}

#campaign-container .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

/* Table Header with Pagination */
#campaign-container .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

#campaign-container .table-header h2 {
    margin: 0;
}

#campaign-container .pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#campaign-container .pagination-info {
    font-size: 14px;
    color: #888;
}

#campaign-container .pagination-info .current-page,
#campaign-container .pagination-info .total-pages,
#campaign-container .pagination-info .total-items {
    color: #fff;
    font-weight: 500;
}

/* Token usage display for home page */
.token-usage-display {
    margin: 1rem 0;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.token-usage-meter {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.token-usage-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.token-usage-fill.token-usage-warning {
    background: #FF9800;
}

.token-usage-fill.token-usage-over-limit {
    background: #F44336;
}

.token-usage-info {
    color: #fff;
    font-size: 0.9rem;
}

.token-usage-breakdown {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

.token-usage-warnings {
    margin-top: 0.5rem;
}

.token-error-toast {
    background: #F44336;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.token-warning-toast {
    background: #FF9800;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.token-info-toast {
    background: #2196F3;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Chat token status */
.chat-token-status {
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

.chat-token-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-token-count {
    font-size: 0.8rem;
    color: #fff;
    min-width: 80px;
}

.chat-token-meter {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.chat-token-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.chat-token-indicator.chat-token-warning .chat-token-fill {
    background: #FF9800;
}

.chat-token-indicator.chat-token-over-limit .chat-token-fill {
    background: #F44336;
}

.chat-token-indicator.chat-token-over-limit .chat-token-count {
    color: #F44336;
}

.chat-token-indicator.chat-token-warning .chat-token-count {
    color: #FF9800;
}

/* Sites page - Inference context section */
.sites-page .inference-context-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.sites-page .inference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sites-page .inference-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.sites-page .inference-actions {
    display: flex;
    gap: 0.5rem;
}

.sites-page .sites-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.sites-page .sites-btn-primary {
    background: #007bff;
    color: white;
}

.sites-page .sites-btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.sites-page .sites-btn-primary:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.sites-page .sites-btn-secondary {
    background: #6c757d;
    color: white;
}

.sites-page .sites-btn-secondary:hover {
    background: #545b62;
}

.sites-selection-info {
    color: #ccc;
    font-size: 0.9rem;
}

.sites-selection-info p {
    margin: 0;
}

/* Sites table - Content type column */
.sites-page .content-type-cell {
    padding: 0.5rem;
}

.sites-page .content-type-display {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sites-page .content-always {
    font-size: 0.8rem;
    color: #4CAF50;
    font-weight: 500;
}

.sites-page .content-optional {
    font-size: 0.75rem;
}

.sites-page .content-optional.available {
    opacity: 1;
}

.sites-page .content-optional.disabled {
    opacity: 0.4;
}

.sites-page .html-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    color: #ccc;
    background: none;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.sites-page .html-toggle-btn:hover:not(:disabled) {
    border-color: #666;
    background: #2a2a2a;
}

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

.sites-page .html-toggle-btn.active {
    color: #FF9800;
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.sites-page .html-toggle-btn .toggle-icon {
    font-weight: bold;
    min-width: 12px;
    text-align: center;
}

.sites-page .content-optional.disabled .html-toggle-btn {
    cursor: not-allowed;
}

/* Enhanced context dropdown - token information (home page) */
.context-chip .dropdown-site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

.context-chip .dropdown-site:last-child {
    border-bottom: none;
}

.context-chip .site-info {
    flex: 1;
    min-width: 0;
}

.context-chip .site-info a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.context-chip .site-info a:hover {
    color: #4CAF50;
}

.context-chip .dropdown-site-domain {
    color: #888;
    font-size: 0.8rem;
}

.context-chip .site-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.context-chip .content-badges {
    font-size: 0.8rem;
}

.context-chip .site-token-cost {
    color: #FF9800;
    font-size: 0.75rem;
    font-weight: 500;
}

.context-chip .site-token-free {
    color: #4CAF50;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Context dropdown - sources section */
.context-chip .dropdown-separator {
    height: 1px;
    background: #333;
    margin: 0.5rem 0;
}

.context-chip .dropdown-sources-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    padding: 0.5rem;
    background: #1a1a1a;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.context-chip .dropdown-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #333;
}

.context-chip .dropdown-source:last-child {
    border-bottom: none;
}

.context-chip .source-label {
    font-size: 0.85rem;
    color: #fff;
}

.context-chip .source-info {
    font-size: 0.75rem;
    color: #4CAF50;
    font-weight: 500;
}

/* Chat page - Context indicator (top corner) */
.chat-context-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.context-indicator-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.context-indicator-content:hover {
    background: #333;
    border-color: #555;
}

.context-indicator-icon {
    font-size: 0.9rem;
}

.context-indicator-text {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 500;
}

.context-indicator-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.context-indicator-content:hover .context-indicator-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.context-tooltip-site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.context-tooltip-site:last-child {
    border-bottom: none;
}

.context-tooltip-site-info {
    flex: 1;
    min-width: 0;
}

.context-tooltip-site-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.context-tooltip-site-title a {
    color: #fff;
    text-decoration: none;
}

.context-tooltip-site-title a:hover {
    color: #4CAF50;
}

.context-tooltip-site-domain {
    color: #888;
    font-size: 0.75rem;
}

.context-tooltip-site-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.context-tooltip-site-badges {
    font-size: 0.75rem;
}

.context-tooltip-site-tokens {
    font-size: 0.75rem;
    color: #FF9800;
    font-weight: 500;
}

.context-tooltip-site-free {
    font-size: 0.75rem;
    color: #4CAF50;
}

.context-tooltip-sources {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #333;
}

.context-tooltip-sources-title {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.context-tooltip-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.context-tooltip-source {
    background: #2a2a2a;
    color: #4CAF50;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid #333;
}

.context-tooltip-tokens {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #333;
    text-align: center;
}

.context-tooltip-token-count {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.context-tooltip-token-meter {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.context-tooltip-token-fill {
    height: 100%;
    background: #4CAF50;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.context-tooltip-token-breakdown {
    font-size: 0.7rem;
    color: #888;
}

/* Simple toast for chat page */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-info {
    background: #2196F3;
}

.toast-error {
    background: #f44336;
}

.toast-warning {
    background: #FF9800;
}

.toast-success {
    background: #4CAF50;
}

/* Loading Animations - Scoped for Canteen App */
.canteen-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem;
    color: #fff;
    backdrop-filter: blur(8px);
}

.canteen-thinking-animation {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(74, 158, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.canteen-thinking-animation:hover {
    background: rgba(74, 158, 255, 0.12);
    border-color: rgba(74, 158, 255, 0.3);
    transform: translateY(-1px);
}

.canteen-thinking-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.canteen-thinking-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #4a9eff 0%, #0066cc 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
    animation: canteen-thinking-pulse 1.8s infinite ease-in-out both;
    position: relative;
}

.canteen-thinking-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: canteen-thinking-highlight 1.8s infinite ease-in-out both;
}

.canteen-thinking-dot:nth-child(1) {
    animation-delay: -0.4s;
}

.canteen-thinking-dot:nth-child(1)::before {
    animation-delay: -0.4s;
}

.canteen-thinking-dot:nth-child(2) {
    animation-delay: -0.2s;
}

.canteen-thinking-dot:nth-child(2)::before {
    animation-delay: -0.2s;
}

.canteen-thinking-dot:nth-child(3) {
    animation-delay: 0s;
}

.canteen-thinking-dot:nth-child(3)::before {
    animation-delay: 0s;
}

@keyframes canteen-thinking-pulse {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(74, 158, 255, 0.1);
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 25px rgba(74, 158, 255, 0.6);
    }
}

@keyframes canteen-thinking-highlight {
    0%, 80%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.canteen-thinking-text {
    font-size: 1rem;
    color: #e0e7ff;
    font-weight: 500;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.canteen-streaming-animation {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 152, 0, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: canteen-streaming-glow 2s infinite ease-in-out;
}

@keyframes canteen-streaming-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 152, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 152, 0, 0.3);
    }
}

.canteen-streaming-indicator {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    height: 24px;
}

.canteen-streaming-wave {
    width: 4px;
    height: 6px;
    background: linear-gradient(180deg, #ff9800 0%, #f57c00 50%, #e65100 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
    animation: canteen-streaming-wave 1.2s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

.canteen-streaming-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    animation: canteen-streaming-shimmer 1.2s infinite ease-in-out;
}

.canteen-streaming-wave:nth-child(1) {
    animation-delay: 0s;
}

.canteen-streaming-wave:nth-child(1)::before {
    animation-delay: 0s;
}

.canteen-streaming-wave:nth-child(2) {
    animation-delay: 0.08s;
}

.canteen-streaming-wave:nth-child(2)::before {
    animation-delay: 0.08s;
}

.canteen-streaming-wave:nth-child(3) {
    animation-delay: 0.16s;
}

.canteen-streaming-wave:nth-child(3)::before {
    animation-delay: 0.16s;
}

.canteen-streaming-wave:nth-child(4) {
    animation-delay: 0.24s;
}

.canteen-streaming-wave:nth-child(4)::before {
    animation-delay: 0.24s;
}

.canteen-streaming-wave:nth-child(5) {
    animation-delay: 0.32s;
}

.canteen-streaming-wave:nth-child(5)::before {
    animation-delay: 0.32s;
}

.canteen-streaming-wave:nth-child(6) {
    animation-delay: 0.4s;
}

.canteen-streaming-wave:nth-child(6)::before {
    animation-delay: 0.4s;
}

.canteen-streaming-wave:nth-child(7) {
    animation-delay: 0.48s;
}

.canteen-streaming-wave:nth-child(7)::before {
    animation-delay: 0.48s;
}

@keyframes canteen-streaming-wave {
    0%, 40%, 100% {
        height: 6px;
        opacity: 0.6;
        transform: scaleY(1);
        box-shadow: 0 0 8px rgba(255, 152, 0, 0.2);
    }
    20% {
        height: 24px;
        opacity: 1;
        transform: scaleY(1.2);
        box-shadow: 0 0 12px rgba(255, 152, 0, 0.6);
    }
}

@keyframes canteen-streaming-shimmer {
    0%, 40%, 100% {
        opacity: 0.3;
    }
    20% {
        opacity: 0.8;
    }
}

.canteen-streaming-text {
    font-size: 1rem;
    color: #ffb74d;
    font-weight: 500;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: canteen-streaming-text-pulse 2s infinite ease-in-out;
}

@keyframes canteen-streaming-text-pulse {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

/* Home page search loading states */
.canteen-home-loading {
    margin-top: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 158, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.canteen-home-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.1), transparent);
    animation: canteen-loading-shimmer 2s infinite;
}

@keyframes canteen-loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Chat page loading states */
.canteen-chat-loading {
    background: linear-gradient(135deg, #333 0%, #3a3a3a 100%);
    border-radius: 1.2rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(74, 158, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.canteen-chat-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.08), transparent);
    animation: canteen-loading-shimmer 2.5s infinite;
}

.canteen-chat-loading .canteen-thinking-animation,
.canteen-chat-loading .canteen-streaming-animation {
    margin-bottom: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

/* Button loading states */
.canteen-btn-loading {
    color: transparent !important;
    overflow: hidden;
    background: linear-gradient(135deg, #4a9eff 0%, #3a8eef 100%) !important;
    transform: scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Only add relative positioning for buttons that aren't absolutely positioned */
.canteen-btn-loading:not(.search-btn):not(.send-btn) {
    position: relative;
}

/* Ensure search and send buttons maintain their absolute positioning */
.search-btn.canteen-btn-loading {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
}

.send-btn.canteen-btn-loading {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
}

.canteen-btn-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: canteen-button-shimmer 1.5s infinite;
    pointer-events: none;
}

.canteen-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top: 2.5px solid #fff;
    border-radius: 50%;
    animation: canteen-button-spin 0.8s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes canteen-button-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes canteen-button-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Typing cursor animation for streaming */
.canteen-typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(135deg, #4a9eff 0%, #3a8eef 100%);
    margin-left: 4px;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
    animation: canteen-cursor-blink 1.2s infinite;
    vertical-align: baseline;
}

@keyframes canteen-cursor-blink {
    0%, 45% {
        opacity: 1;
        transform: scaleY(1);
        box-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
    }
    50%, 95% {
        opacity: 0;
        transform: scaleY(0.8);
        box-shadow: 0 0 4px rgba(74, 158, 255, 0.2);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
        box-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
    }
}

/* Smooth transitions between animation states */
.canteen-animation-fade-in {
    animation: canteen-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.canteen-animation-fade-out {
    animation: canteen-fade-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes canteen-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes canteen-fade-out {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Enhanced visual polish */
.canteen-thinking-animation,
.canteen-streaming-animation {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .canteen-thinking-animation,
    .canteen-streaming-animation {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .canteen-thinking-text,
    .canteen-streaming-text {
        font-size: 0.9rem;
    }
    
    .canteen-thinking-dot {
        width: 8px;
        height: 8px;
    }
    
    .canteen-streaming-wave {
        width: 3px;
        height: 5px;
    }
    
    .canteen-home-loading {
        padding: 1.5rem 2rem;
        margin-top: 1.5rem;
    }
    
    .canteen-chat-loading {
        padding: 0.75rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .canteen-thinking-dot,
    .canteen-streaming-wave,
    .canteen-typing-cursor {
        animation-duration: 3s;
    }
    
    .canteen-thinking-animation:hover,
    .canteen-streaming-animation {
        transform: none;
    }
    
    .canteen-loading-shimmer,
    .canteen-button-shimmer,
    .canteen-streaming-glow {
        animation: none;
    }
}

/* Onboarding Page Styles - Scoped to .onboarding-container */
.onboarding-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.onboarding-container .onboarding-welcome {
    text-align: center;
    margin-bottom: 3rem;
}

.onboarding-container .onboarding-welcome h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.onboarding-container .onboarding-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin: 0;
}

/* Progress Bar */
.onboarding-container .onboarding-progress {
    margin-bottom: 3rem;
}

.onboarding-container .progress-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.onboarding-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #2196f3);
    transition: width 0.5s ease;
    border-radius: 3px;
}

.onboarding-container .progress-text {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Onboarding Steps */
.onboarding-container .onboarding-step {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.onboarding-container .onboarding-step.active {
    opacity: 1;
    border-color: #4a9eff;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.1);
}

.onboarding-container .onboarding-step.completed {
    opacity: 0.8;
    border-color: #4caf50;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a2e1a 100%);
}

.onboarding-container .step-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.onboarding-container .step-number {
    background: #4a9eff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.onboarding-container .onboarding-step.completed .step-number {
    background: #4caf50;
}

.onboarding-container .step-content h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.onboarding-container .step-required {
    color: #ff6b6b;
    font-weight: 500;
    font-size: 0.9rem;
}

.onboarding-container .step-optional {
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
}

.onboarding-container .step-description {
    color: #ccc;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.onboarding-container .step-body {
    margin-left: 3.5rem;
}

/* Onboarding Buttons */
.onboarding-container .onboarding-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.onboarding-container .onboarding-btn.primary {
    background: #4a9eff;
    color: #fff;
}

.onboarding-container .onboarding-btn.primary:hover:not(:disabled) {
    background: #3a8eef;
    transform: translateY(-1px);
}

.onboarding-container .onboarding-btn.secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #404040;
}

.onboarding-container .onboarding-btn.secondary:hover:not(:disabled) {
    background: #333;
    border-color: #555;
}

.onboarding-container .onboarding-btn.outline {
    background: transparent;
    color: #888;
    border: 1px solid #404040;
}

.onboarding-container .onboarding-btn.outline:hover {
    color: #fff;
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.onboarding-container .onboarding-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.onboarding-container .btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Step Actions */
.onboarding-container .step-actions {
    margin: 1.5rem 0;
}

.onboarding-container .action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* LinkedIn Instructions */
.onboarding-container .linkedin-instructions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.onboarding-container .instruction-list {
    order: 2;
}

.onboarding-container .instruction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #2a2a2a;
    border-radius: 8px;
}

.onboarding-container .instruction-number {
    background: #4a9eff;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.onboarding-container .instruction-text {
    color: #fff;
    font-size: 0.95rem;
}

.onboarding-container .instruction-link {
    color: #4a9eff;
    text-decoration: none;
}

.onboarding-container .instruction-link:hover {
    text-decoration: underline;
}

.onboarding-container .linkedin-visual {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.onboarding-container .linkedin-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
    transition: all 0.2s ease;
    cursor: pointer;
}

.onboarding-container .linkedin-visual a:hover .linkedin-screenshot {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border-color: #4a9eff;
}

.onboarding-container .placeholder-image {
    background: #2a2a2a;
    border: 2px dashed #404040;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    color: #888;
}

.onboarding-container .placeholder-text {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.onboarding-container .placeholder-subtitle {
    font-size: 0.85rem;
    color: #666;
}

/* File Upload */
.onboarding-container .file-upload-container {
    margin-bottom: 1rem;
}

.onboarding-container .file-input {
    display: none;
}

.onboarding-container .file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2a2a2a;
    border: 2px dashed #404040;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-container .file-upload-label:hover {
    border-color: #4a9eff;
    background: #1a1a1a;
    color: #fff;
}

.onboarding-container .upload-icon {
    font-size: 1.2rem;
}

/* Greyed out states for onboarding */
.onboarding-greyed-out {
    opacity: 0.4;
    pointer-events: none;
}

.onboarding-greyed-out.clickable {
    pointer-events: auto;
    cursor: pointer;
}

.onboarding-step.greyed-out {
    opacity: 0.5;
}

.onboarding-step.greyed-out .step-content {
    opacity: 0.6;
}

/* Data Sources Page Styles - Tightly Scoped to datasources.html only */
.datasources-page .datasources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.datasources-page .datasources-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.datasources-page .datasources-subtitle {
    color: #888;
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

.datasources-page .datasources-home-btn {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.datasources-page .datasources-home-btn:hover {
    color: #fff;
}

.datasources-page .datasources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.datasources-page .datasource-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.datasources-page .datasource-card:hover {
    border-color: #444;
}

.datasources-page .datasource-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.datasources-page .datasource-icon {
    flex-shrink: 0;
}

.datasources-page .datasource-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.datasources-page .datasource-info {
    flex: 1;
}

.datasources-page .datasource-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.datasources-page .datasource-description {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.datasources-page .datasource-status {
    flex-shrink: 0;
}

.datasources-page .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.datasources-page .status-badge.status-success {
    background: #1a4d1a;
    color: #4ade80;
    border: 1px solid #166534;
}

.datasources-page .status-badge.status-error {
    background: #4d1a1a;
    color: #f87171;
    border: 1px solid #991b1b;
}

.datasources-page .status-badge.status-pending {
    background: #1a1a4d;
    color: #60a5fa;
    border: 1px solid #1e3a8a;
}

.datasources-page .datasource-details {
    margin-top: 1rem;
}

.datasources-page .datasource-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #111;
    border-radius: 6px;
    border: 1px solid #333;
}

.datasources-page .stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.datasources-page .stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.datasources-page .stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.datasources-page .datasource-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.datasources-page .datasource-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.datasources-page .datasource-btn.primary {
    background: #232323;
    color: #fff;
    border: 1px solid #444;
}

.datasources-page .datasource-btn.primary:hover:not(:disabled) {
    background: #2a2a2a;
    border-color: #555;
}

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

.datasources-page .datasource-btn-loading {
    position: relative;
    color: transparent !important;
}

.datasources-page .datasource-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: datasource-spin 1s linear infinite;
}

@keyframes datasource-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.datasources-page .datasource-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #111;
    border-radius: 6px;
    border: 1px solid #333;
}

.datasources-page .progress-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top: 2px solid #60a5fa;
    border-radius: 50%;
    animation: datasource-spin 1s linear infinite;
}

.datasources-page .progress-text {
    font-size: 0.9rem;
    color: #888;
}

.datasources-page .linkedin-upload-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.datasources-page .upload-help {
    margin-top: 0.5rem;
}

.datasources-page .upload-instructions {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: #111;
    border-radius: 6px;
    border: 1px solid #333;
}

.datasources-page .help-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.datasources-page .help-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.datasources-page .linkedin-instructions {
    margin-top: 1rem;
}

.datasources-page .linkedin-screenshot {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.datasources-page .linkedin-screenshot:hover {
    border-color: #555;
}

/* Toast notifications for datasources page */
.datasources-page #toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.datasources-page .toast {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: datasource-toast-in 0.3s ease-out;
}

.datasources-page .toast-success {
    border-color: #166534;
    background: #1a4d1a;
}

.datasources-page .toast-error {
    border-color: #991b1b;
    background: #4d1a1a;
}

.datasources-page .toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.datasources-page .toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.datasources-page .toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.datasources-page .toast-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

.datasources-page .toast-close:hover {
    color: #fff;
}

@keyframes datasource-toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design for datasources */
@media (max-width: 768px) {
    .datasources-page .datasources-grid {
        grid-template-columns: 1fr;
    }
    
    .datasources-page .datasources-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .datasources-page .datasource-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Admin Dashboard Styles - Tightly Scoped to admin.html only */
.admin-page .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.admin-page .admin-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.admin-page .admin-subtitle {
    color: #888;
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

.admin-page .admin-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-page .time-range-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.admin-page .time-range-selector label {
    color: #888;
    font-weight: 500;
}

.admin-page .admin-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #232323;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-page .admin-btn:hover:not(:disabled) {
    background: #2a2a2a;
    border-color: #555;
}

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

.admin-page .admin-btn-loading {
    position: relative;
    color: transparent !important;
}

.admin-page .admin-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: admin-spin 1s linear infinite;
}

.admin-page .admin-home-btn {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.admin-page .admin-home-btn:hover {
    color: #fff;
}

.admin-page .admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-page .stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s;
}

.admin-page .stat-card:hover {
    border-color: #444;
}

.admin-page .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.admin-page .stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-page .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.admin-page .stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-page .admin-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.admin-page .activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    background: #111;
}

.admin-page .activity-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.admin-page .activity-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-page .filter-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-page .filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #888;
    transition: color 0.2s;
}

.admin-page .filter-toggle:hover {
    color: #fff;
}

.admin-page .filter-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #60a5fa;
    cursor: pointer;
}

.admin-page .filter-label {
    cursor: pointer;
    user-select: none;
}

.admin-page .admin-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #232323;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.admin-page .admin-select:focus {
    outline: none;
    border-color: #555;
}

.admin-page .activity-feed {
    max-height: 600px;
    overflow-y: auto;
}

.admin-page .activity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: #888;
}

.admin-page .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #60a5fa;
    border-radius: 50%;
    animation: admin-spin 1s linear infinite;
}

.admin-page .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.admin-page .activity-item:hover {
    background: #111;
}

.admin-page .activity-item:last-child {
    border-bottom: none;
}

.admin-page .activity-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.admin-page .activity-content {
    flex: 1;
    min-width: 0;
}

.admin-page .activity-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0;
    border-bottom: none;
    background: transparent;
}

.admin-page .activity-user {
    font-weight: 600;
    color: #fff;
}

.admin-page .activity-status {
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-page .activity-status.status-success {
    background: #1a4d1a;
    color: #4ade80;
}

.admin-page .activity-status.status-error {
    background: #4d1a1a;
    color: #f87171;
}

.admin-page .activity-status.status-pending {
    background: #1a1a4d;
    color: #60a5fa;
}

.admin-page .activity-status.status-unknown {
    background: #333;
    color: #888;
}

.admin-page .activity-time {
    color: #666;
    font-size: 0.8rem;
    margin-left: auto;
}

.admin-page .activity-description {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.admin-page .activity-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.admin-page .metadata-item {
    font-size: 0.8rem;
    color: #888;
    background: #111;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #333;
}

.admin-page .metadata-link {
    color: #60a5fa;
    text-decoration: none;
}

.admin-page .metadata-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.admin-page .activity-account {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.admin-page .account-link {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-page .account-link:hover {
    color: #fff;
    border-color: #555;
    background: #111;
}

.admin-page .admin-empty {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.admin-page .admin-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.admin-page .admin-empty h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.admin-page .admin-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.admin-page .admin-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: admin-toast-in 0.3s ease-out;
}

.admin-page .admin-toast-error {
    border-color: #991b1b;
    background: #4d1a1a;
}

@keyframes admin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes admin-toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design for admin page */
@media (max-width: 768px) {
    .admin-page .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-page .admin-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-page .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-page .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-page .activity-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .admin-page .activity-metadata {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Extension Features */
.onboarding-container .extension-info {
    margin: 1.5rem 0;
}

.onboarding-container .extension-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onboarding-container .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #2a2a2a;
    border-radius: 8px;
}

.onboarding-container .feature-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.onboarding-container .feature-text {
    color: #fff;
    font-size: 0.95rem;
}

/* Progress Indicators */
.onboarding-container .progress-indicator,
.onboarding-container .success-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    margin: 1rem 0;
}

.onboarding-container .progress-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #333;
    border-top: 3px solid #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.onboarding-container .success-icon {
    width: 32px;
    height: 32px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.onboarding-container .progress-details,
.onboarding-container .success-details {
    flex: 1;
}

.onboarding-container .progress-title,
.onboarding-container .success-title {
    color: #fff;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.onboarding-container .progress-count,
.onboarding-container .success-count {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Completion Step */
.onboarding-container .completion-celebration {
    text-align: center;
    padding: 2rem 0;
}

.onboarding-container .celebration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.onboarding-container .completion-celebration h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.onboarding-container .completion-message {
    color: #ccc;
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.onboarding-container .completion-summary {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onboarding-container .summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.onboarding-container .summary-icon {
    color: #4caf50;
    font-weight: 600;
    font-size: 1.1rem;
    width: 20px;
}

.onboarding-container .summary-text {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

.onboarding-container .summary-detail {
    color: #888;
    font-size: 0.9rem;
}

.onboarding-container .completion-actions {
    margin-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .onboarding-container {
        padding: 1rem;
    }
    
    .onboarding-container .onboarding-step {
        padding: 1.5rem;
    }
    
    .onboarding-container .step-header {
        gap: 1rem;
    }
    
    .onboarding-container .step-body {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .onboarding-container .linkedin-instructions {
        gap: 1rem;
    }
    
    .onboarding-container .action-buttons {
        flex-direction: column;
    }
    
    .onboarding-container .extension-features {
        gap: 0.75rem;
    }
}

/* Onboarding Reminders on Index Page */
.onboarding-reminders {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 1px solid #ffd54f;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.reminders-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 12px;
    font-size: 16px;
}

.reminder-icon {
    font-size: 18px;
}

.reminder-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.reminder-text {
    color: #bf360c;
    font-size: 14px;
}

.reminder-action {
    background: #ff9800;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reminder-action:hover {
    background: #f57c00;
}

/* Share Feature Styles - Scoped to Campaign and Chat Pages */
#campaign-container .campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#chat-and-search-container .chat-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

#campaign-container .campaign-actions,
#chat-and-search-container .chat-actions {
    display: flex;
    gap: 0.5rem;
}

#campaign-container .share-btn,
#chat-and-search-container .share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

#campaign-container .share-btn:hover,
#chat-and-search-container .share-btn:hover {
    background: #0056b3;
}

#campaign-container .share-btn:disabled,
#chat-and-search-container .share-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Share Modal Styles - Only for pages with share functionality */
body:has(#share-modal) #share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#share-modal .modal-content {
    background: white;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#share-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

#share-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

#share-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#share-modal .modal-close:hover {
    color: #333;
}

#share-modal .modal-body {
    padding: 1rem;
}

#share-modal .modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

#share-modal .modal-body input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

#share-modal .modal-body input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

#share-modal .share-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

#share-modal .share-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

#share-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

#share-modal .btn-secondary,
#share-modal .btn-primary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

#share-modal .btn-secondary {
    background: #6c757d;
    color: white;
}

#share-modal .btn-secondary:hover {
    background: #5a6268;
}

#share-modal .btn-primary {
    background: #007bff;
    color: white;
}

#share-modal .btn-primary:hover {
    background: #0056b3;
}

#share-modal .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Toast notification styles - scoped to pages with sharing */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    border-radius: 4px;
    padding: 12px 16px;
    max-width: 300px;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

/* Responsive adjustments for share feature */
@media (max-width: 768px) {
    #campaign-container .campaign-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    #chat-and-search-container .chat-header {
        padding: 0 0.5rem;
    }
    
    #share-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* GitHub Page Styles - Tightly Scoped */
.github-page {
    background: #0d0d0d;
    color: #fff;
}

.github-header {
    text-align: center;
    margin-bottom: 2rem;
}

.github-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.github-subtitle {
    font-size: 1.1rem;
    color: #888;
    margin: 0;
}

.github-controls {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.github-input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.github-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.github-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.github-input::placeholder {
    color: #666;
}

.github-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.github-btn-primary {
    background: #007bff;
    color: white;
}

.github-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.github-btn-secondary {
    background: #6c757d;
    color: white;
}

.github-btn-secondary:hover {
    background: #5a6268;
}

.github-examples {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.examples-label {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.example-chip {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.example-chip:hover {
    background: #333;
    border-color: #555;
    color: #fff;
    transform: translateY(-1px);
}

.github-loading-container,
.github-error-container,
.github-empty-container {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.github-loading-container .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.github-error-container .error-icon,
.github-empty-container .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.github-error-container h3,
.github-empty-container h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.github-error-container p,
.github-empty-container p {
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.github-results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.results-header p {
    color: #888;
    margin: 0;
}


/* Removed github-contributor-row hover - let inference-table handle it */

.github-table .checkbox-cell {
    padding: 1rem;
    text-align: center;
    width: 50px;
}

.github-table .checkbox-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.contributor-info {
    padding: 1rem;
    min-width: 250px;
}

.contributor-primary {
    margin-bottom: 0.5rem;
}

.contributor-name {
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.contributor-name:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contributor-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.contributor-bio {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    margin-top: 0.5rem;
    font-style: italic;
}

.contact-info {
    padding: 1rem;
    min-width: 200px;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.email-link::before {
    content: "✉️ ";
}

.website-link::before {
    content: "🌐 ";
}

.twitter-link::before {
    content: "🐦 ";
}

.no-contact {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.languages-info {
    padding: 1rem;
    min-width: 150px;
}

.languages {
    color: #ccc;
    font-size: 0.9rem;
}

.activity-info {
    padding: 1rem;
    min-width: 100px;
    text-align: center;
}

.activity-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.score-label {
    font-size: 0.8rem;
    color: #888;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
}

/* Responsive adjustments for GitHub page */
@media (max-width: 768px) {
    .github-input-container {
        flex-direction: column;
    }
    
    .github-input {
        width: 100%;
    }
    
    .github-btn {
        width: 100%;
    }
    
    .example-chips {
        flex-direction: column;
        align-items: center;
    }
    
    .example-chip {
        width: fit-content;
    }
    
    .contributor-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .github-table {
        font-size: 0.9rem;
    }
    
    .contributor-info,
    .contact-info,
    .languages-info,
    .activity-info {
        padding: 0.75rem;
    }
}
