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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Kompaktes Layout */
.compact-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
}

/* Hauptbereich */
.main-section {
    width: 100%;
    position: relative;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.header-bar h1 {
    font-size: 1.5em;
    margin: 0;
}

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

.btn-icon {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.btn-icon.btn-primary {
    background: rgba(255,255,255,0.9);
}

#canvas-container {
    width: 100%;
    height: 500px;
    background: #1a1a2e;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.view-controls, .zoom-controls {
    display: flex;
    gap: 5px;
}

.view-btn-small {
    padding: 6px 12px;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s ease;
}

.view-btn-small:hover, .view-btn-small.active {
    background: #667eea;
    color: white;
}

.stats-inline {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.stat-compact span:first-child {
    font-size: 1.5em;
}

.stat-compact span:last-child {
    font-weight: bold;
    color: #667eea;
}

/* Sidebar */
.sidebar-compact {
    width: 100%;
    background: #f8f9fa;
    border-top: 2px solid #667eea;
}

.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.package-list-compact, .loaded-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9em;
}

.package-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.package-item.selected {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
}

.package-item.placed {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

.package-item strong {
    display: block;
    margin-bottom: 4px;
}

.package-item small {
    display: block;
    opacity: 0.9;
    font-size: 0.85em;
}

.loaded-item {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
    font-size: 0.85em;
    cursor: pointer;
}

.loaded-item:hover {
    background: #c8e6c9;
}

.loaded-item strong {
    display: block;
    color: #2e7d32;
    margin-bottom: 3px;
}

.loaded-item small {
    display: block;
    font-size: 0.8em;
    color: #666;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    margin-bottom: 10px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e0e0e0;
    color: #333;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

body.embedded .header-bar {
    display: none;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification {
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .header-bar h1 {
        font-size: 1.2em;
    }
    
    #canvas-container {
        height: 400px;
    }
    
    .stats-inline {
        flex-wrap: wrap;
    }
    
    .controls-bar {
        justify-content: center;
    }
}
