/* Fin-Tegration Workflow Theme */
:root {
    --color-bg-deep-navy: #0a192f;
    --color-bg-card: #112240;
    --color-accent-gold: #d4af37;
    --color-text-primary: #e6f1ff;
    --color-text-secondary: #8892b0;
    --color-success: #22c55e;
    --color-danger: #ef4444;

    --radius-card: 16px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
    --border-subtle: 1px solid rgba(212, 175, 55, 0.15);

    --font-heading: "Poppins", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #112240 0, #0a192f 45%, #020817 100%);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    letter-spacing: 0.03em;
    margin-top: 0;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    line-height: 1.5;
}

/* Layout */
/* Layout */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 16px 40px;
}



.dashboard-header {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 16px;
    text-align: center;
}

.dashboard-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Responsive Grid Layout */
.workflow-grid {
    display: grid;
    gap: 24px;
}

/* Desktop: 2 columns, full‑width card option */
@media (min-width: 1024px) {
    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card--full {
        grid-column: 1 / -1;
    }
}

/* Components: Stepper */
.stepper {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: center;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.stepper-step:hover {
    color: var(--color-text-primary);
}

.stepper-step--active {
    color: var(--color-accent-gold);
}

.stepper-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.stepper-step--active .stepper-step-circle {
    border-color: var(--color-accent-gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
}

/* Components: Card */
.card {
    background: linear-gradient(145deg, #112240, #0b1730);
    border-radius: var(--radius-card);
    border: var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.card-label {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.card-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Step 1 Specifics */
.step-prep {
    border-left: 3px solid var(--color-accent-gold);
}

/* Step 2 Specifics (Live) */
.card--live {
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.33);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.live-badge.recording {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.live-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Split Pane for Live Meeting */
.live-split {
    display: flex;
    gap: 16px;
    height: 300px;
    /* Fixed height for scrollable content */
}

.live-pane {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.live-pane::-webkit-scrollbar {
    width: 4px;
}

.live-pane::-webkit-scrollbar-thumb {
    background: rgba(136, 146, 176, 0.3);
    border-radius: 4px;
}

.divider-vertical {
    width: 1px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(136, 146, 176, 0.6),
            transparent);
}

/* Form Elements */
.field-group {
    margin-bottom: 16px;
}

.label-text {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.input,
.select {
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    border-radius: 10px;
    border: 1px solid rgba(136, 146, 176, 0.3);
    color: var(--color-text-primary);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

.input-multiline {
    min-height: 100px;
    resize: vertical;
}

/* Checklist */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-text-secondary);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.checkbox:checked {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
}

.checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: #060b1a;
    font-size: 14px;
    top: -2px;
    left: 2px;
    font-weight: bold;
}

.checklist-label {
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

/* Buttons */
.button-primary {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #060b1a;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.button-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid rgba(136, 146, 176, 0.5);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.button-secondary:hover {
    background: rgba(136, 146, 176, 0.1);
}

/* Step 3: Badges */
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 34, 64, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.badge-dot-success {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
}

.badge-dot-danger {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-danger);
}

/* Step 4: Table */
.action-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.action-table th {
    text-align: left;
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(136, 146, 176, 0.2);
}

.action-table td {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
}

.action-row:hover {
    background: rgba(17, 34, 64, 0.9);
}

.priority-high {
    color: var(--color-danger);
}

/* Step 5 */
.calendar-preview {
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(136, 146, 176, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* Refactored Utility Classes */
.live-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.live-note-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.live-note-highlight {
    color: var(--color-accent-gold);
    font-style: italic;
}

.ai-suggestion {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
}

.ai-suggestion-title {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.ai-suggestion-button {
    font-size: 0.7rem;
    padding: 4px 8px;
}

.end-meeting-button {
    width: 100%;
    margin-top: 16px;
    border-color: var(--color-danger);
    color: var(--color-danger);
    transition: background 0.2s, color 0.2s;
}

.end-meeting-button:hover {
    background: rgba(239, 68, 68, 0.1);
}

.system-status-warning {
    background: rgba(239, 68, 68, 0.1);
}

.system-status-warning span {
    color: var(--color-danger);
}

.data-change-pill {
    background: rgba(212, 175, 55, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.data-change-title {
    font-size: 0.85rem;
    color: var(--color-accent-gold);
    margin-bottom: 8px;
    font-weight: bold;
}

.data-change-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

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

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

.next-meeting-title {
    font-weight: 600;
}

.next-meeting-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.calendar-edit-button {
    padding: 4px 12px;
}

.email-monospace {
    font-family: monospace;
    font-size: 0.85rem;
    height: 140px;
}