@import url('tokens.css');
/*
 * plan.css
 * Styling for plan.php UI stages based on provided mockups
 */

/* Note: Stage visibility is controlled by inline styles and head styles in plan.php */

.plan-stages-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
}

.stage-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    /* CRITICAL: No transitions to prevent flashes */
    transition: none !important;
    animation: none !important;
}

.stage-section.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.stage-section.active-stage {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stage-heading {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #101828;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 16px;
    font-weight: 600;
}

/* Modals General */
.modal-preview {
    display: block;
    justify-content: center;
    align-items: flex-start;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.dashboard-preview {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-card {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 40px auto;
    border: 1px solid #e0e0e0;
}

.wide-modal {
    max-width: 900px;
}

.modal-header {
    padding: 32px 40px 24px;
    text-align: left;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #eaecf0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #101828;
    font-weight: 600;
}

.modal-header.with-close {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-titles {
    text-align: left;
    flex-grow: 1;
}

.close-modal-button {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #667085;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-modal-button:hover {
    background: #f2f4f7;
    color: #101828;
}

.project-serial {
    color: #667085;
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 500;
}

.modal-body {
    padding: 32px 40px;
}

.modal-body.text-center {
    text-align: center;
}

.modal-body.ideas-scroll-body {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Completion Summary Styles */
.completion-summary {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    margin-top: 24px;
}

.success-checkmark {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    animation: checkmarkPop 0.4s ease-out;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 8px;
}

.completion-text {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.completion-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-actions .submit-button {
    min-width: 160px;
}

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

.modal-footer {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaecf0;
    background: #f8f9fa;
}

.completion-footer {
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-top: none;
}

.completion-status {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.wizard-footer {
    justify-content: space-between;
    padding: 16px 40px;
    border-top: 1px solid #eaecf0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.cancel-link {
    color: #667085;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.cancel-link:hover {
    color: #101828;
}

.progress-count {
    color: #667085;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-bottom-bar {
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaecf0;
    background: #f8f9fa;
}

/* Modal 1: Create Project Elements */
.inspiration-button {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    color: #0d6efd;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
}

.plan-label {
    display: block;
    font-size: 0.875rem;
    color: #344054;
    margin-bottom: 6px;
    font-weight: 500;
}

.plan-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    min-height: 100px;
    resize: vertical;
    box-sizing: border-box;
}

.cancel-button {
    background: white;
    border: 1px solid #d0d5dd;
    color: #344054;
    padding: 0 20px;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.outline-button {
    background: transparent;
    border: 1px solid #4f46e5;
    color: #4f46e5;
    padding: 0 20px;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.ghost-button {
    background: transparent;
    border: 1px solid transparent;
    color: #667085;
    padding: 0 20px;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.submit-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.plan-stages-container .submit-button {
    width: auto;
    height: 44px;
    padding: 0 20px;
    margin-top: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
}

/* Modal 2: Wizard Elements */
.progress-bar-container {
    height: 4px;
    background: #eaecf0;
    margin: 0 24px 16px;
}

.progress-bar-fill {
    height: 100%;
    background: #4f46e5;
    transition: width 0.3s;
}

.progress-bar-fill.step-1 {
    width: 25%;
}

.question-title {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #101828;
}

.question-subtitle {
    font-size: 0.875rem;
    color: #667085;
    margin-bottom: 24px;
}

.question-number {
    font-size: 0.75rem;
    color: #667085;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.options-grid.single-col {
    grid-template-columns: 1fr;
}

.option-card {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    background: white;
}

.option-card:hover {
    border-color: #d0d5dd;
}

.option-card.checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.option-card.checked .option-text {
    color: white;
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
    margin-top: 3px;
    margin-right: 12px;
}

.option-text {
    font-size: 0.875rem;
    color: #344054;
    font-weight: 500;
    text-align: left;
}

/* Stage 3: Dashboard Execution Elements */
.stepper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 8px;
}

.compact-stepper {
    margin: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaecf0;
    color: #667085;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step.completed .step-circle,
.step.active .step-circle {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.step-label {
    font-size: 0.8rem;
    color: #667085;
    font-weight: 600;
    text-align: center;
    max-width: 80px;
}

.step.active .step-label {
    color: #4f46e5;
}

.step-line {
    flex-grow: 1;
    height: 3px;
    background: #eaecf0;
    margin: 0 8px;
    margin-top: -20px;
    border-radius: 2px;
}

.step-line.active {
    background: #4f46e5;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

.execution-title {
    font-size: 1.25rem;
    color: #101828;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaecf0;
}

.execution-card {
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}

.calculator-results-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 4px;
    color: #101828;
}

.icon-green {
    color: #12b76a;
}

.calculator-results-header p {
    font-size: 0.875rem;
    color: #667085;
    margin-top: 0;
    margin-bottom: 24px;
}

.calculator-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.calc-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #667085;
    text-transform: uppercase;
    font-weight: 500;
}

.calc-label svg {
    color: #4f46e5;
}

.calc-value {
    font-weight: 600;
    color: #101828;
}

.features-list {
    border-top: 1px solid #eaecf0;
    padding-top: 24px;
}

.features-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #101828;
    margin-bottom: 16px;
}

.feature-item {
    margin-bottom: 16px;
}

.feature-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #344054;
}

.feature-desc {
    font-size: 0.875rem;
    color: #667085;
}

.github-access-card {
    background: #f8f9fa;
    border: 1px dashed #d0d5dd;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
}

.github-header h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    margin-top: 0;
}

.github-header p {
    font-size: 0.875rem;
    color: #667085;
    margin-bottom: 24px;
    margin-top: 0;
}

.github-request-button {
    background: white;
    border: 1px solid #d0d5dd;
    color: #344054;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 24px;
}

.note-text {
    font-size: 0.75rem;
    color: #98a2b3;
}

/* Stage Navigation */
.stage-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    border: 1px dashed #d0d5dd;
    margin-bottom: 24px;
}

.stage-indicator {
    font-weight: 600;
    color: #101828;
}

/* Vision Actions */
.vision-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

.vision-actions.row {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

.vision-actions.row button {
    flex: 1;
    max-width: 200px;
}

.divider-line {
    height: 1px;
    background: #eaecf0;
    margin: 24px 0;
}

.dark-submit {
    background: #101828;
    border-color: #101828;
}

.dark-submit:hover {
    background: #1d2939;
}

/* Footer Extras */
.footer-left,
.footer-right {
    display: flex;
    gap: 12px;
}

.modal-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-top: 1px solid #eaecf0;
    font-size: 0.875rem;
}

.cancel-link {
    color: #667085;
    cursor: pointer;
    font-weight: 500;
}

.progress-count {
    color: #667085;
    font-weight: 500;
}

/* Journey Button */
.journey-actions {
    margin-top: 16px;
}

.green-btn {
    background: #12b76a;
    border-color: #12b76a;
    color: white;
}

.green-btn:hover {
    background: #039855;
}

/* Project Ideas - Categorized Layout */
.ideas-scroll-body {
    max-height: 450px;
    overflow-y: auto;
}

.ideas-category {
    margin-bottom: 20px;
}

.category-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667085;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecf0;
}

.ideas-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.idea-card {
    padding: 20px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.idea-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.idea-card.selected {
    border-color: #4f46e5;
    background: #f0efff;
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.idea-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #101828;
}

.idea-desc {
    font-size: 0.8125rem;
    color: #667085;
    line-height: 1.5;
}

.priority-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.priority-badge.high {
    background: #ecfdf3;
    color: #027a48;
}

.priority-badge.medium {
    background: #fffaeb;
    color: #b54708;
}

/* Assessment Project Type Cards */
.project-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
    text-align: left;
}

.project-type-card {
    padding: 20px;
    border: 2px solid #eaecf0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.project-type-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.project-type-card.selected {
    border-color: #4f46e5;
    background: #f0efff;
}

.pt-title {
    font-weight: 600;
    color: #101828;
    margin-bottom: 4px;
}

.pt-desc {
    font-size: 0.875rem;
    color: #667085;
}

/* Planning Stage */
.section-title {
    font-size: 1.125rem;
    color: #101828;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaecf0;
}

.planning-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.wide-button {
    flex-grow: 1;
    padding: 14px 24px;
    font-size: 1rem;
}

.call-button {
    white-space: nowrap;
}

/* Alerts */
.alert-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff8ff;
    border: 1px solid #b2ddff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.alert-info strong {
    display: block;
    color: #101828;
    margin-bottom: 4px;
}

.alert-info p {
    font-size: 0.875rem;
    color: #4f46e5;
    margin: 0;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fffaeb;
    border: 1px solid #fedf89;
    border-radius: 8px;
    padding: 12px 16px;
    color: #b54708;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Calendar Scheduling */
.calendar-modal-card {
    max-width: 800px;
}

.calendar-layout {
    display: flex;
}

.calendar-left {
    flex: 1;
    background: var(--border-color);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid white;
    margin-bottom: 16px;
}

.calendar-meet-label {
    font-size: 1rem;
    margin-bottom: 24px;
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cal-arrow {
    cursor: pointer;
    font-size: 1.25rem;
}

.cal-month {
    font-weight: 600;
}

.calendar-grid {
    width: 100%;
}

.cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.cal-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.cal-row span {
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
}

.cal-selected {
    background: white;
    color: var(--text-primary);
    font-weight: 700;
}

.cal-available {
    color: #4fd1c5;
    font-weight: 600;
}

.calendar-right {
    flex: 1;
    padding: 30px;
    background: white;
}

.duration-label {
    font-weight: 700;
    color: #101828;
    margin-bottom: 12px;
}

.duration-options {
    display: flex;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.duration-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    border-right: 1px solid #d0d5dd;
    color: #344054;
}

.duration-btn:last-child {
    border-right: none;
}

.duration-btn.active {
    background: #f0efff;
    color: #4f46e5;
    font-weight: 600;
}

.time-label {
    font-weight: 700;
    color: #101828;
    margin-bottom: 4px;
}

.time-sublabel {
    font-size: 0.875rem;
    color: #667085;
    margin-bottom: 8px;
}

.timezone {
    color: #0d9488;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.time-slot {
    padding: 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-size: 0.875rem;
    color: #344054;
    transition: border-color 0.3s;
}

.time-slot:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

/* Agreement Modal */
.agreement-scroll-box {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    padding: 20px;
    font-size: 0.875rem;
    color: #344054;
    line-height: 1.6;
}

.agreement-scroll-box p {
    margin-bottom: 16px;
}

/* ── Dark Mode ────────────────────────────────────────────── */
html.dark-mode .stage-section {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

html.dark-mode .stage-heading {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

html.dark-mode .dashboard-preview,
html.dark-mode .modal-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

html.dark-mode .modal-header h3,
html.dark-mode .question-title,
html.dark-mode .section-title,
html.dark-mode .execution-title,
html.dark-mode .calc-value,
html.dark-mode .feature-name,
html.dark-mode .idea-title,
html.dark-mode .pt-title {
    color: var(--text-primary);
}

html.dark-mode .question-subtitle,
html.dark-mode .question-number,
html.dark-mode .project-serial,
html.dark-mode .calc-label,
html.dark-mode .feature-desc,
html.dark-mode .idea-desc,
html.dark-mode .pt-desc,
html.dark-mode .note-text,
html.dark-mode .cancel-link,
html.dark-mode .progress-count,
html.dark-mode .time-sublabel {
    color: var(--text-primary);
    opacity: 0.7;
}

html.dark-mode .stage-heading {
    color: var(--text-primary);
    border-color: var(--border-color);
}

html.dark-mode .modal-card {
    background: var(--bg-color);
    border-color: var(--border-color);
}

html.dark-mode .modal-header {
    background: linear-gradient(135deg, var(--input-bg) 0%, var(--bg-color) 100%);
    border-color: var(--border-color);
}

html.dark-mode .modal-header h3 {
    color: var(--text-primary);
}

html.dark-mode .modal-body {
    background: var(--bg-color);
}

html.dark-mode .modal-footer {
    background: var(--input-bg);
    border-color: var(--border-color);
}

html.dark-mode .completion-footer {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

html.dark-mode .completion-summary {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

html.dark-mode .completion-title {
    color: #34d399;
}

html.dark-mode .completion-text {
    color: #d1d5db;
}

html.dark-mode .wizard-footer {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--input-bg) 100%);
    border-color: var(--border-color);
}

html.dark-mode .modal-bottom-bar {
    background: var(--input-bg);
    border-color: var(--border-color);
}

html.dark-mode .cancel-link {
    color: var(--text-secondary);
}

html.dark-mode .cancel-link:hover {
    color: var(--text-primary);
}

html.dark-mode .progress-count {
    color: var(--text-secondary);
}

html.dark-mode .step-circle {
    background: var(--border-color);
    color: var(--text-secondary);
}

html.dark-mode .step-line {
    background: var(--border-color);
}

html.dark-mode .plan-label {
    color: var(--text-primary);
}

html.dark-mode .plan-textarea,
html.dark-mode .text-input {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html.dark-mode .option-card,
html.dark-mode .idea-card,
html.dark-mode .project-type-card,
html.dark-mode .execution-card,
html.dark-mode .stage-navigation,
html.dark-mode .duration-btn,
html.dark-mode .time-slot {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html.dark-mode .option-card:hover,
html.dark-mode .idea-card:hover,
html.dark-mode .project-type-card:hover {
    border-color: #4f46e5;
    background-color: var(--bg-color);
}

html.dark-mode .option-card.checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

html.dark-mode .step-circle {
    background: var(--border-color);
    color: var(--text-primary);
}

html.dark-mode .step.completed .step-circle,
html.dark-mode .step.active .step-circle {
    background: #4f46e5;
    color: #ffffff;
}

html.dark-mode .step-line {
    background: var(--border-color);
}

html.dark-mode .step-line.active {
    background: #4f46e5;
}

html.dark-mode .github-access-card {
    background: var(--bg-color);
    border-color: var(--border-color);
}

html.dark-mode .github-request-button,
html.dark-mode .cancel-button,
html.dark-mode .duration-btn {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html.dark-mode .duration-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
}

html.dark-mode .alert-info {
    background: rgba(18, 183, 106, 0.1);
    border-color: #12b76a;
}

html.dark-mode .alert-info strong {
    color: var(--text-primary);
}

html.dark-mode .alert-warning {
    background: rgba(255, 186, 8, 0.1);
    border-color: #ffba08;
    color: #ffba08;
}

html.dark-mode .calendar-left {
    background: var(--bg-color);
}

html.dark-mode .calendar-right {
    background: var(--card-bg);
}

html.dark-mode .cal-selected {
    background: #4f46e5;
    color: #ffffff;
}

html.dark-mode .agreement-scroll-box {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Ideas Section */
.ideas-scroll-body {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.ideas-category {
    margin-bottom: 24px;
}

.category-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.ideas-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.idea-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.idea-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.idea-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #101828;
}

.priority-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.idea-desc {
    font-size: 0.85rem;
    color: #667085;
    line-height: 1.5;
    margin-bottom: 12px;
}

.select-idea-btn {
    width: 100%;
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.select-idea-btn:hover {
    background: #4338ca;
}

.template-selection-intro {
    text-align: center;
    color: #667085;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Template Preview Page */
.template-preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.template-preview-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.template-preview-info {
    flex: 1;
}

.template-preview-name {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: #101828;
}

.template-preview-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #667085;
    line-height: 1.5;
}

.template-preview-pricing {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pricing-row:first-child {
    border-bottom: 1px solid #d1fae5;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

.pricing-label {
    font-size: 0.85rem;
    color: #667085;
}

.pricing-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}

.preview-section-title {
    font-size: 0.9rem;
    color: #101828;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.template-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
}

.template-features-grid .feature-tag {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.template-features-grid .feature-tag::before {
    content: '✓';
    color: #4f46e5;
    font-weight: 700;
}

.template-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Dark mode for template preview */
html.dark-mode .template-preview-header {
    background: var(--input-bg);
}

html.dark-mode .template-preview-name {
    color: var(--text-primary);
}

html.dark-mode .template-preview-desc {
    color: var(--text-secondary);
}

html.dark-mode .template-preview-pricing {
    background: rgba(22, 163, 74, 0.1);
    border-color: #16a34a;
}

html.dark-mode .pricing-value {
    color: #4ade80;
}

html.dark-mode .template-features-grid {
    background: var(--input-bg);
}

html.dark-mode .template-features-grid .feature-tag {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}

html.dark-mode .template-features-grid .feature-tag::before {
    color: #a5b4fc;
}

/* Template Preview Page */
.template-preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.template-preview-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.template-preview-info {
    flex: 1;
}

.template-preview-name {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: #101828;
}

.template-preview-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #667085;
    line-height: 1.5;
}

.template-preview-pricing {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pricing-row:first-child {
    border-bottom: 1px solid #d1fae5;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

.pricing-label {
    font-size: 0.85rem;
    color: #667085;
}

.pricing-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}

.preview-section-title {
    font-size: 0.9rem;
    color: #101828;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.template-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
}

.template-features-grid .feature-tag {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.template-features-grid .feature-tag::before {
    content: '✓';
    color: #4f46e5;
    font-weight: 700;
}

.template-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Dark mode for templates */
html.dark-mode .template-price {
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
}

html.dark-mode .template-preview-summary {
    background: rgba(22, 163, 74, 0.1);
    border-color: #16a34a;
}

html.dark-mode .summary-value {
    color: #4ade80;
}

html.dark-mode .template-features-grid {
    background: var(--input-bg);
}

html.dark-mode .template-features-grid .feature-tag {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}

html.dark-mode .template-features-grid .feature-tag::before {
    color: #a5b4fc;
}

html.dark-mode .price-summary-bar {
    background: var(--input-bg);
    border-color: var(--border-color);
}

html.dark-mode .price-summary-item .price-value {
    color: var(--text-primary);
}

