/* ==================== REPROGRESS CORPORATE DESIGN ====================
   Druckeditor Pro v4.0 - Angepasst an reprogress.de
   Farben: Türkis #00a99d, Orange #f7941d, Grün #8dc63f
   ========================================================== */

:root {
    /* Reprogress Hauptfarben */
    --rp-primary: #00a99d;
    --rp-primary-dark: #008f85;
    --rp-primary-light: #4dc9c0;
    
    /* Akzentfarben aus dem Logo */
    --rp-orange: #f7941d;
    --rp-green: #8dc63f;
    --rp-blue: #00bcd4;
    
    /* Hintergrund - heller, moderner Look */
    --rp-bg-dark: #1a2a32;
    --rp-bg-panel: #243640;
    --rp-bg-card: #2d4450;
    --rp-bg-light: #f5f7f9;
    
    /* Text */
    --rp-text-primary: #ffffff;
    --rp-text-secondary: #a0b8c4;
    --rp-text-dark: #1a2a32;
    
    /* Weitere */
    --rp-border: #3d5560;
    --rp-success: #8dc63f;
    --rp-warning: #f7941d;
    --rp-error: #e74c3c;
    
    /* Überschreibe Standard-Variablen */
    --primary: var(--rp-primary);
    --primary-dark: var(--rp-primary-dark);
    --secondary: var(--rp-bg-dark);
    --accent: var(--rp-orange);
    --bg-dark: var(--rp-bg-dark);
    --bg-panel: var(--rp-bg-panel);
    --bg-card: var(--rp-bg-card);
    --text-primary: var(--rp-text-primary);
    --text-secondary: var(--rp-text-secondary);
    --border: var(--rp-border);
    --success: var(--rp-success);
    --warning: var(--rp-warning);
    --error: var(--rp-error);
}

/* ==================== HEADER REDESIGN ==================== */
.header {
    background: linear-gradient(135deg, var(--rp-bg-dark) 0%, #0d1a20 100%);
    border-bottom: 2px solid var(--rp-primary);
    padding: 10px 24px;
    height: 64px;
}

.logo {
    gap: 14px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: 0;
    /* Reprogress Windrad als CSS */
    position: relative;
}

.logo-icon::before {
    content: '🌀';
    font-size: 32px;
    filter: hue-rotate(150deg);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--rp-primary);
}

.version-badge {
    background: linear-gradient(135deg, var(--rp-primary) 0%, var(--rp-primary-dark) 100%);
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== WORKFLOW STEPS ==================== */
.workflow-step {
    background: transparent;
    border: 1px solid var(--rp-border);
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
}

.workflow-step:hover {
    border-color: var(--rp-primary);
    background: rgba(0, 169, 157, 0.1);
}

.workflow-step.active {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.4);
}

.workflow-step.completed {
    background: var(--rp-success);
    border-color: var(--rp-success);
}

.step-connector {
    background: linear-gradient(90deg, var(--rp-border) 0%, var(--rp-primary) 50%, var(--rp-border) 100%);
    height: 2px;
    width: 30px;
}

/* ==================== BUTTONS ==================== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rp-primary) 0%, var(--rp-primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 157, 0.5);
}

.btn-secondary {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
}

.btn-secondary:hover {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    color: white;
}

.btn-icon {
    border-radius: 8px;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
}

.btn-icon:hover {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    transform: scale(1.05);
}

/* ==================== LEFT PANEL ==================== */
.left-panel {
    background: var(--rp-bg-panel);
    border-right: 1px solid var(--rp-border);
}

.tabs {
    background: var(--rp-bg-dark);
    padding: 8px;
    gap: 4px;
    display: flex;
}

.tab-btn {
    border-radius: 8px;
    padding: 10px 8px;
    margin: 0;
}

.tab-btn:hover {
    background: var(--rp-bg-card);
}

.tab-btn.active {
    background: var(--rp-primary);
    color: white;
    border-bottom: none;
}

