/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #ffffff;
    color: #666666;
}

/* Controls Section */
.controls {
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #006ba6;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    margin: 5px 0px 5px 0;
    font-size: 16px;
    color: #DE5C8E;
}

.input-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #006ba6;
    margin: 0 0 30px 0;
}

.input-grid {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.input-pair {
    display: inline-block;
    vertical-align: top;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #006ba6;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.input-pair label {
    margin-top: 5px;
    display: block;
    margin-bottom: 10px;
}

.input-pair .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-pair .row label {
    flex: 1;
    margin-right: 10px;
    color: #006ba6;
}

.input-pair .row input,
.input-pair .row select {
    flex: 1;
    padding: 5px;
    max-width: 150px;
    box-sizing: border-box;
    border: 1px solid #006ba6;
    border-radius: 3px;
}

input[type="number"] {
    padding: 5px;
    margin: 0 10px 5px 0;
    border: 1px solid #006ba6;
    border-radius: 4px;
}

/* Output Section */
.output {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #006ba6;
    border-radius: 5px;
}

.row-container {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.row-label {
    font-weight: bold;
    margin-right: 10px;
    width: 30px;
    text-align: right;
    color: #666;
}

.column-labels {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.column-label {
    width: 75px;
    height: 20px;
    margin: 2px;
    text-align: center;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    position: relative;
    border-radius: 3px;
    color: #666;
    transition: transform 0.2s ease, background-color 0.2s ease, border 0.2s ease;
}

.column-label:active {
    cursor: grabbing;
}

.column-label.drag-over {
    border-left: 2px solid #DE5C8E;
    background-color: #DE5C8E;
    transition: border 0.2s ease, background-color 0.2s ease;
}

.color-box {
    width: 80px;
    height: 80px;
    margin: 0;
    border: 1px solid #fff;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-box:hover {
    border-color: #DE5C8E;
}

/* HTML Output Section */
.html-output {
    width: 100%;
    box-sizing: border-box;
    font-family: monospace;
    white-space: pre-wrap;
    padding: 10px;
    border: 1px solid #006ba6;
    border-radius: 5px;
    background-color: #ffffff;
    resize: vertical;
}

.html-output[readonly] {
    background-color: #e9e9e9;
}

/* Saved Inputs Section */
#savedInputs {
    width: 100%;
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #006ba6;
    border-radius: 5px;
    resize: vertical;
    background-color: #ffffff;
}

#savedInputs[readonly] {
    background-color: #e9e9e9;
}

#savedInputs:not([readonly]) {
    background-color: #ffffff;
}

/* Buttons Section */
.buttons {
    margin-top: 10px;
}

.buttons button {
    margin-right: 5px;
    padding: 8px 16px;
    border: none;
    background-color: #006ba6;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.buttons button:hover {
    background-color: #DE5C8E;
}

.tool-button {
        display:inline-block;
        padding:15px 30px;
        border-radius:5px;
        text-decoration:none;
        background:#DE5C8E;
        color:#fff !important;
        transition: background-color 0.3s ease;
    }
	
.tool-button:hover {
        background:#006ba6;
		text-decoration:none !important;
}


/* Textareas */
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #006ba6;
    border-radius: 5px;
    background-color: #ffffff;
    resize: vertical;
}

/* Gradient Label */
.gradient-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #006ba6;
}

/* Dragging State */
.dragging {
    opacity: 0.5;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.outputbox {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px;
    box-sizing: border-box;
}

.saved-inputs-container,
.html-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #006ba6;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.saved-inputs-container textarea,
.html-container textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #006ba6;
    border-radius: 3px;
    flex-grow: 1;
    background-color: #ffffff;
    resize: vertical;
}

/* Stil für die Pickr-Buttons */
.pcr-button {
    margin: 10px;
    border: 1px solid #006ba6 !important;
}

/* Optional: Anpassung der Eingabefelder und Container */
.input-pair {
    margin-bottom: 15px;
}

.row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.row input, .row select {
    flex: 1;
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #006ba6;
    border-radius: 3px;
}

.buttons {
    margin-top: 20px;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .input-pair {

    }

    .input-pair .row label {
        flex: 1;
        margin-right: 5px;
    }

    .input-pair .row input,
    .input-pair .row select {
        max-width: 120px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .controls {
        padding: 10px;
    }

    .input-pair {

    }

    .input-pair .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-pair .row label {
        width: 100%;
        margin-bottom: 5px;
    }

    .input-pair .row input,
    .input-pair .row select {
        max-width: none;
        width: 100%;
        border: 1px solid #006ba6;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        width: 100%;
        margin-bottom: 5px;
    }

    .output {
        overflow-x: auto;
    }

    .column-label {
        font-size: 12px;
    }

    .row-label {
        font-size: 12px;
        padding-right: 5px;
    }

    .color-box {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .lightbox-gallery {
        grid-template-columns: 1fr;
    }

    .prev, .next {
        font-size: 30px;
        padding: 5px;
    }

    .close-btn {
        font-size: 25px;
        padding: 3px 7px;
    }

    .lightbox-description {
        font-size: 14px;
    }
}
