/* path: flow-orchestrator.css */

/* ==============================================
   Flow Orchestrator Lite - Additional Styles
   ============================================== */

/* Override/extend only what's needed; global styles.css is already loaded */

.flow-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 100px;
}

.flow-hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.flow-hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.flow-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.flow-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Input Section */
.flow-input-section {
    padding: 3rem 2rem;
}

.flow-input-container {
    max-width: 900px;
    margin: 0 auto;
}

.flow-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.flow-label-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.flow-label-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

#instructionInput {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 15px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
}

#instructionInput:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.flow-status {
    min-height: 24px;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.flow-status.error {
    color: var(--accent-pink);
}

/* Tabs */
.flow-tabs-section {
    padding: 2rem 2rem 6rem;
}

.flow-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.flow-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.1);
    overflow-x: auto;
}

.flow-tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-tab:hover {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.05);
}

.flow-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.flow-tab:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.flow-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 0.5rem;
}

.flow-tab.active .flow-tab-count {
    background: var(--accent-blue);
    color: white;
}

/* Panel */
.flow-panel {
    display: none;
}

.flow-panel.active {
    display: block;
}

.flow-panel-header {
    margin-bottom: 2rem;
}

.flow-panel-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.flow-panel-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.flow-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

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

.flow-empty p {
    font-size: 1.1rem;
}

/* Task Card */
.flow-task-card {
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.flow-task-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.1);
}

.flow-task-card.done {
    opacity: 0.6;
}

.flow-task-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flow-task-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.flow-task-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-task-card.done .flow-task-title {
    text-decoration: line-through;
}

.flow-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-left: 40px;
}

.flow-task-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.flow-task-meta-item input,
.flow-task-meta-item select {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.flow-task-meta-item input:focus,
.flow-task-meta-item select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.flow-priority-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.flow-priority-badge.low {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.flow-priority-badge.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.flow-priority-badge.high {
    background: rgba(244, 114, 182, 0.2);
    color: var(--accent-pink);
}

/* Email Card */
.flow-email-card {
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.flow-email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.flow-email-tone {
    padding: 0.4rem 1rem;
    background: rgba(129, 140, 248, 0.2);
    color: var(--accent-purple);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.flow-email-actions {
    display: flex;
    gap: 0.5rem;
}

.flow-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.flow-icon-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-blue);
}

.flow-email-subject {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.flow-email-body {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
}

.flow-email-subject:focus,
.flow-email-body:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Event Card */
.flow-event-card {
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.flow-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.flow-event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-event-time {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(56, 189, 248, 0.05);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
}

.flow-event-time-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.flow-event-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.flow-calendar-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .flow-hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .flow-hero-buttons button {
        width: 100%;
    }
    
    .flow-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .flow-tab {
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        border-left: 3px solid transparent;
    }
    
    .flow-tab.active {
        border-bottom-color: rgba(148, 163, 184, 0.1);
        border-left-color: var(--accent-blue);
    }
    
    .flow-task-meta {
        padding-left: 0;
    }
}