/* 3AI System Styles */

.tai-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tai-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tai-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.tai-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tai-logout {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background 0.3s;
}

.tai-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.tai-main-content {
    display: flex;
    min-height: 600px;
}

.tai-sidebar {
    width: 200px;
    background: #2a2a2a;
    padding: 20px 0;
}

.tai-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tai-nav-item {
    display: block;
    padding: 15px 20px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.tai-nav-item:hover,
.tai-nav-item.active {
    background: #3a3a3a;
    color: #ffffff;
    border-left-color: #667eea;
    text-decoration: none;
}

.tai-content {
    flex: 1;
    padding: 30px;
}

.tai-section {
    display: none;
}

.tai-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tai-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tai-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #444444;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.tai-card h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 18px;
}

.tai-card p {
    color: #cccccc;
    line-height: 1.6;
}

.tai-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.tai-btn:hover {
    background: #5a6fd8;
    color: white;
    text-decoration: none;
}

.tai-btn-primary {
    background: #764ba2;
}

.tai-btn-primary:hover {
    background: #6a4190;
}

.tai-status {
    margin-top: 30px;
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
}

.tai-status-grid {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.tai-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #444444;
}

.tai-status-item:last-child {
    border-bottom: none;
}

.tai-status-label {
    color: #cccccc;
    font-weight: 500;
}

.tai-status-value {
    font-weight: 600;
}

.tai-status-ok {
    color: #4ecdc4;
}

/* Reasoning Engine Styles */
.tai-character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tai-character {
    text-align: center;
    padding: 20px;
    background: #3a3a3a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tai-character:hover {
    background: #4a4a4a;
    border-color: #667eea;
}

.tai-character-avatar {
    font-size: 24px;
    margin-bottom: 10px;
}

.tai-character-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.tai-character-role {
    font-size: 12px;
    color: #cccccc;
}

.tai-task-input {
    margin: 30px 0;
}

.tai-task-input textarea {
    width: 100%;
    height: 120px;
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.tai-task-input textarea:focus {
    outline: none;
    border-color: #667eea;
}

.tai-results {
    margin-top: 30px;
}

#tai-character-responses {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
}

.tai-character-response {
    margin-bottom: 20px;
    padding: 15px;
    background: #3a3a3a;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tai-character-response h4 {
    margin: 0 0 10px 0;
    color: #667eea;
}

.tai-character-response p {
    margin: 0;
    line-height: 1.6;
}

/* Chat Styles */
.tai-chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.tai-chat-messages {
    flex: 1;
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.tai-chat-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.5;
}

.tai-system-message {
    background: #444444;
    color: #cccccc;
    font-style: italic;
}

.tai-user-message {
    background: #667eea;
    color: white;
    margin-left: 20%;
}

.tai-ai-message {
    background: #764ba2;
    color: white;
    margin-right: 20%;
}

.tai-chat-input {
    display: flex;
    gap: 10px;
}

.tai-chat-input textarea {
    flex: 1;
    height: 50px;
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
    resize: none;
}

.tai-chat-input textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Desktop Styles */
.tai-desktop-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tai-app-icon {
    text-align: center;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tai-app-icon:hover {
    background: #3a3a3a;
    border-color: #667eea;
    transform: translateY(-5px);
}

.tai-app-icon-img {
    font-size: 32px;
    margin-bottom: 10px;
}

.tai-app-name {
    font-size: 14px;
    color: #cccccc;
}

/* Settings Styles */
.tai-form-group {
    margin-bottom: 20px;
}

.tai-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-weight: 500;
}

.tai-form-group select,
.tai-form-group input {
    width: 100%;
    padding: 12px;
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
    border-radius: 6px;
    font-family: inherit;
}

.tai-form-group select:focus,
.tai-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tai-main-content {
        flex-direction: column;
    }
    
    .tai-sidebar {
        width: 100%;
    }
    
    .tai-nav ul {
        display: flex;
        overflow-x: auto;
    }
    
    .tai-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .tai-nav-item:hover,
    .tai-nav-item.active {
        border-left: none;
        border-bottom-color: #667eea;
    }
    
    .tai-cards {
        grid-template-columns: 1fr;
    }
    
    .tai-character-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Goal Management System Styles */
.tai-goal-system {
    margin: 20px 0;
}

.tai-goals-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tai-goal-group {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #444444;
}

.tai-goal-group h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 16px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.tai-goal-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tai-goal-input {
    flex: 1;
    padding: 10px 12px;
    background: #3a3a3a;
    border: 1px solid #555555;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
}

