/* OffBoarding — Clean, minimal UI */

:root {
    --purple: #6366F1;
    --purple-dark: #4F46E5;
    --purple-light: #EEF2FF;
    --red: #EF4444;
    --red-dark: #DC2626;
    --green: #10B981;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ---- Landing ---- */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A78BFA 100%);
    padding: 2rem;
}

.landing-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.logo { margin-bottom: 1rem; }

.landing-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.description {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.error {
    background: #FEF2F2;
    color: var(--red);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.privacy {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.privacy a { color: var(--purple); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-slack {
    background: #4A154B;
    color: white;
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: var(--radius);
}
.btn-slack:hover { background: #3b1139; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.8rem; }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--gray-500); }

.btn-secondary { background: var(--purple-light); color: var(--purple); }
.btn-secondary:hover { background: #E0E7FF; }

.btn-danger { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-danger:hover { background: #FEF2F2; }

.btn-danger-fill { background: var(--red); color: white; }
.btn-danger-fill:hover { background: var(--red-dark); }

/* ---- Navbar ---- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---- Container ---- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* ---- Action bar ---- */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.action-bar h2 { font-size: 1.25rem; }

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---- Conversation list ---- */
.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.conversation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    transition: background 0.1s;
}
.conversation-item:hover { background: var(--gray-50); }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex: 1;
}

.conversation-info { display: flex; flex-direction: column; }

.conversation-name { font-weight: 600; font-size: 0.95rem; }

.conversation-meta { font-size: 0.8rem; color: var(--gray-500); }

.conversation-actions {
    display: flex;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.15s;
}
.conversation-item:hover .conversation-actions { opacity: 1; }

/* ---- Banner ---- */
.banner {
    background: var(--purple-light);
    border: 1px solid #C7D2FE;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--purple);
    border-radius: 3px;
    transition: width 0.3s;
}

#status-text { font-weight: 600; }
#status-detail { font-size: 0.85rem; color: var(--gray-500); }

/* ---- Modal ---- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

.modal-body .message {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

/* ---- Empty state ---- */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--gray-500);
}

/* ---- Nuke progress panel ---- */
.nuke-panel {
    background: white;
    border: 2px solid var(--purple);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.nuke-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.nuke-status {
    font-weight: 700;
    font-size: 1.1rem;
}
.nuke-status.running { color: var(--purple); }
.nuke-status.success { color: var(--green); }
.nuke-status.error { color: var(--red); }

.nuke-failed {
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 600;
}

.nuke-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.nuke-current {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

.section-title {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

/* ---- Utilities ---- */
.hidden { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .container { padding: 1rem; }
    .action-bar { flex-direction: column; align-items: stretch; }
    .action-buttons { justify-content: flex-end; }
    .conversation-actions { opacity: 1; }
}
