body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    margin: 0;
    color: #fff;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e94560;
    padding: 2em;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.nav-back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 52, 96, 0.5);
    color: #0ff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #0ff;
}

.nav-back:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #e94560;
    text-shadow: 0 0 20px #e94560, 0 0 40px #e94560;
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #e94560, 0 0 40px #e94560; }
    to { text-shadow: 0 0 30px #e94560, 0 0 60px #e94560, 0 0 80px #e94560; }
}

.subtitle {
    font-size: 1.2rem;
    color: #0ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #0ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #e94560;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

.container {
    max-width: 900px;
    margin: 2em auto;
    padding: 2em;
}

.section {
    margin-bottom: 0;
    padding: 1.5em;
    background: rgba(15, 52, 96, 0.3);
    border-radius: 0;
    border: none;
    border-bottom: 2px solid rgba(233, 69, 96, 0.3);
    box-shadow: none;
    transition: all 0.3s ease;
}

.section:last-child {
    border-bottom: none;
}

/* Container styling for result sections */
#resultSections {
    background: rgba(15, 52, 96, 0.3);
    border-radius: 12px;
    border: 2px solid #e94560;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
    overflow: hidden;
    margin-bottom: 2.5em;
}

#resultSections .section {
    background: transparent;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 0;
}

#resultSections .section:last-child {
    border-bottom: none;
}

/* Keep individual sections outside resultSections with original styling */
.section:not(#resultSections .section) {
    margin-bottom: 2.5em;
    padding: 1.5em;
    background: rgba(15, 52, 96, 0.3);
    border-radius: 12px;
    border: 2px solid #e94560;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
}

.section h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: #0ff;
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section h2 .arrow {
    margin-left: auto;
    font-size: 1em;
    transition: transform 0.2s;
    display: inline-block;
    transform: rotate(0deg);
    color: #e94560;
}

.collapsed .section h2 .arrow {
    transform: rotate(180deg);
}

input[type='file'], select, button {
    font-size: 1em;
    margin: 0.5em 0;
}

input[type='file'], select {
    background: rgba(15, 52, 96, 0.5);
    border: 1px solid #0ff;
    color: #fff;
    padding: 0.5em;
    border-radius: 4px;
}

input[type='file']:focus, select:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 5px rgba(233, 69, 96, 0.5);
}

input[type='checkbox'] {
    accent-color: #e94560;
}

label {
    color: #0ff;
    font-weight: 600;
}

button {
    background: linear-gradient(45deg, #e94560, #0ff);
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1.5em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:disabled {
    background: rgba(233, 69, 96, 0.3);
    cursor: not-allowed;
    color: #666;
}

button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.5);
}

#progressBar {
    background: rgba(15, 52, 96, 0.8);
    border-radius: 12px;
    height: 8px;
    margin: 1em 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#progressBarInner {
    background: linear-gradient(90deg, #e94560 0%, #0ff 100%);
    height: 100%;
    transition: width 0.4s;
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.6);
    border-radius: 12px;
}

ol, ul {
    margin-left: 1.5em;
}

.dropzone {
    border: 2px dashed #0ff;
    border-radius: 10px;
    background: rgba(0, 255, 255, 0.1);
    padding: 2em;
    text-align: center;
    color: #0ff;
    font-weight: 600;
    margin-bottom: 1em;
    transition: all 0.3s ease;
    position: relative;
}

.dropzone:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
}

.dropzone.dragover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
    color: #e94560;
}

.dropzone.disabled {
    background: rgba(15, 52, 96, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
}

.dropzone.disabled:hover {
    background: rgba(15, 52, 96, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.4);
    transform: none;
}

.collapse-content {
    display: block;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.collapsed .collapse-content {
    display: none;
}

#progressText {
    text-align: center;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #0ff;
    display: none;
    font-family: 'JetBrains Mono', monospace;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group:first-child {
    display: none; /* Hide file input since we use dropzone */
}

/* Tab Styles */
.tab-container {
    display: flex;
    margin-bottom: 1em;
    border-bottom: 2px solid rgba(233, 69, 96, 0.3);
}

.tab-button {
    background: rgba(15, 52, 96, 0.8);
    color: #0ff;
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 0.7em 1.5em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5em;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    background: linear-gradient(45deg, #e94560, #0ff);
    color: #1a1a2e;
    border-bottom-color: #e94560;
}

.tab-button:hover:not(.active) {
    background: rgba(233, 69, 96, 0.6);
    transform: translateY(-2px);
}

.tab-button.disabled {
    background: rgba(15, 52, 96, 0.3);
    color: rgba(0, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
    border-color: rgba(0, 255, 255, 0.2);
}

.tab-button.disabled:hover {
    background: rgba(15, 52, 96, 0.3);
    transform: none;
    box-shadow: none;
}

.tab-button.disabled::after {
    content: "🔒";
    margin-left: 0.5em;
    font-size: 0.8em;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Drag and Drop Styles */
.section-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em;
    margin-bottom: 0.5em;
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid #0ff;
    border-radius: 6px;
    cursor: move;
    transition: all 0.3s ease;
}

.section-item:hover {
    background: rgba(15, 52, 96, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.2);
}

.section-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.section-item.drag-over {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.2);
}

.section-item.disabled {
    opacity: 0.3;
    background: rgba(15, 52, 96, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    cursor: not-allowed;
}

.section-item.disabled:hover {
    transform: none;
    box-shadow: none;
    background: rgba(15, 52, 96, 0.1);
}

.section-item.disabled .drag-handle {
    color: rgba(0, 255, 255, 0.3);
    cursor: not-allowed;
}

.section-item.disabled .drag-handle:hover {
    color: rgba(0, 255, 255, 0.3);
}

.section-item.disabled label {
    color: rgba(255, 255, 255, 0.5);
}

.section-item.disabled select {
    opacity: 0.5;
    pointer-events: none;
}

.drag-handle {
    color: #0ff;
    font-size: 1.2em;
    cursor: grab;
    user-select: none;
    margin-right: 0.5em;
    font-weight: bold;
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #e94560;
}

.drag-handle:active {
    cursor: grabbing;
}

.section-item label {
    flex-grow: 1;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.section-item select {
    margin: 0;
    margin-left: auto;
    transition: opacity 0.3s ease;
}

/* Info Section */
.info-section {
    background: rgba(15, 52, 96, 0.3);
    border-radius: 12px;
    border: 2px solid #e94560;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
    margin: 0 auto 2.5rem;
    padding: 2rem;
    max-width: 900px;
    box-sizing: border-box;
}

.info-content h2 {
    color: #0ff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-content p {
    color: #ccc;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(26, 26, 46, 0.7);
    border-color: #0ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
}

.step-number {
    background: linear-gradient(135deg, #e94560, #ff4757);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.step-content strong {
    color: #0ff;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.feature:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 1.3rem;
    color: #e94560;
    flex-shrink: 0;
}

.feature span {
    color: #fff;
    font-weight: 500;
}

/* Responsive adjustments for info section */
@media (max-width: 768px) {
    .info-section {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .info-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .container { padding: 1em; }
    .section { padding: 1em; }
    .dropzone { padding: 1em; }
    .nav-back {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}
