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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 24px 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

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

.logo-icon {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

.user-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.app-subtitle {
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 400;
}

/* Main Content */
.app-main {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card {
    max-width: 600px;
    text-align: center;
    padding: 48px;
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.welcome-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.welcome-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.task-examples {
    text-align: left;
    margin-bottom: 32px;
}

.task-examples h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.examples-list {
    list-style: none;
}

.examples-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.welcome-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Buttons */
.primary-btn, .secondary-btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.secondary-btn:hover {
    background-color: var(--background-color);
    border-color: var(--primary-color);
}

/* Forms */
.task-creation {
    max-width: 600px;
    margin: 0 auto;
}

.task-form-card {
    padding: 32px;
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.task-form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.debug-panel {
    margin-top: 16px;
    border: 1px dashed var(--border-color);
    background: var(--background-color);
}

.debug-panel .status-row {
    font-size: 0.9rem;
}

.chat-history {
    max-height: 240px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-color);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    max-width: 85%;
    box-shadow: var(--shadow-sm);
}

.chat-message.user {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
    align-self: flex-end;
}

.chat-message.assistant {
    border-color: rgba(15, 23, 42, 0.12);
    align-self: flex-start;
}

.chat-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chat-content {
    white-space: pre-wrap;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.task-description-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
}

.intake-chat-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--background-color);
    margin-bottom: 24px;
}

.intake-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.intake-chat-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.intake-chat-status {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
}

.intake-chat-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.intake-chat-input {
    min-height: 110px;
}

.intake-chat-send {
    height: 46px;
    padding: 0 20px;
}

.warning-message {
    color: var(--warning-color);
    font-weight: 600;
}

.task-description-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.task-priority-select,
.codex-version-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--surface-color);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* Task Progress */
.task-progress {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.task-lookup {
    background-color: var(--surface-color);
    padding: 20px 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-lookup-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-lookup-field label {
    font-weight: 600;
    color: var(--text-primary);
}

.task-lookup-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
}

.task-lookup-actions.github-connect {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: center;
}

.auth-login-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.auth-diagnostics {
    margin-top: 12px;
    display: grid;
    gap: 4px;
}

.error-message {
    color: #dc2626;
}

.task-id-input {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    font-size: 0.95rem;
    font-family: inherit;
    min-width: 0;
}

.task-id-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.task-lookup-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.task-id-display {
    background-color: var(--background-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-visualization {
    background-color: var(--surface-color);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.progress-bar-container {
    margin-bottom: 24px;
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar-track {
    height: 12px;
    background-color: var(--border-color);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-stages {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.stage-marker {
    width: 4px;
    height: 100%;
    background-color: var(--surface-color);
    opacity: 0.7;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Real-time Updates */
.realtime-updates {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.container-inspector {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.inspector-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.inspector-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.inspector-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inspector-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-error {
    background-color: #fee2e2;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.state-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.state-item {
    background-color: var(--background-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.state-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.state-item strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-word;
}

.events-list,
.artifacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item,
.artifact-item {
    background-color: var(--background-color);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-header,
.artifact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 600;
}

.event-type {
    color: var(--primary-color);
}

.event-meta,
.artifact-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payload-details summary {
    cursor: pointer;
    font-weight: 600;
}

.payload-details pre {
    margin-top: 8px;
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    border-radius: var(--radius-md);
    overflow: auto;
    font-size: 0.8rem;
}

.artifact-badge {
    background-color: #e0e7ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.artifacts-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.artifact-type-input {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    font-size: 0.9rem;
    min-width: 200px;
}

.artifact-type-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.realtime-updates h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.updates-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.update-item {
    padding: 16px;
    margin-bottom: 12px;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease;
}

.update-item.success {
    border-left-color: var(--success-color);
}

.update-item.error {
    border-left-color: var(--error-color);
}

.update-item.warning {
    border-left-color: var(--warning-color);
}

.update-content {
    font-weight: 500;
    margin-bottom: 4px;
}

.update-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Active AI Agents */
.active-agents {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.active-agents h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.agent-card {
    padding: 20px;
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s ease;
}

.agent-card:hover {
    transform: translateY(-2px);
}

.agent-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.agent-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.agent-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.agent-status.active {
    color: var(--success-color);
}

.agent-status.idle {
    color: var(--warning-color);
}

/* Task Controls */
.task-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 24px;
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* Task Results */
.task-results {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.results-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.status-badge {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.success {
    background-color: #d1fae5;
    color: var(--success-color);
}

.status-badge.error {
    background-color: #fee2e2;
    color: var(--error-color);
}

.status-badge.pending {
    background-color: #fef3c7;
    color: var(--warning-color);
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.summary-card {
    padding: 24px;
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-icon {
    font-size: 2rem;
}

.summary-content h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Generated Files */
.generated-files {
    background-color: var(--surface-color);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.generated-files h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.files-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    min-height: 400px;
}

.files-sidebar {
    border-right: 1px solid var(--border-color);
    padding-right: 24px;
}

.file-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-item:hover {
    background-color: var(--background-color);
}

.category-item.active {
    background-color: var(--primary-color);
    color: white;
}

.files-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.file-list {
    border-right: 1px solid var(--border-color);
    padding-right: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background-color: #e2e8f0;
}

.file-item.active {
    background-color: var(--primary-color);
    color: white;
}

.file-icon {
    font-size: 1.25rem;
}

.file-name {
    flex: 1;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.file-preview {
    display: flex;
    flex-direction: column;
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.file-preview-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.file-content-preview {
    flex: 1;
    padding: 20px;
    background-color: #1e293b;
    color: #e2e8f0;
    border-radius: var(--radius-md);
    overflow: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Download Options */
.download-options {
    background-color: var(--surface-color);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.download-options h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.download-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.download-info .muted {
    margin-top: 4px;
    color: var(--text-tertiary);
}

/* Previous Tasks */
.previous-tasks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tasks-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-history-item {
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.task-history-item:hover {
    transform: translateY(-2px);
}

.task-history-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.task-history-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.task-history-actions {
    display: flex;
    gap: 8px;
}

.tasks-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.empty-state {
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Footer */
.app-footer {
    background-color: var(--surface-color);
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
}

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

.footer-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-dark);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 48px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

#loadingMessage {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.loading-subtext {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--surface-color);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    animation: slideUp 0.3s ease;
    max-width: 400px;
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: var(--radius-lg);
    }

    .app-main {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .welcome-actions,
    .form-actions,
    .task-controls,
    .download-buttons {
        flex-direction: column;
    }

    .task-lookup-actions {
        grid-template-columns: 1fr;
    }

    .inspector-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-header,
    .artifact-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .files-container {
        grid-template-columns: 1fr;
    }

    .files-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .file-list {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 24px;
        max-height: 200px;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