.tai-goal-input:focus {
    outline: none;
    border-color: #667eea;
}

.tai-btn-small {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s;
    white-space: nowrap;
}

.tai-btn-small:hover {
    background: #5a6fd8;
}

.tai-goals-display {
    margin-top: 15px;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tai-goal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid #667eea;
    border-radius: 20px;
    font-size: 12px;
    color: #ffffff;
    max-width: 100%;
}

.tai-goal-chip.user-goal {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.tai-goal-chip.ai-goal {
    background: rgba(118, 75, 162, 0.3);
    border-color: #764ba2;
}

.tai-goal-chip span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tai-goal-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.tai-goal-remove:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Control Panel */
.tai-control-panel {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #444444;
}

.tai-mode-controls {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444444;
}

.tai-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.tai-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tai-checkbox-label span {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.tai-checkbox-label small {
    color: #999999;
    font-size: 11px;
    font-style: italic;
}

.tai-action-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444444;
}

.tai-btn-danger {
    background: #e74c3c;
}

.tai-btn-danger:hover {
    background: #c0392b;
}

.tai-btn-danger:disabled {
    background: #555555;
    cursor: not-allowed;
    opacity: 0.5;
}

.tai-status-display {
    display: flex;
    gap: 30px;
    font-size: 13px;
}

.tai-status-display span {
    color: #cccccc;
}

.tai-status-display span strong {
    color: #ffffff;
}

#reasoning-status {
    color: #4ecdc4;
    font-weight: 600;
}

#reasoning-status.active {
    color: #27ae60;
}

#reasoning-status.stopped {
    color: #e74c3c;
}

/* Conversation Display */
.tai-conversation {
    margin: 30px 0;
}

.tai-conversation h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.tai-conversation-log {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #444444;
}

.tai-system-msg {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #999999;
    font-size: 12px;
    font-style: italic;
}

.tai-user-msg {
    background: rgba(102, 126, 234, 0.2);
    border-left: 3px solid #667eea;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #ffffff;
}

.tai-character-msg {
    background: rgba(118, 75, 162, 0.2);
    border-left: 3px solid #764ba2;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #ffffff;
}

.tai-character-msg .character-name {
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 5px;
    display: block;
}

/* Tools Panel */
.tai-tools-panel {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #444444;
    margin-top: 20px;
}

.tai-tools-panel h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 14px;
}

.tai-tools-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tai-tool-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    border-radius: 15px;
    font-size: 11px;
    color: #4ecdc4;
    font-family: monospace;
}

/* Responsive updates */
@media (max-width: 768px) {
    .tai-goals-section {
        grid-template-columns: 1fr;
    }

    .tai-mode-controls {
        flex-direction: column;
        gap: 15px;
    }

    .tai-action-controls {
        flex-direction: column;
    }

    .tai-status-display {
        flex-direction: column;
        gap: 10px;
    }
}

/* Character Settings Modal */
.tai-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tai-modal-content {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    margin: 5% auto;
    padding: 0;
    border: 2px solid #3498db;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tai-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tai-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 600;
}

.tai-modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.tai-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tai-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.tai-form-group {
    margin-bottom: 20px;
}

.tai-form-group label {
    display: block;
    color: #ECF0F1;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.tai-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.tai-input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.tai-input[type="range"] {
    padding: 0;
    height: 6px;
}

.tai-input textarea {
    resize: vertical;
    min-height: 120px;
}

.tai-help-text {
    font-size: 12px;
    color: #BDC3C7;
    margin-top: 5px;
    font-style: italic;
}

#tai-temp-value {
    display: inline-block;
    margin-left: 10px;
    color: #3498db;
    font-weight: bold;
    font-size: 16px;
}

.tai-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tai-btn-secondary {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.tai-btn-secondary:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #c0392b;
    color: #c0392b;
}

/* Session preview modal styles */
.tai-session-modal-content {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    color: #ECF0F1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
    line-height: 1.4;
}

/* Make characters clickable */
.tai-character {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tai-character:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.tai-character:active {
    transform: translateY(-2px) scale(1.02);
}

/* Session list panel styles */
.tai-session-panel {
    background-color: #1e1e1e;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
}

.tai-session-panel h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
}

.tai-session-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 4px;
}

.tai-session-list li {
    padding: 6px 8px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    font-size: 13px;
    color: #ddd;
}

.tai-session-list li:hover {
    background-color: #2a2a2a;
}

