* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.workflow-page {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.page-header {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Ninja logo - positioned absolutely on the left */
.page-header::before {
    content: "";
    position: absolute;
    left: 40px;
    width: 200px;
    height: 200px;
    background: url("/images/ninja-logo.png?v=4") center/contain no-repeat;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    z-index: 10;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
    color: #fff;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Progress Indicator */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.7;
}

.progress-step.completed .progress-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.progress-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
}

.progress-step span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
}

.progress-step.active span {
    color: #fff;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

/* Carousel */
.carousel-container {
    position: relative;
    min-height: 500px;
    margin-bottom: 30px;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-description {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #d0d0d0;
    font-size: 1.1rem;
}

.large-input,
.large-select,
.large-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.large-input:focus,
.large-select:focus,
.large-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(30, 30, 30, 0.8);
}

.large-textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.content-preview {
    padding: 20px;
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ccc;
    min-height: 200px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-large {
    width: 100%;
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Navigation */
.carousel-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-btn {
    flex: 1;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(50, 50, 50, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Text Items */
.text-item {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.5) 0%, rgba(40, 40, 40, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.text-item:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.text-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.text-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.text-item-date {
    font-size: 0.85rem;
    color: #999;
}

.text-item-content {
    color: #c0c0c0;
    line-height: 1.5;
    margin-bottom: 15px;
    max-height: 200px;
    overflow: hidden;
}

.text-item-actions {
    display: flex;
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #aaa;
}

.empty-state p {
    color: #777;
}

/* Status Messages */
#generateStatus,
#humanizeStatus,
#saveStatus {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    display: none;
    text-align: center;
}

#generateStatus.success,
#humanizeStatus.success,
#saveStatus.success {
    display: block;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

#generateStatus.error,
#humanizeStatus.error,
#saveStatus.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

#generateStatus.info,
#humanizeStatus.info,
#saveStatus.info {
    display: block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-container {
        padding: 20px 10px;
    }
    
    .progress-step span {
        font-size: 0.75rem;
    }
    
    .progress-line {
        width: 30px;
    }
    
    .slide-content {
        padding: 30px 20px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
}

/* Move navigation buttons up on Step 1 only */
.step-content[data-step="1"] ~ .navigation-buttons {
    margin-top: 40px;
}

/* Reduce space between content and navigation buttons on Step 1 only */

/* Default spacing for all steps */
.carousel-slide .slide-content {
    margin-bottom: 80px;
}

/* Reduce space between content and navigation buttons on Step 1 only */
.carousel-slide[data-slide="1"] .slide-content {
    margin-bottom: 30px;
}

/* Header buttons without glow effect */
.page-header .btn {
    box-shadow: none !important;
}

.page-header .btn:hover {
    box-shadow: none !important;
    transform: none !important;
}

