/* Všechny styly jsou obáleny v .in-editor pro izolaci od zbytku Shoptetu */
/* Všechny třídy mají prefix llg- (lifelike-generator) pro unikátnost */



.in-editor {
    font-family: 'Roboto', Arial, sans-serif;
    color: #51282b;
    line-height: 1.6;
}

.in-editor .llg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.in-editor .llg-header {
    background: #51282b;
    color: #fdc50e;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.in-editor .llg-header h1 {
    font-size: 32px;
    font-weight: bold;
}

.in-editor .llg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.in-editor .llg-tab {
    background: white;
    border: 2px solid #51282b;
    color: #51282b;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.in-editor .llg-tab:hover {
    background: #fdc50e;
}

.in-editor .llg-tab.llg-active {
    background: #ff7504;
    color: white;
    border-color: #ff7504;
}

.in-editor .llg-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 968px) {
    .in-editor .llg-main-content {
        grid-template-columns: 1fr;
    }
}

.in-editor .llg-panel {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(81, 40, 43, 0.1);
}

.in-editor .llg-panel h2 {
    color: #51282b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff7504;
    font-size: 24px;
}

.in-editor .llg-form-group {
    margin-bottom: 20px;
}

.in-editor .llg-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #51282b;
}

.in-editor .llg-form-group input[type="text"],
.in-editor .llg-form-group input[type="url"],
.in-editor .llg-form-group select,
.in-editor .llg-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #51282b;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.in-editor .llg-form-group input:focus,
.in-editor .llg-form-group select:focus,
.in-editor .llg-form-group textarea:focus {
    outline: none;
    border-color: #ff7504;
}

.in-editor .llg-wysiwyg-editor {
    border: 2px solid #51282b;
    border-radius: 6px;
    overflow: hidden;
}

.in-editor .llg-wysiwyg-toolbar {
    background: #f0f0f0;
    padding: 8px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    border-bottom: 2px solid #51282b;
}

.in-editor .llg-wysiwyg-toolbar button {
    background: white;
    border: 1px solid #51282b;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s;
}

.in-editor .llg-wysiwyg-toolbar button:hover {
    background: #fdc50e;
}

.in-editor .llg-wysiwyg-content {
    padding: 10px;
    min-height: 150px;
    background: white;
    outline: none;
}

.in-editor .llg-wysiwyg-content:focus {
    background: #fffef8;
}

.in-editor .llg-repeater {
    border: 2px solid #51282b;
    padding: 15px;
    border-radius: 6px;
}

.in-editor .llg-repeater-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    position: relative;
}

.in-editor .llg-repeater-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.in-editor .llg-repeater-item-title {
    font-weight: bold;
    color: #51282b;
}

.in-editor .llg-btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.in-editor .llg-btn-remove:hover {
    background: #c82333;
}

.in-editor .llg-btn-move {
    background: #51282b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.in-editor .llg-btn-move:hover {
    background: #3d1e20;
}

.in-editor .llg-btn-move:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.in-editor .llg-repeater-item-actions {
    display: flex;
    gap: 5px;
}

.in-editor .llg-btn-add {
    background: #ff7504;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.in-editor .llg-btn-add:hover {
    background: #e66803;
}

.in-editor .llg-enum-select-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.in-editor .llg-enum-select-wrapper select {
    flex: 1;
}

.in-editor .llg-enum-select-wrapper input[type="text"] {
    flex: 1;
    display: none;
}

.in-editor .llg-enum-select-wrapper.llg-custom-mode select {
    display: none;
}

.in-editor .llg-enum-select-wrapper.llg-custom-mode input[type="text"] {
    display: block;
}

.in-editor .llg-btn-toggle-custom {
    background: #51282b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
}

.in-editor .llg-btn-toggle-custom:hover {
    background: #3d1e20;
}

.in-editor .llg-output-section {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.in-editor .llg-output-preview {
    background: #f9f9f9;
    padding: 15px;
    border: 2px solid #51282b;
    border-radius: 6px;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.in-editor .llg-output-actions {
    display: flex;
    gap: 10px;
}

.in-editor .llg-btn-primary {
    background: #ff7504;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    flex: 1;
}

.in-editor .llg-btn-primary:hover {
    background: #e66803;
}

.in-editor .llg-btn-secondary {
    background: #51282b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    flex: 1;
}

.in-editor .llg-btn-secondary:hover {
    background: #3d1e20;
}

.in-editor .llg-tab-content {
    display: none;
}

.in-editor .llg-tab-content.llg-active {
    display: block;
}

.in-editor .llg-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: llgSlideIn 0.3s ease;
}

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

.in-editor .llg-form-group small {
    display: block;
    color: #666;
    margin-top: 5px;
    font-size: 12px;
}