.tai-session-list li.active {
    background-color: #3a3a3a;
}

/* Session modal content */
.tai-session-modal-content {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    white-space: pre-line;
    color: #ecf0f1;
}

/*
 * Additional styles for enhanced functionality (scroll controls and projects panel)
 */

/* Scroll controls for reasoning conversation */
.tai-scroll-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0 8px;
}

.tai-scroll-controls label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #cccccc;
    font-size: 13px;
    cursor: pointer;
}

.tai-scroll-controls .tai-scroll-button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.tai-scroll-controls .tai-scroll-button:hover {
    background: rgba(102, 126, 234, 0.15);
}

/* Projects & Files Panel */
.tai-projects-panel {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #444444;
    margin-top: 20px;
}

.tai-projects-panel h4 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 14px;
}

.tai-projects-list,
.tai-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tai-projects-list li {
    margin-bottom: 6px;
    cursor: pointer;
    color: #a0b5f8;
}

.tai-projects-list li .project-name {
    font-weight: 600;
    color: #7e8df1;
}

.tai-file-list li {
    margin-bottom: 4px;
    color: #cccccc;
    cursor: pointer;
    padding-left: 12px;
}

.tai-file-list li:hover {
    text-decoration: underline;
}

/* Empty and error states in lists */
.tai-empty {
    color: #888888;
    font-style: italic;
}

.tai-error {
    color: #e57373;
}

/*
 * Hide the available tools panel from the user interface.  The AI can still use the tools programmatically via
 * backend calls.  This prevents end users from seeing and invoking internal tools while leaving functionality
 * intact for the reasoning engine.
 */
.tai-tools-panel {
    display: none !important;
}

/* ========================================
   HELP SYSTEM STYLES
   ======================================== */

/* Help search input */
.tai-help-search {
    margin-bottom: 20px;
}

/* Quick links grid */
.tai-help-quick-links {
    margin-bottom: 30px;
}

/* Help content display area */
.tai-help-content {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 25px;
    line-height: 1.6;
    color: #e0e0e0;
}

.tai-help-content h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.tai-help-content h4 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.tai-help-content h5 {
    color: #999;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.tai-help-content p {
    margin-bottom: 15px;
    color: #ccc;
}

.tai-help-content ul,
.tai-help-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.tai-help-content li {
    margin-bottom: 8px;
    color: #ccc;
}

.tai-help-content code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.tai-help-content pre {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    border-left: 3px solid #4CAF50;
    margin: 15px 0;
}

.tai-help-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.tai-help-content strong {
    color: #fff;
    font-weight: 600;
}

.tai-help-content a {
    color: #4CAF50;
    text-decoration: none;
    border-bottom: 1px dotted #4CAF50;
}

.tai-help-content a:hover {
    color: #66BB6A;
    border-bottom-style: solid;
}

/* Help character blocks */
.tai-help-character {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.tai-help-character h4 {
    margin-top: 0;
    color: #667eea;
}

/* Help prompt blocks */
.tai-help-prompt {
    margin: 20px 0;
}

.tai-help-prompt h4 {
    color: #764ba2;
}

/* Help issue blocks (troubleshooting) */
.tai-help-issue {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.tai-help-issue h4 {
    margin-top: 0;
    color: #e74c3c;
}

/* Help tables */
.tai-help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.tai-help-table th {
    background: #333;
    color: #4CAF50;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
}

.tai-help-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #444;
    color: #ccc;
}

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

.tai-help-table tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

.tai-help-table code {
    background: #1a1a1a;
    padding: 3px 6px;
    border-radius: 3px;
    color: #4ecdc4;
    font-size: 12px;
}

/* Search results */
.tai-search-results {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tai-search-results h4 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 15px;
}

.tai-search-result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tai-search-result-item:hover {
    background: #222 !important;
    border-left-color: #66BB6A !important;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* Sanctuary container */
.tai-sanctuary-container {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 25px;
}

.tai-sanctuary-container h3 {
    color: #4CAF50;
    margin-top: 25px;
    margin-bottom: 15px;
}

.tai-sanctuary-container p {
    color: #ccc;
    margin-bottom: 20px;
}

/* Responsive help styles */
@media (max-width: 768px) {
    .tai-help-quick-links {
        grid-template-columns: 1fr;
    }

    .tai-help-content {
        padding: 15px;
    }

    .tai-help-table {
        font-size: 12px;
    }

    .tai-help-table th,
    .tai-help-table td {
        padding: 8px;
    }
}