/* ProcessGAN Tool Styles */
.processgan-container {
    padding: 20px;
    background: #101629;
    border-radius: 15px;
    border: 1px solid #252d44;
}

.processgan-header {
    margin-bottom: 25px;
    text-align: center;
}

.processgan-header h3 {
    color: #d4e2f0;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.processgan-info .info-text {
    color: #e8eaf0;
    font-size: 0.95rem;
}

.processgan-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.processgan-stats .stat-card {
    background: #0a0e27;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #252d44;
}

.processgan-stats .stat-card h4 {
    color: #c5d0dd;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.processgan-stats .stat-value {
    color: #7eb3d9;
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.processgan-stats .stat-label {
    color: #e8eaf0;
    font-size: 0.8rem;
}

.processgan-controls {
    margin-bottom: 25px;
}

.control-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary, .btn-outline {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1e3a5f;
    color: #c9ddf5;
}

.btn-primary:hover:not(:disabled) {
    background: #2a4a75;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #7a8399;
    color: #c5d0dd;
    cursor: not-allowed;
}

.btn-secondary {
    background: #2d5f5d;
    color: #d4f1ea;
    border: 1px solid #2d5f5d;
}

.btn-secondary:hover:not(:disabled) {
    background: #3a7370;
    transform: translateY(-2px);
}

.btn-secondary:disabled {
    background: #151b30;
    color: #95a5ba;
    border-color: #252d44;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: #e8eaf0;
    border: 1px solid #7a8399;
}

.btn-outline:hover {
    background: #151b30;
    border-color: #e8eaf0;
}

.training-progress {
    background: #0a0e27;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #252d44;
}

.training-progress h4 {
    color: #d4e2f0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.progress-bar {
    background: #151b30;
    border-radius: 8px;
    height: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    background: #4a90e2;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 8px;
}

.progress-text {
    color: #e8eaf0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.loss-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.loss-item {
    background: #101629;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #c5d0dd;
}

.synthetic-results {
    background: #0a0e27;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #252d44;
}

.synthetic-results h4 {
    color: #6cd89d;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.summary-stat {
    text-align: center;
    background: #101629;
    padding: 12px;
    border-radius: 8px;
}

.summary-stat .stat-value {
    color: #6cd89d;
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
}

.summary-stat .stat-label {
    color: #c5d0dd;
    font-size: 0.8rem;
}

.traces-preview h5 {
    color: #e8eaf0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.trace-item {
    background: #101629;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #4a90e2;
}

.trace-sequence {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-tag {
    background: #1a2d4a;
    color: #7eb3d9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #3d5a80;
}

.export-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.more-traces {
    color: #c5d0dd;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

/* Loading overlay for ProcessGAN */
#processganLoading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0e27;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 1000;
}

#processganLoading p {
    color: #e8eaf0;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Responsive design for ProcessGAN */
@media (max-width: 768px) {
    .processgan-stats {
        grid-template-columns: 1fr;
    }

    .control-group {
        flex-direction: column;
    }

    .loss-display {
        grid-template-columns: 1fr;
    }

    .export-controls {
        flex-direction: column;
    }

    .trace-sequence {
        flex-direction: column;
    }
}
