/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

.logo i {
    font-size: 2rem;
}

.header-status {
    display: flex;
    gap: 2rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-item .label {
    font-size: 0.8rem;
    color: #6b7280;
}

.status-item .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4f46e5;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.user-profile i {
    font-size: 1.5rem;
}

/* Main Container */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* Sidebar - Minimized by default, expands on hover */
.sidebar {
    width: 70px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    transition: width 0.3s ease !important;
    overflow: hidden !important;
    position: relative;
}

.sidebar:hover {
    width: 250px !important;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
    width: 250px; /* Keep full width for content */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    min-width: 210px; /* Ensure consistent width */
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.nav-item i {
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.nav-item span {
    opacity: 0 !important;
    transition: opacity 0.3s ease 0.1s !important; /* Slight delay for smoother effect */
}

.sidebar:hover .nav-item span {
    opacity: 1 !important;
}

/* Add a subtle expansion hint */
.sidebar::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    width: 4px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 4px 4px 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar:not(:hover)::after {
    opacity: 1;
}

/* Improve the hover experience */
.sidebar:hover::after {
    opacity: 0;
}

/* Main Content - Expanded to use more space */
.main-content {
    flex: 1;
    padding: 2rem 3rem !important; /* More horizontal padding to take advantage of extra space */
    overflow-y: auto;
    transition: padding 0.3s ease !important; /* Smooth padding transition */
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card h2 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Quick Actions */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.btn-secondary:hover {
    background: rgba(79, 70, 229, 0.2);
}

/* Agent Network */
.agent-status {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.status-indicator {
    text-align: center;
}

.agent-count {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
}

.agent-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.agent-tile {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.agent-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.agent-tile.active {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    animation: pulse 2s infinite;
}

.agent-tile.processing {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    animation: spin 1s linear infinite;
}

.agent-tile.complete {
    border-color: #10b981;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.agent-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.agent-name {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.agent-status {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Performance Overview */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4f46e5;
}

.metric-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.25rem 0;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

/* AI Assistant Chat */
.ai-assistant-chat {
    grid-column: span 2;
    min-height: 500px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 650px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 0.5rem;
    background: rgba(79, 70, 229, 0.02);
    margin-bottom: 1rem;
    max-height: 400px;
    min-height: 300px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0;
    animation: fadeInMessage 0.3s ease;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.chat-message.user-message .message-content {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-radius: 1rem 0.25rem 1rem 1rem;
}

.chat-message.agent-message .message-content {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border-radius: 0.25rem 1rem 1rem 1rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.user-message .message-avatar {
    background: #374151;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 70%;
    word-wrap: break-word;
    line-height: 1.4;
}

.chat-input-area {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.chat-input-container {
    flex-shrink: 0;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.chat-input-area input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.chat-input-area button {
    padding: 0.75rem;
    border-radius: 0.75rem;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

/* Dashboard sample questions now use campaign-styles.css classes */

/* Thought Process Modal */
.thought-process-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.thought-process-modal {
    background: white;
    border-radius: 1rem;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.modal-thought-process {
    /* Reuse existing thought process styles */
}

.modal-thought-process .thought-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid #6366f1;
}

.modal-thought-process .step-number {
    background: #6366f1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.modal-thought-process .step-text {
    color: #374151;
    line-height: 1.5;
    font-size: 0.95rem;
}

.modal-thought-process .thought-conclusion {
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.modal-thought-process .thought-conclusion strong {
    color: #000000;
}

.modal-thought-process .thought-conclusion {
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    color: #000000;
}

/* Thought Process Button Styling */
.thought-process-btn {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.thought-process-btn.visible {
    display: inline-flex; /* Shown when agent completes */
}

.thought-process-btn:hover {
    background: #5b5bd6;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-routing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fbbf24;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin: 0.5rem 1rem;
    animation: pulse 1.5s infinite;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-content .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Step 1 Layout */
.step-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
    min-height: 700px;
    position: relative;
}

.chat-column {
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
    height: 100%;
}

.agents-column {
    display: flex;
    flex-direction: column;
    background: rgba(79, 70, 229, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(79, 70, 229, 0.1);
    position: relative;
    height: 100%;
}

.agents-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.5rem;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.3), rgba(79, 70, 229, 0.1));
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

.chat-section-header {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 70, 229, 0.02));
    border-radius: 1rem;
    border: 2px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.1);
    backdrop-filter: blur(10px);
}

.agents-section-header {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.chat-section-header h3 {
    color: #374151;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agents-section-header h3 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-section-header p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.agents-section-header p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

/* Enhanced conversation UI */
.conversation-ui {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border: 2px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.conversation-ui .chat-messages {
    background: rgba(79, 70, 229, 0.02);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 8px rgba(79, 70, 229, 0.05);
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.conversation-ui .chat-input-container input {
    flex: 1;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
    transition: all 0.3s ease;
}

.conversation-ui .chat-input-container input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 4px 12px rgba(79, 70, 229, 0.12);
    transform: translateY(-1px);
}

.conversation-ui .chat-input-container button {
    padding: 1.25rem;
    border-radius: 0.75rem;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Ensure chat input is at bottom - more specific selector */
#chat-input {
    flex: 1 !important;
    border: 2px solid rgba(79, 70, 229, 0.2) !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem 1.5rem !important;
    font-size: 1.1rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08) !important;
    transition: all 0.3s ease !important;
}

#send-message {
    padding: 1.25rem !important;
    border-radius: 0.75rem !important;
    min-width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.chat-input-container {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

/* Sample Prompts Styling */
.sample-prompts {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.02), rgba(79, 70, 229, 0.05));
    border-radius: 0.75rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
    flex-shrink: 0;
}

.sample-prompts h4 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-examples {
    display: grid;
    gap: 0.75rem;
}

.prompt-example {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-example:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.prompt-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.prompt-label {
    font-size: 0.8rem;
    color: #4f46e5;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agents-status-bar {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.ready {
    background: #10b981;
}

.status-dot.working {
    background: #fbbf24;
}

.status-dot.complete {
    background: #4f46e5;
}

/* Specialist Agent Cards */
.specialist-agents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    flex: 1;
}

.specialist-agent-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    border: 2px solid rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.specialist-agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
    border-color: #4f46e5;
}

.specialist-agent-card.working {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb, rgba(255, 255, 255, 0.95));
    animation: pulse 2s infinite;
}

.specialist-agent-card.complete {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, rgba(255, 255, 255, 0.95));
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.agent-icon-large {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.agent-title {
    flex: 1;
}

.agent-title h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.agent-title p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.agent-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.agent-card-content {
    padding: 1rem;
}

.agent-task {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* Agent Thought Process */
.thought-process-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.thought-process-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.agent-thought-process {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 0.75rem;
    border-left: 4px solid #4f46e5;
}

.thought-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thought-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-number {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
}

.thought-conclusion {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    transition: all 0.5s ease;
}

.thought-conclusion strong {
    font-weight: 700;
}

/* Agent consultation states */
.consulting-agent.active .agent-status-icon::after {
    content: '⚡';
    color: #fbbf24;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

.consulting-agent.complete .agent-status-icon::after {
    content: '✅';
    color: #10b981;
    font-size: 1.2rem;
}

/* Campaign List */
.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.campaign-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.campaign-item:hover {
    background: rgba(79, 70, 229, 0.1);
}

.campaign-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.campaign-name {
    font-weight: 500;
    color: #374151;
}

.campaign-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    width: fit-content;
}

.campaign-status.active {
    background: #dcfce7;
    color: #166534;
}

.campaign-status.complete {
    background: #e0e7ff;
    color: #3730a3;
}

.campaign-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.campaign-metrics span {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Campaign Builder */
.campaign-wizard {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.step.active .step-number {
    background: #4f46e5;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.step.active .step-label {
    color: #4f46e5;
}

.step-content {
    min-height: 500px;
}

/* Agent Activity Panel */
.agent-activity-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 200;
}

.agent-activity-panel.open {
    right: 0;
}

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

.panel-header h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.close-panel:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .step-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chat-column {
        order: 1;
    }

    .agents-column {
        order: 2;
        background: rgba(79, 70, 229, 0.02);
        border: 1px solid rgba(79, 70, 229, 0.08);
    }

    .agents-column::before {
        display: none;
    }

    .specialist-agents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .conversation-ui {
        padding: 1.5rem;
    }

    .conversation-ui .chat-messages {
        min-height: 300px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .step-progress {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .agent-activity-panel {
        width: 100%;
        right: -100%;
    }

    .step-layout {
        gap: 1rem;
    }

    .chat-section-header,
    .agents-section-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .specialist-agents-grid {
        grid-template-columns: 1fr;
    }

    .agent-card-header {
        padding: 0.75rem;
    }

    .agent-icon-large {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .agent-title h4 {
        font-size: 0.9rem;
    }

    .agent-title p {
        font-size: 0.8rem;
    }
}