/* ===================================
   GeoData Workflow Styles
   =================================== */

.workflow-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.workflow-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.workflow-header h2 {
    color: var(--Text-Colors-Black, #232323);
    font-family: var(--font-default);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.workflow-header p {
    font-size: 0.9375rem;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    margin: 0;
}

/* Workflow Stepper - Compact */
.workflow-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 1.5rem 0;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: var(--radius-sm-alt, 0.5rem);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm-alt, 0.5rem);
    min-width: 140px;
    flex: 1;
    max-width: 180px;
}

.step-item:hover:not(.disabled) {
    background: rgba(43, 86, 49, 0.05);
}

.step-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step-item.current .step-icon {
    background: var(--Main-Colors-Main, #2B5631);
    color: white;
    box-shadow: 0 4px 12px rgba(43, 86, 49, 0.25);
    animation: pulse-glow 2s infinite;
    transform: scale(1.05);
}

.step-item.completed .step-icon {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.15);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(43, 86, 49, 0.25);
    }
    50% {
        box-shadow: 0 6px 16px rgba(43, 86, 49, 0.4);
    }
}

.step-number {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.step-item.current .step-number {
    border-color: var(--Main-Colors-Main, #2B5631);
    background: var(--Main-Colors-Main, #2B5631);
    color: white;
}

.step-item.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.step-title {
    font-family: var(--font-default);
    font-size: 1rem;
    font-weight: 600;
    color: var(--Text-Colors-Black, #232323);
    line-height: 1.2;
}

.step-item.current .step-title {
    color: var(--Main-Colors-Main, #2B5631);
}

.step-description {
    font-family: var(--font-default);
    font-size: 0.8125rem;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    line-height: 1.3;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -0.5rem;
    color: #dee2e6;
    align-self: flex-start;
    margin-top: 36px;
}

.step-connector svg {
    width: 24px;
    height: 24px;
}

.step-connector.completed {
    color: #28a745;
}

/* Alert Styles - Compact */
.alert {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm-alt, 0.5rem);
    margin: 1rem 0;
    border: 1px solid transparent;
}

.alert-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.alert-icon svg {
    width: 20px;
    height: 20px;
}

.alert-content {
    flex: 1;
    padding-top: 1px;
}

.alert-content h5 {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.alert-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9375rem;
}

.alert-warning {
    background: #fff8e6;
    border-color: #ffc107;
    color: #856404;
}

.alert-warning .alert-icon {
    background: #ffc107;
    color: white;
}

.alert-success {
    background: #e8f5e9;
    border-color: #28a745;
    color: #155724;
}

.alert-success .alert-icon {
    background: #28a745;
    color: white;
}

/* Workflow Content - Compact */
.workflow-content {
    flex: 1;
    margin: 1rem 0;
}

.step-panel {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-sm-alt, 0.5rem);
    border: 1px solid #e9ecef;
    height: 100%;
}

.step-panel h4 {
    color: var(--Text-Colors-Black, #232323);
    font-family: var(--font-default);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.step-panel > p {
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

/* Action Cards - Compact */
.action-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-sm-alt, 0.5rem);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 1rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.action-card:hover {
    border-color: var(--Main-Colors-Main, #2B5631);
    box-shadow: 0 4px 16px rgba(43, 86, 49, 0.1);
    transform: translateY(-1px);
}

.action-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(43, 86, 49, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 36px;
    height: 36px;
    color: var(--Main-Colors-Main, #2B5631);
}

.action-content {
    flex: 1;
}

.action-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--Text-Colors-Black, #232323);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.action-content p {
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9375rem;
}

.action-content button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

.action-content button svg {
    width: 18px;
    height: 18px;
}

/* Statistics Cards - Compact */
.stat-card {
    height: 100%;
    border-radius: var(--radius-sm-alt, 0.5rem);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.stat-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm-alt, 0.5rem) var(--radius-sm-alt, 0.5rem) 0 0;
}

.header-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.stat-card .card-header h5 {
    margin: 0;
    line-height: 1.2;
    font-size: 0.9375rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-family: var(--font-default);
    font-weight: 500;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    font-size: 0.875rem;
}

.stat-value {
    font-family: var(--font-default);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--Main-Colors-Main, #2B5631);
    line-height: 1;
}

.stat-card .card-body {
    padding: 1.25rem;
}

/* Completion Message - Compact */
.completion-message {
    text-align: center;
    padding: 2rem 1.5rem;
}

.completion-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-icon svg {
    width: 52px;
    height: 52px;
}

.completion-message h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--Text-Colors-Black, #232323);
    margin-bottom: 0.75rem;
}

.completion-message p {
    font-size: 1rem;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    margin-bottom: 1.5rem;
}

.completion-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
}

.completion-actions button svg {
    width: 18px;
    height: 18px;
}

/* Pipeline Flow - Compact */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 130px;
    flex: 1;
    max-width: 160px;
}

.flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--Main-Colors-Main, #2B5631);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 3px 10px rgba(43, 86, 49, 0.18);
    transition: transform 0.3s ease;
}

.flow-node:hover .flow-icon {
    transform: scale(1.05);
}

.flow-icon svg {
    width: 28px;
    height: 28px;
}

.flow-label {
    font-family: var(--font-default);
    font-weight: 600;
    font-size: 1rem;
    color: var(--Text-Colors-Black, #232323);
    margin-bottom: 0.15rem;
}

.flow-sublabel {
    font-family: var(--font-default);
    font-size: 0.8125rem;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    margin-bottom: 0.5rem;
}

.flow-count {
    font-family: var(--font-default);
    font-size: 0.8125rem;
    color: var(--Text-Colors-Dark-Gray, #6c757d);
    line-height: 1.5;
    background: #f8f9fa;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}

.flow-arrow {
    color: var(--Main-Colors-Main, #2B5631);
    animation: slide-arrow 1.5s infinite;
    display: flex;
    align-items: center;
    margin-top: 28px;
    align-self: flex-start;
}

.flow-arrow svg {
    width: 28px;
    height: 28px;
}

@keyframes slide-arrow {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(6px);
        opacity: 1;
    }
}

/* Card Adjustments */
.card {
    margin-bottom: 1rem;
}

.card-header {
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
}

.card-body {
    padding: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workflow-container {
        padding: 1rem;
    }

    .workflow-stepper {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: -0.5rem 0;
    }

    .pipeline-flow {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    @keyframes slide-arrow {
        0%, 100% {
            transform: rotate(90deg) translateX(0);
        }
        50% {
            transform: rotate(90deg) translateX(6px);
        }
    }

    .action-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
    
    .workflow-header h2 {
        font-size: 1.5rem;
    }
}