/* CMYK ICC Profil-Editor Stylesheet */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--lmb-bg-dark);
    color: var(--lmb-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.app-navbar {
    padding: 1rem 0;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-navbar-inner {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--lmb-text-main);
    text-decoration: none;
}

.app-navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lmb-bg-surface);
    padding: 2px;
}

/* Loading Overlay with Progress Bar */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-card {
    background: var(--lmb-bg-surface);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--lmb-radius-md);
    padding: 2.25rem 2.5rem;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.loading-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--lmb-text-main);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(10, 15, 26, 0.8);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lmb-primary), #8B5CF6, #10B981);
    border-radius: 100px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--lmb-text-muted);
}

/* Main Layout */
.main-container {
    width: 92%;
    max-width: 1280px;
    margin: 2rem auto 4rem;
    flex: 1;
}

.hero-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--lmb-text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Dropzone (Dynamisch: Initial gross, nach Upload kompakt) */
.upload-dropzone {
    background: var(--lmb-bg-surface);
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: var(--lmb-radius-md);
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--lmb-primary);
    background: var(--lmb-bg-surface-hover);
    transform: translateY(-2px);
}

.upload-dropzone.compact-state {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 1.5rem;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 15, 26, 0.6);
}

.upload-dropzone.compact-state .upload-icon {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.upload-dropzone.compact-state .upload-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
}

.upload-dropzone.compact-state .upload-hint {
    font-size: 0.8rem;
    color: var(--lmb-primary-light);
}

.upload-icon {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.upload-hint {
    color: var(--lmb-text-muted);
    font-size: 0.9rem;
}

/* Editor Workspace Grid */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 960px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

.editor-card {
    background: var(--lmb-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--lmb-radius-md);
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lmb-text-muted);
    margin-bottom: 0.4rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--lmb-text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--lmb-primary);
}

/* TAC & GCR Control Boxes */
.tac-box, .gcr-box {
    background: rgba(10, 15, 26, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.tac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tac-value-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Sliders Grid */
.channel-sliders {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.channel-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.badge-c { background: #009EE3; }
.badge-m { background: #E5007D; }
.badge-y { background: #F39200; color: #000; }
.badge-k { background: #1D1D1B; border: 1px solid #444; }

.slider-input {
    flex: 1;
    accent-color: var(--lmb-primary);
}

.slider-val {
    width: 48px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

/* Curve Preview Canvas */
.canvas-wrapper {
    width: 100%;
    height: 240px;
    background: rgba(10, 15, 26, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Action Bar */
.action-bar {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
