/* VTK Promo Bot - Main Styles */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #101828;
    color: #0f172a;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.header {
    background: linear-gradient(120deg, #3b82f6, #7c3aed);
    color: white;
    padding: 28px;
}

.header h1 { 
    font-size: 28px; 
    margin-bottom: 6px; 
}

.header p { 
    opacity: 0.9; 
    font-size: 15px; 
}

.status {
    padding: 16px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.status span { 
    font-size: 14px; 
    color: #334155; 
}

.status strong { 
    color: #0f172a; 
}

.chat-container {
    padding: 28px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
}

.message {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.message.user { 
    align-items: flex-end; 
}

.message.assistant { 
    align-items: flex-start; 
}

.message-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.message-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    background: #e2e8f0;
    color: #0f172a;
    white-space: pre-wrap;
}

.message.user .message-bubble {
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.assistant .message-bubble {
    background: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.proposal-panel {
    border-top: 1px solid #e2e8f0;
    padding: 24px 28px;
    background: #f8fafc;
}

.proposal-panel h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #0f172a;
}

.proposal-json {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 13px;
}

.actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.input-section {
    padding: 24px 28px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

button {
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

button.secondary {
    background: #e2e8f0;
    color: #0f172a;
}

button.danger {
    background: #f43f5e;
    color: white;
    box-shadow: 0 10px 25px rgba(244,63,94,0.3);
}

button:hover:not(:disabled) { 
    transform: translateY(-1px); 
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.helper-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.error {
    background: #fef3c7;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #f59e0b;
}

.diff-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.diff-item {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 3px solid #3b82f6;
}

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

.diff-field {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.diff-label {
    font-weight: 600;
    color: #1e293b;
    min-width: 120px;
}

.diff-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.diff-before {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: line-through;
    font-weight: 500;
}

.diff-arrow {
    color: #64748b;
    font-weight: bold;
}

.diff-after {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.diff-nested {
    margin-left: 20px;
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid #e2e8f0;
}

.login-panel {
    padding: 28px;
    border-top: 1px solid #e2e8f0;
}

.login-panel h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #0f172a;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 8px;
    padding: 16px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.nav-link.active {
    color: #3b82f6;
    background: #dbeafe;
    border-color: #3b82f6;
}

/* AW25 Page Styles */
.aw25-container {
    padding: 28px;
}

.aw25-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: visible;
}

.aw25-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #0f172a;
    position: relative;
    z-index: 10;
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: block;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-upload-area.dragover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}

.aw25-section h3 {
    position: relative;
    z-index: 2;
}

.progress-bar-container {
    background: #e2e8f0;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #7c3aed);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.task-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.task-status #statusText {
    flex: 1;
    min-width: 200px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

