/* Allgemeine Stile für den Body */
body {
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-rows: 10% 5% 40% 40%;
    grid-template-columns: 50% 50%;
    gap: 10px;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Stile für den Header */
header {
    grid-column: span 2;
    background-color: #3883fa;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    color: #fafafa;
    border: 1px solid black;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
    box-sizing: border-box;
}

.task-item, .file-item, #taskContextMenu, #contextMenu {
    cursor: default; /* Der Cursor bleibt unverändert (normaler Pfeil) */
}

.monospace-button {
   height: 90%; /* Setzt die Höhe des Buttons auf 90% des Containers */
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Ein leichter Schatten für 3D-Effekt */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    
}

.monospace-button:active {
    box-shadow: none; /* Schatten verschwindet beim Klicken */
    transform: translateY(2px); /* Leichter Druckeffekt nach unten */
}

.monospace-button:nth-child(1) {
    background-image: url('index.png');
}

.monospace-button:nth-child(2) {
    background-image: url('index_list.png');
}

.monospace-button:nth-child(3) {
    background-image: url('index_json.png');
}

.monospace-button:nth-child(4) {
    background-image: url('index_bpmn.png');
}

.monospace-button:nth-child(5) {
    background-image: url('index_workspace.png');
}

#workspace .highlighted-button {
    font-weight: bold;
    background-color: #ffd700; /* Goldene Hintergrundfarbe */
    color: #000; /* Schwarzer Text */
}


#ro {
    display: grid;
    grid-template-rows: 100;
    grid-template-columns: 50% 50%;
    gap: 10px;
}

/* Stile für den Textbereich */
#text-area {
	display: flex;
    background-color: #fafafa;
    align-items: center;
    padding: 5px;
    font-size: 18px;
    border: 1px solid #3883fa;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
    overflow: auto;
}

/* Stile für den Textbereich */
#style-area {

    background-color: #fafafa;

    padding: 5px;
    font-size: 18px;
    border: 1px solid #3883fa;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}

#style-area {
	padding: 5px 15px 0 0;
    text-align: right;
}

/* Gemeinsame Stile für Container */
#workspace,
#list,
#bpmn,
#json,
#docs {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
    background-color: #e8e8e8;
}

/* Individuelle Stile für #workspace und #list */
#workspace,
#list,
#docs {
    padding: 10px;
    overflow: auto; /* Scrollen erlauben */
}

/* Spezifische Stile für #bpmn */
#bpmn {
    padding: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #3883fa;
    cursor: grab;
}

#bpmn:active {
      cursor: grabbing; /* Geschlossene Hand beim Klicken */
    }

#bpmn .bjs-powered-by {
    display: none;
}

/* Spezifische Stile für #json */
#json {
    margin: 0;
    padding: 0 10px 0 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    box-sizing: border-box;
}

/* Stile für Aufgabenliste */
.task-item {
    margin-bottom: 10px;
}

.task-item.completed {
    text-decoration: line-through;
    color: lightgray;
}

/* Hervorhebung */
.highlighted {
    stroke: #3883fa !important;
    stroke-width: 4px !important;
}


/* Optisch ansprechendes Styling für Formularelemente ohne Größenänderung */

#workspace label {
    font-weight: bold;
    margin-top: 10px;

}

/* Allgemeine Stile für Eingabefelder und Textareas */
#workspace input[type="text"],
#workspace input[type="number"],
#workspace input[type="email"],
#workspace input[type="password"],
#workspace input[type="file"],
#workspace input[type="date"],
#workspace select,
#workspace textarea {
    padding: 8px;
    border: 1px solid #ccc;
    
    font-size: inherit;
    font-family: inherit;
    background-color: #fff;

    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Schatten */
    box-sizing: border-box; /* Rahmen in die Gesamtgröße einbeziehen */
}

/* Fokuszustand für Eingabefelder und Textareas */
#workspace input[type="text"]:focus,
#workspace input[type="number"]:focus,
#workspace input[type="email"]:focus,
#workspace input[type="password"]:focus,
#workspace input[type="file"]:focus,
#workspace input[type="date"]:focus,
#workspace select:focus,
#workspace textarea:focus {
    border-color: #3883fa;
    outline: none;
}

/* Styling für das select-Element */
#workspace select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns="http://www.w3.org/2000/svg"%20viewBox="0%200%204%205"><path%20fill="%233883fa"%20d="M2%205L0%200h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
    padding-right: 30px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Styling für option-Elemente */
#workspace option {
    color: #333;
}

/* Styling für input[type="date"] */
#workspace input[type="date"] {
    color: #333;
}

/* Aktualisiertes Styling für Buttons */
#workspace button {
    padding: 8px 16px;
    background-color: #3883fa;
    color: #fff;
    border: 1px solid #000; /* Dünner schwarzer Rand */
    
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Schatten */
    box-sizing: border-box; /* Rahmen in die Gesamtgröße einbeziehen */
}

#workspace button:hover {
    background-color: #2c6fc0;
}

#workspace button:active {
    background-color: #1a5ba0;
}

/* Styling für Labels */
#workspace label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* Styling für Checkboxen und Radios */
#workspace input[type="checkbox"],
#workspace input[type="radio"] {
    margin-right: 5px;
}

/* Placeholder-Farbe */
#workspace input::placeholder,
#workspace textarea::placeholder {
    color: #aaa;
}

/* Optional: Margin zwischen Formularelementen */
.form-element {
    margin-bottom: 15px;
}

/* Responsive Anpassungen, falls erforderlich */
@media (max-width: 600px) {
    #workspace input[type="text"],
    #workspace input[type="number"],
    #workspace input[type="email"],
    #workspace input[type="password"],
    #workspace input[type="file"],
    #workspace input[type="date"],
    #workspace select,
    #workspace textarea,
    #workspace button {
        font-size: 14px;
    }
}
