/*
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

.header {
    background-color: #1c3373;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-container {
    display: flex;
}

.sidebar {
    width: 220px;
    background-color: #eaeaea;
    padding: 20px;
    height: calc(100vh - 50px); /* subtract header height */
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #1c3373;
    font-weight: bold;
}

.content {
    flex: 1;
    padding: 20px;
}


.file-group {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.file-group-content label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.file-group input[type="text"],
.file-group input[type="file"] {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
}

.file-list {
  margin-top: 0.5em;
}

.file-entry {
  display: flex;
  align-items: center;
  gap: 0.25em;
  margin-bottom: 0.25em;
}

.file-entry span {
  flex: 1;
}

.file-entry button {
  margin-left: 0.5em;
}


.remove-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.remove-button:hover {
    background-color: #cc0000;
}

.rule-entry {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.rule-input {
    flex: 1;
}

.btn-delete-rule {
    margin-left: 8px;
    background-color: #ff4d4d;
    color: white;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#generate-model-status * {
    margin: 1em auto;
}