.section-title {
    color: var(--rp-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--rp-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

/* ==================== OBJECT BUTTONS ==================== */
.object-btn {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.object-btn:hover {
    background: linear-gradient(135deg, var(--rp-primary) 0%, var(--rp-primary-dark) 100%);
    border-color: var(--rp-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 157, 0.3);
}

.object-btn-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.object-btn-text {
    font-weight: 500;
}

/* ==================== CANVAS AREA ==================== */
.canvas-area {
    background: linear-gradient(180deg, #0d1a20 0%, var(--rp-bg-dark) 100%);
}

.canvas-toolbar {
    background: var(--rp-bg-panel);
    border-bottom: 1px solid var(--rp-border);
    padding: 10px 20px;
}

.canvas-wrapper {
    background: 
        linear-gradient(45deg, #1a2a32 25%, transparent 25%),
        linear-gradient(-45deg, #1a2a32 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a2a32 75%),
        linear-gradient(-45deg, transparent 75%, #1a2a32 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #152028;
}

#canvas {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.canvas-footer {
    background: var(--rp-bg-panel);
    border-top: 1px solid var(--rp-border);
}

/* ==================== RIGHT PANEL ==================== */
.right-panel {
    background: var(--rp-bg-panel);
    border-left: 1px solid var(--rp-border);
}

/* ==================== QUALITY INDICATOR ==================== */
#qualityIndicator.ok {
    background: linear-gradient(135deg, var(--rp-success) 0%, #6ba32d 100%);
}

#qualityIndicator.medium {
    background: linear-gradient(135deg, var(--rp-warning) 0%, #d97d0d 100%);
}

#qualityIndicator.low {
    background: linear-gradient(135deg, var(--rp-error) 0%, #c0392b 100%);
}

/* ==================== STICKER CATEGORIES ==================== */
.sticker-category {
    border: 1px solid var(--rp-border);
    border-radius: 10px;
    overflow: hidden;
}

.sticker-category-header {
    background: var(--rp-bg-card);
    border-bottom: 1px solid var(--rp-border);
}

.sticker-category-header:hover {
    background: rgba(0, 169, 157, 0.2);
}

.sticker-items {
    background: var(--rp-bg-dark);
}

.sticker-item {
    background: var(--rp-bg-card);
    border-radius: 8px;
}

.sticker-item:hover {
    background: var(--rp-primary);
}

/* ==================== COLOR SCHEMES ==================== */
.color-scheme {
    background: var(--rp-bg-card);
    border: 2px solid var(--rp-border);
    border-radius: 10px;
}

.color-scheme:hover {
    border-color: var(--rp-primary-light);
}

.color-scheme.active {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.2);
}

/* ==================== FORMAT GRID ==================== */
.format-item {
    background: var(--rp-bg-card);
    border: 2px solid var(--rp-border);
    border-radius: 12px;
}

.format-item:hover {
    border-color: var(--rp-primary);
    background: rgba(0, 169, 157, 0.1);
}

.format-item.active {
    border-color: var(--rp-primary);
    background: rgba(0, 169, 157, 0.15);
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.2);
}

/* ==================== MODALS ==================== */
.modal-content {
    background: linear-gradient(180deg, var(--rp-bg-panel) 0%, var(--rp-bg-dark) 100%);
    border: 1px solid var(--rp-border);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
    border-bottom: 1px solid var(--rp-border);
    background: rgba(0, 169, 157, 0.05);
}

.modal-header h3 {
    color: var(--rp-primary);
}

.modal-footer {
    border-top: 1px solid var(--rp-border);
    background: rgba(0, 0, 0, 0.2);
}

/* ==================== INPUTS ==================== */
input[type="text"],
input[type="number"],
select,
textarea {
    background: var(--rp-bg-dark);
    border: 1px solid var(--rp-border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.15);
}

input[type="range"]::-webkit-slider-thumb {
    background: var(--rp-primary);
    box-shadow: 0 2px 6px rgba(0, 169, 157, 0.4);
}

/* ==================== LAYER BUTTONS ==================== */
.layer-btn {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
}

.layer-btn:hover {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar-thumb {
    background: var(--rp-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rp-primary);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast {
    background: var(--rp-bg-card);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast-success {
    border-left: 4px solid var(--rp-success);
}

.toast-error {
    border-left: 4px solid var(--rp-error);
}

.toast-warning {
    border-left: 4px solid var(--rp-warning);
}

.toast-info {
    border-left: 4px solid var(--rp-primary);
}

/* ==================== 3D PREVIEW ==================== */
#threejs-container {
    background: linear-gradient(180deg, var(--rp-bg-dark) 0%, #0d1a20 100%);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
}

.preview-3d-controls {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: 10px;
}

/* ==================== IMAGE EDIT CARDS ==================== */
.image-tool-card {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
}

.image-tool-card:hover {
    border-color: var(--rp-primary);
    background: linear-gradient(135deg, rgba(0, 169, 157, 0.1) 0%, rgba(0, 169, 157, 0.05) 100%);
}

/* ==================== ANIMATIONS ==================== */
@keyframes rpPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 169, 157, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 169, 157, 0); }
}

.btn-primary:focus {
    animation: rpPulse 1.5s ease-in-out infinite;
}

/* ==================== REPROGRESS LOGO SIMULATION ==================== */
.rp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

.rp-logo-icon::before,
.rp-logo-icon::after,
.rp-logo-icon span::before,
.rp-logo-icon span::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 8px;
    border-radius: 4px;
}

.rp-logo-icon::before {
    background: var(--rp-primary);
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-30deg);
}

.rp-logo-icon::after {
    background: var(--rp-orange);
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(30deg);
}

/* ==================== PREMIUM FEEL ==================== */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--rp-primary) 20%, 
        var(--rp-primary) 80%, 
        transparent 100%);
}
