/* Unified styles for loopytool - Modern Design System */

/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Primary colors */
    --bg-primary: #ffffff;
    --bg-surface: #ffffff;
    --bg-bot: #e9e9eb;
    --bg-header: #f9fafb;
    --bg-enrichment-header: #d3effc;
    --bg-cell-enriched: #f0f9ff;
    --bg-upsell: #f5f1e5;
    
    /* Border and text colors */
    --border: #d0d0d0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --text-enrichment-header: #0369a1;
    --text-processing: #92400e;
    
    /* Layout dimensions */
    --max-width: 1480px;
    --profile-width: 51px;
    --content-width: 700px;
    
    /* Accent colors */
    --blue-light: #f0f9ff;
    --blue-dark: #0369a1;
    --green: #059669;
    --red: #dc2626;
    
    /* Design tokens */
    --border-radius: 12px;
    --border-radius-large: 32px;
    --spacing-unit: 8px;
    
    /* Common transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

a:hover {
    color: #1d4ed8;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

/* ========================================
   Layout Containers
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 80px;
}

.section-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.section-spacer {
    width: var(--profile-width);
    flex-shrink: 0;
}

.section-content {
    flex: 1;
}

/* ========================================
   Header & Footer (Shared across all pages)
   ======================================== */
.header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 0 6px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    height: 42px;
    width: auto;
}

.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ========================================
   Main App Styles (index.html)
   ======================================== */
.main-container {
    margin: 32px auto;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

/* Message Components */
.message-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.message-wrapper.fade-out {
    opacity: 0;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--profile-width);
    flex-shrink: 0;
}

.profile-pic {
    width: var(--profile-width);
    height: var(--profile-width);
    border-radius: 50%;
    margin-bottom: 8px;
}

.profile-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-content-container {
    flex: 1;
    max-width: var(--content-width);
}

.message-content {
    background: var(--bg-bot);
    border-radius: var(--border-radius-large);
    padding: 20px 32px;
    font-size: 15px;
    line-height: 1.5;
}

.user-message .message-content {
    background: var(--bg-surface);
    padding: 0;
    border: 1px solid var(--text-secondary);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.06);
    overflow: visible;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Drag and drop hover state */
.user-message .message-content.drag-over {
    position: relative;
    background: #f3f4f6;
    border-color: var(--text-primary);
}

.user-message .message-content.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.user-message .message-content.drag-over::after {
    content: 'Drop file here to attach';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
}

#welcomeMessage .message-content {
    max-width: 490px;
}

/* Progress message adaptive width */
.progress-message .message-content-container {
    width: fit-content;
    min-width: var(--content-width);
    max-width: calc(100% - var(--profile-width) - 16px);
}

@media (min-width: 1200px) {
    .progress-message .message-content-container {
        max-width: min(1200px, calc(100% - var(--profile-width) - 16px));
    }
}

@media (min-width: 1400px) {
    .progress-message .message-content-container {
        max-width: min(1400px, calc(100% - var(--profile-width) - 16px));
    }
}

/* ========================================
   Forms & Inputs
   ======================================== */
.message-textarea {
    width: 100%;
    height: 300px;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    background: transparent;
    padding: 20px 32px;
    color: var(--text-primary);
    margin-bottom: -2px;
}

.message-textarea::placeholder {
    color: var(--text-muted);
}

.message-textarea:disabled {
    cursor: not-allowed;
    background-color: var(--bg-header);
    border-top-right-radius:var(--border-radius-large);
    border-top-left-radius:var(--border-radius-large);
}


input[type="email"],
.email-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

input[type="email"]:focus,
.email-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

/* ========================================
   Buttons - Simplified with shared base
   ======================================== */
.buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* History buttons container */
.history-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Base button styles */
.btn {
    padding: 10px 20px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: 44px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Button variants */
.btn-secondary,
.btn-attached {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
}

.btn-attached {
    background: var(--bg-bot);
}

.btn.create-new-btn {
    max-width: 150px;
}

.btn.share-btn {
    max-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.icon-share {
    font-size: 16px;
    display: inline-block;
}

.btn-secondary:hover:not(:disabled),
.btn-attached:hover:not(:disabled) {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-surface);
    padding: 10px 32px;
}

.btn-primary:hover:not(:disabled) {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Icon-only buttons (undo/redo) */
.btn-icon-only {
    padding: 8px;
    min-width: unset;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

.btn-icon-only:hover:not(:disabled) {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-icon-only:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-icon-only svg {
    width: 16px;
    height: 16px;
}

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

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

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

.btn-success:hover:not(:disabled) {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.remove-file-btn {
    margin-left: 8px;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.button-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================================
   Examples Section
   ======================================== */
.show-examples-wrapper {
    margin-top: 8px;
    transition: opacity var(--transition-normal), max-height var(--transition-normal), margin-top var(--transition-normal);
    opacity: 1;
    max-height: 50px;
}

.show-examples-wrapper.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}

.show-examples-btn {
    margin: 0;
}

.examples-section {
    transition: opacity var(--transition-normal), max-height var(--transition-normal);
    opacity: 1;
    overflow: hidden;
    max-height: 10000px;
}

.examples-section.hiding {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

.examples-section.hidden {
    display: none;
}

.examples-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.example-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.example-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--text-primary);
    text-decoration: none;
    color: inherit !important;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 16px;
    background-color: #f3f4f5;
}

.example-icon {
    width: 48px;
    height: 48px;
}

.example-title {
    font-size: 16px;
    font-weight: 600;
}

.example-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.example-divider {
    border-top: 1px solid var(--border);
}

.example-content {
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 24px;
    height: 124px;
    overflow: hidden;
    margin-bottom: 12px;
}

.example-content ul {
    list-style: none;
    padding-left: 16px;
    margin-top: 4px;
}

.example-content li {
    position: relative;
    padding-left: 8px;
}

.example-content li:before {
    content: "•";
    position: absolute;
    left: -8px;
}

.example-ellipsis {
    color: var(--text-muted);
}

/* ========================================
   Progress & Status
   ======================================== */
.progress-message .message-content {
    padding: 20px 0 0 0;
    overflow: visible;
    min-height: 100px;
    width: fit-content;
    border: 1px solid var(--bg-bot);
}

/* Status column header styling */
th.status-header {
    background: #f3f4f6;  /* Light grey background */
    color: #6b7280;       /* Grey text */
    font-weight: 500;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle;
    padding: 12px 16px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* Status column cell styling */
td.status-cell {
    background: #f9fafb;  /* Very light grey background */
    border-right: 1px solid #e5e7eb;
    padding: 8px 12px;
    font-size: 13px;
    vertical-align: middle;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

/* Status cell states */
td.status-cell.status-complete {
    color: #059669;
}

td.status-cell.status-error {
    color: #dc2626;
}

td.status-cell.status-processing {
    color: #d97706;
}

.status-header {
    padding: 0 24px 16px;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.status-text {
    font-weight: 600;
    font-size: 16px;
}

.warning-text {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    white-space: nowrap;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #a5a5a5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    width: 0%;
    transition: width 0.5s ease;
}

/* Sheen effect for processing state */
.status-text.sheen-effect {
    position: relative;
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        rgba(51, 51, 51, 0.4) 50%,
        var(--text-primary) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sheen 6s linear infinite;
}

/* For progress-fill, which is a bar not text, use a different approach */
.progress-fill.sheen-effect {
    position: relative;
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        rgba(51, 51, 51, 0.4) 50%,
        var(--text-primary) 100%
    );
    background-size: 200% 100%;
    animation: sheen 6s linear infinite;
}

/* ========================================
   Tables
   ======================================== */
.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: fit-content;
    max-width: 100%;
    border-bottom-right-radius:var(--border-radius-large);
    border-bottom-left-radius:var(--border-radius-large);
}

table {
    width: auto;
    border-collapse: collapse;
    margin: 0;
    min-width: 500px;
    background: var(--bg-surface);
}

th,
td {
    padding: 12px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

th {
    background: var(--bg-header);
    font-weight: 600;
    color: var(--text-primary);
}

th.enrichment-header {
    background: var(--bg-enrichment-header);
    color: var(--text-enrichment-header);
}

td {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.enrichment-cell {
    background: #f8fafc;
}

.enrichment-cell.cell-waiting {
    background: linear-gradient(
        90deg,
        #fef3c7 0%,
        #ffffff 30%,
        #fef3c7 60%
    );
    background-size: 200% 100%;
    animation: enrichmentWave 3s linear infinite;
}

.cell-enriched {
    background: var(--bg-cell-enriched);
    animation: fadeIn 0.5s ease;
    min-width: 300px;
    max-width: 500px;
    word-break: break-word;
}

.cell-partial {
    background: var(--bg-cell-enriched);  /* Use same blue as final enriched cells */
    opacity: 0.95;
    transition: background-color 0.3s ease;
    min-width: 300px;
    max-width: 500px;
    word-break: break-word;
}

.enrichment-cell.error {
    color: #dc2626;
    background: #fee2e2;
    font-style: italic;
}

/* Rich cell content styles */

/* Array/list styles */
.cell-array {
    margin: 4px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.cell-array li {
    margin: 2px 0;
    line-height: 1.4;
}

/* Markdown-formatted array items */
.cell-array-markdown li.markdown-item {
    margin: 4px 0; /* Slightly more spacing for richer content */
}

.cell-array-markdown li.markdown-item p {
    margin: 0; /* Remove default paragraph margins inside list items */
    display: inline; /* Keep inline for single-line items */
}

.cell-array-markdown li.markdown-item a {
    color: var(--text-link);
    text-decoration: underline;
}

.cell-array-markdown li.markdown-item strong {
    font-weight: 600;
}

.cell-array-markdown li.markdown-item em {
    font-style: italic;
}

/* Enum chiclet styles */
.enum-chiclet {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Enum color variations */
.enum-teal { background: #14b8a6; color: white; }
.enum-purple { background: #a855f7; color: white; }
.enum-orange { background: #f97316; color: white; }
.enum-pink { background: #ec4899; color: white; }
.enum-indigo { background: #6366f1; color: white; }
.enum-green { background: #22c55e; color: white; }
.enum-yellow { background: #eab308; color: #1f2937; }
.enum-blue { background: #3b82f6; color: white; }
.enum-rose { background: #f43f5e; color: white; }
.enum-amber { background: #f59e0b; color: #1f2937; }

/* Button styles */
.cell-button {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    padding: 6px 16px;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 28px;
}

.cell-button:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cell-button:active {
    background: #1d4ed8;
}

.cell-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border);
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

.cell-button:disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

/* Link styles */
.cell-link {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px dotted #3b82f6;
}

.cell-link:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}

.cell-email {
    color: #3b82f6;
    text-decoration: none;
}

.cell-email:hover {
    text-decoration: underline;
}

/* Date/time styles */
.cell-date, .cell-time, .cell-datetime {
    white-space: nowrap;
}

/* Markdown cell styles */
.cell-markdown {
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    max-width: 100%;
    overflow-wrap: break-word;
    display: inline-block; /* Ensure markdown content doesn't break flex layout */
}

.cell-markdown p {
    margin: 0 0 8px 0;
}

.cell-markdown p:last-child {
    margin-bottom: 0;
}

.cell-markdown h1,
.cell-markdown h2,
.cell-markdown h3,
.cell-markdown h4,
.cell-markdown h5,
.cell-markdown h6 {
    margin: 12px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.cell-markdown h1 { font-size: 20px; }
.cell-markdown h2 { font-size: 18px; }
.cell-markdown h3 { font-size: 16px; }
.cell-markdown h4 { font-size: 15px; }
.cell-markdown h5 { font-size: 14px; }
.cell-markdown h6 { font-size: 13px; }

.cell-markdown ul,
.cell-markdown ol {
    margin: 8px 0;
    padding-left: 24px;
}

.cell-markdown li {
    margin: 4px 0;
}

.cell-markdown blockquote {
    margin: 8px 0;
    padding: 8px 12px;
    border-left: 3px solid #e5e7eb;
    color: #6b7280;
    background-color: #f9fafb;
}

.cell-markdown code {
    padding: 2px 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    background-color: #f3f4f6;
    border-radius: 3px;
    color: #1f2937;
}

.cell-markdown pre {
    margin: 8px 0;
    padding: 12px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow-x: auto;
}

.cell-markdown pre code {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.cell-markdown a {
    color: #3b82f6;
    text-decoration: none;
}

.cell-markdown a:hover {
    text-decoration: underline;
}

.cell-markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.cell-markdown hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.cell-markdown table {
    margin: 8px 0;
    border-collapse: collapse;
    width: 100%;
}

.cell-markdown table th,
.cell-markdown table td {
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.cell-markdown table th {
    background-color: #f9fafb;
    font-weight: 600;
}

.cell-markdown strong {
    font-weight: 600;
}

.cell-markdown em {
    font-style: italic;
}

.cell-markdown del {
    text-decoration: line-through;
}

/* Inline image styles for cells */
.cell-content-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cell-content-inner {
    flex: 1;
    min-width: 0; /* Allow text to wrap properly */
}

.cell-inline-image {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 4px;
    object-fit: contain;
    display: block;
}

.cell-image-placeholder {
    flex-shrink: 0;
    display: block;
    width: 75px;
    height: 75px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
}

.cell-image-placeholder::after {
    content: "?";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #ccc;
    text-align: center;
    font-weight: normal;
}

/* Width classes for columns */
.width-short {
    min-width: 100px;
    max-width: 250px;
}

.width-medium {
    min-width: 200px;
    max-width: 400px;
}

.width-long {
    min-width: 450px;
    max-width: 600px;
}

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

.placeholder-row td {
    text-align: center;
    padding: 12px;
    font-style: italic;
    color: var(--text-muted);
    background: var(--bg-bot);
}

/* Row processing status */
.row-status-cell {
    background: linear-gradient(
        90deg,
        #fef3c7,
        #fbbf24
    );
    text-align: left;
    font-style: italic;
    animation: pulse 2s infinite;
    padding: 12px 16px;
    border-left: 4px solid #f59e0b;
}

.processing-status {
    display: flex;
    align-items: flex-start;  /* Align to top for wrapped text */
    justify-content: flex-start;
    gap: 6px;
    white-space: normal;  /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 130px;  /* Slightly less than cell width to account for padding */
}

.status-spinner {
    width: 12px;
    height: 12px;
    min-width: 12px;  /* Prevent spinner from shrinking */
    border: 2px solid #e5e7eb;
    border-top: 2px solid #d97706;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 2px;  /* Align with first line of text */
}

/* Compact status text for processing */
.processing-status span {
    font-size: 12px;
    color: #92400e;
    white-space: normal;  /* Allow wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* ========================================
   Detailed Status Section
   ======================================== */
.detailed-status-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.toggle-detailed-btn {
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.toggle-detailed-btn:hover {
    background: #e5e7eb;
    color: var(--text-primary);
}

.toggle-detailed-btn.expanded #toggleIcon {
    transform: rotate(180deg);
}

.detailed-status {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family:
        "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
        "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
}

.status-entry {
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    opacity: 0;
    animation: slideIn var(--transition-normal) ease forwards;
}

.status-entry.plan {
    background: #dbeafe;
    color: #1e40af;
}
.status-entry.row {
    background: #e0f2fe;
    color: #0369a1;
}
.status-entry.tool {
    background: #ede9fe;
    color: #6d28d9;
}
.status-entry.success {
    background: #d1fae5;
    color: #065f46;
}
.status-entry.error {
    background: #fee2e2;
    color: #991b1b;
}
.status-entry.info {
    background: #f3f4f6;
    color: #374151;
}

/* ========================================
   Tooltips
   ======================================== */
   
/* Large tooltip for attach button */
.attach-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.attach-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.attach-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.95);
}

.attach-tooltip-wrapper:hover .btn.attach-files:hover + .attach-tooltip,
.attach-tooltip-wrapper .btn.attach-files:hover + .attach-tooltip {
    opacity: 1;
    visibility: visible;
}

.attach-tooltip ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.attach-tooltip li {
    margin: 4px 0;
}

.attach-tooltip .tooltip-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-style: italic;
}

/* Tooltip for Bracketed Text */
.tooltip-container {
    position: relative;
    overflow: visible !important;
}

.textarea-mirror {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 20px 32px; /* Same as .message-textarea */
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: visible;
    pointer-events: none;
    visibility: hidden;
    border: none;
}

.textarea-mirror .bracket-text {
    position: relative;
    display: inline;
}

.tooltip-hint {
    position: absolute;
    background: rgba(0, 0, 0, 1.0);
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    pointer-events: auto;
    user-select: none;
    z-index: 100;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    margin-top: -8px;
    transition: opacity 0.2s ease;
}

.tooltip-hint:hover {
    opacity: 0.1;
}

.tooltip-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(0, 0, 0, 0.8);
}

/* ========================================
   Modals
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-surface);
    border-radius: var(--border-radius-large);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-bot);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-text a {
    color: #3b82f6;
    text-decoration: underline;
}

.modal-button {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
}

.modal-button:hover:not(:disabled) {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-button:disabled {
    background: #e5e7eb;
    color: var(--text-primary);
    cursor: not-allowed;
    transform: none;
}

/* Share Modal Specific Styles */
.share-modal {
    max-width: 560px;
}

.share-modal-state {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-warning {
    display: flex;
    gap: 12px;
    background: #fef3c7;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #fde68a;
}

.warning-icon {
    font-size: 20px;
    color: #92400e;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #78350f;
}

.share-info {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.share-link-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.share-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: monospace;
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: text;
    user-select: text;
}

.share-link-input:focus {
    outline: none;
    border-color: var(--border);
}

.copy-link-btn {
    width: auto;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-link,
.icon-copy {
    font-size: 16px;
}

/* ========================================
   Upsell Message
   ======================================== */
.upsell-message .message-content {
    background: var(--bg-upsell);
    border: 2px solid #f59e0b;
    animation: upsellPulse 2s ease-in-out infinite;
}

.upsell-content {
    text-align: center;
}

.upsell-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.upsell-text {
    font-size: 16px;
    font-weight: 500;
}

.upsell-text a {
    color: #3b82f6;
    text-decoration: underline;
}

/* ========================================
   Email Components
   ======================================== */
.email-status {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.privacy-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}

/* ========================================
   Content Pages (About, Privacy, Terms)
   ======================================== */
.content-section {
    background: #ffffff;
    padding: 40px 0;
}

.content-section .container {
    max-width: 800px;
}

/* Page Headers */
.page-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: center;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 32px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.back-link:hover {
    background: #f9fafb;
    border-color: #3b82f6;
}

/* Effective Date Box */
.effective-date {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 32px;
    font-size: 14px;
    color: #374151;
}

/* Content Typography - Consolidated */
.privacy-content h2,
.terms-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 8px;
}

.privacy-content h3,
.terms-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
}

.privacy-content p,
.terms-content p {
    margin-bottom: 16px;
    color: #374151;
    line-height: 1.7;
}

.privacy-content ul,
.terms-content ul {
    margin: 16px 0 16px 20px;
    color: #374151;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-content strong,
.terms-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Content Tables - Consolidated */
.privacy-content table,
.terms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}

.privacy-content table th,
.terms-content table th {
    background: #f9fafb;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.privacy-content table td,
.terms-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    color: #374151;
    line-height: 1.6;
}

.privacy-content table tr:hover,
.terms-content table tr:hover {
    background: #f9fafb;
}

/* Contact Info Box */
.contact-info {
    background: var(--blue-light);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 20px;
    margin: 32px 0;
}

.contact-info h3 {
    margin-top: 0;
    color: #1e40af;
}

/* Privacy Highlights Box */
.privacy-highlights {
    background: var(--blue-light);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.privacy-highlights h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 16px 0;
    border: none;
    padding: 0;
}

.privacy-highlights ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.privacy-highlights li {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.privacy-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 20px;
}

.privacy-highlights li:last-child {
    margin-bottom: 0;
}

/* ========================================
   About Page Specific Styles
   ======================================== */
.main-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

/* Mission Section */
.mission-content {
    font-size: 20px;
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-primary);
}

/* Contact Section */
.contact-card {
    background: #f9fafb;
    border: 1.5px solid var(--border);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 18px;
    color: var(--text-primary);
}

.contact-value a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-value a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f4f6;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    color: var(--text-secondary);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.team-role {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.team-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.team-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-link {
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.team-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* ========================================
   Beta Login Page Styles
   ======================================== */
.beta-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f9fafb;
}

.beta-login-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    margin: 20px;
    text-align: center;
}

.beta-logo {
    display: inline-block;
    margin-bottom: 24px;
}

.beta-logo img {
    height: 32px;
    width: auto;
}

.beta-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.beta-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.beta-form {
    width: 100%;
}

.beta-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

.beta-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.beta-button {
    width: 100%;
    padding: 12px 20px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.beta-button:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.beta-button:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.beta-error {
    color: var(--red);
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
    display: none !important;
}

.error-text {
    color: #dc2626;
}

/* Icon utilities */
.icon-close {
    font-size: 16px;
}

.icon-arrow {
    font-size: 20px;
}

.icon-plus {
    font-size: 18px;
    font-weight: 300;
}

#attachedFileName {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Media query for textarea-mirror responsive padding */
@media (max-width: 768px) {
    .textarea-mirror {
        padding: 16px 20px;
    }
}

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

@keyframes enrichmentWave {
    0% {
        background: linear-gradient(
            90deg,
            #fef3c7 0%,
            #ffffff 30%,
            #fef3c7 60%
        );
        background-size: 200% 100%;
        background-position: 200% 0;
    }
    100% {
        background: linear-gradient(
            90deg,
            #fef3c7 0%,
            #ffffff 30%,
            #fef3c7 60%
        );
        background-size: 200% 100%;
        background-position: -200% 0;
    }
}

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

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

@keyframes upsellPulse {
    0%, 100% { border-color: rgba(245, 158, 11, 1); }
    50% { border-color: rgba(245, 158, 11, 0.3); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes sheen {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }

    .main-container {
        margin: 24px auto;
    }

    .message-wrapper {
        gap: 12px;
    }

    .profile-pic,
    .profile-section {
        width: 40px;
    }

    .profile-pic {
        height: 40px;
    }

    .section-spacer {
        width: 40px;
    }

    .message-content {
        padding: 16px 20px;
    }

    .message-textarea {
        padding: 16px 20px;
        height: 260px;
    }

    /* On mobile, progress messages should fit screen width */
    .progress-message .message-content-container {
        min-width: unset;
        max-width: calc(100% - 40px - 12px);
    }

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

    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    #attachedFileName {
        max-width: 100px;
    }

    /* Content page responsive */
    .page-title,
    .section-title {
        font-size: 28px;
    }
    
    .mission-content {
        font-size: 18px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .message-textarea {
        height: 220px;
    }

    .section-layout {
        gap: 12px;
    }

    .section-spacer {
        display: none;
    }

    .buttons-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .button-group {
        width: 100%;
        flex-direction: column;
    }
    
    #attachedFileName {
        max-width: 120px;
    }
}

/* ========================================
   First-Time User Experience Animations
   ======================================== */
   
/* Bounce animation for Send button */
@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.first-time-bounce {
    animation: gentleBounce 2s ease-in-out infinite;
}

/* Try it now indicator */
.try-it-now-indicator {
    position: absolute;
    left: calc(100% + 60px);
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    animation: gentleBounce 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 15;
    white-space: nowrap;
}

.try-it-now-indicator .arrow-left {
    font-size: 32px;
    animation: pointLeft 1s ease-in-out infinite;
}

@keyframes pointLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

/* Hide try it now on smaller screens */
@media (max-width: 768px) {
    .try-it-now-indicator {
        display: none !important;
    }
}

/* Debug Panel Styles */
.debug-panel {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 400px;
    max-width: 90vw;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 12px;
}

.debug-panel-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.debug-panel-header:active {
    cursor: grabbing;
}

.debug-panel-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.debug-panel-controls {
    display: flex;
    gap: 8px;
}

.debug-panel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.debug-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.debug-panel-content {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.debug-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.debug-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.debug-section h3 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.debug-config-group {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.debug-config-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.debug-select {
    width: 100%;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    margin-bottom: 10px;
}

.debug-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.debug-slider-group {
    margin-top: 10px;
}

.debug-slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.debug-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.debug-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.debug-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.debug-radio-group {
    margin-top: 10px;
}

.debug-radio-group > div {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.debug-radio-group input[type="radio"] {
    margin-right: 4px;
}

.debug-radio-group label[for] {
    display: inline;
    text-transform: none;
    font-size: 12px;
    cursor: pointer;
}

.debug-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.debug-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.debug-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    min-width: 70px;
}

.debug-info-value {
    color: #fff;
    font-size: 12px;
    flex: 1;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.debug-copy-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 2px;
    font-size: 14px;
    transition: color 0.2s;
}

.debug-copy-btn:hover {
    color: #fff;
}

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

.debug-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    transition: all 0.2s;
}

.debug-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* New debug panel styles for job info */
.debug-error-message {
    color: #ff6b6b;
    font-style: italic;
}

.debug-model-config {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 10px;
    margin-left: -10px;
}

.debug-row-errors {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.debug-row-errors h4 {
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.debug-row-errors-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.debug-row-error-item {
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 11px;
}

.debug-row-error-item strong {
    color: #ff9999;
    display: block;
    margin-bottom: 4px;
}

.debug-row-error-message {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 10px;
    line-height: 1.4;
}

.debug-actions {
    margin-bottom: 15px;
}

/* Scrollbar styling for debug panel */
.debug-panel-content::-webkit-scrollbar {
    width: 8px;
}

.debug-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.debug-panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.debug-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
