:root {
    --primary-color: #a3d10b;
    --secondary-color: #6c757d;
}

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

html, body {
    font-family: 'Roboto', sans-serif;
    background: #f2f2f2;
}

body {
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333333;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    color: white;
}

.logo img {
    height: 40px;
}

img.header-icon {
    height: 20px;
    margin-right: 5px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    height: 40px;
    font-size: 14px;
    padding: 1rem;
    border-radius: 5px;
}

.header-nav a:first-of-type img {
    filter: brightness(0) invert(1);
}

.header-nav a:first-of-type:hover {
    background-color: #f1f1f1;
}

.header-nav a:first-of-type:hover img {
    filter: none;
}

.header-nav a:hover {
    background-color: #505050;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 800px;
}

.card {
    width: 100%;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.keyword-list li {
    color: black;
    font-size: 14px;
    padding: 10px 10px;
    margin-top: 10px;
    background: rgba(163, 209, 11, 0.2);
    width: fit-content;
    border-radius: 10px;
    list-style: none;
}

textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 14px;
    resize: none;
}

textarea[type="text"]::placeholder {
    color: gray;
}

select, input {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: var(--primary-color);
    color: white;
    padding: 0.65rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20pX;
}

button:hover {
    background: #a1cd0c;
}

label {
    font-size: 14px;
}

h1 {
    /*color: var(--primary-color);*/
    color: #b8b8b8;
    margin: 0 0 15px 0;
    padding-left: 15px;
}

h2 {
    font-size: 20px;
    font-weight: normal;
    margin: 10px 0;
}

h3 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 10px;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}

.drop-zone:hover {
    background-color: white;
    opacity: 0.5;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.preview {
    position: relative;
    margin: 5px;
}

.preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
}

.remove-btn {
    position: absolute;
    top: -30px;
    right: 5px;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 20px;
    background: none;
}

.remove-btn:hover {
    color: var(--primary-color);
    background: none;
}

.edit {
    width: 100%;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.options-body {
    display: flex;
}

.options-navigation {
    height: 100vh;
    width: 10%;
    background-color: #333333;
}

.options-view {
    height: 100vh;
    width: 90%;
    background-color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td, th {
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: top;
}

img {
    max-width: 100px;
    max-height: 100px;
    height: auto;
    width: auto;
}

textarea {
    width: 100%;
}

input[type="text"] {
    width: 100%;
}

form {
    width: 100%;
}


/* Wizard */
.wizard {
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 30px;
}

.wizard-steps {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.wizard-steps li {
    position: relative;
    color: var(--secondary-color);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

.wizard-label,
.wizard-link {
    background: transparent;
    border: 0;
    color: var(--secondary-color);
    padding: 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wizard-link:hover {
    text-decoration: underline;
}

/* Farben: grün für Fortschritt/Aktuell, grau für Zukunft */
.wizard-steps li.done .wizard-label,
.wizard-steps li.done .wizard-link{
    color: var(--primary-color);
}

.wizard-steps li.current .wizard-label {
font-weight: bold;
}

/* Trenner als Gedankenstrich; grün bis zum aktuellen, danach grau */
.wizard-steps li:not(:last-of-type)::after {
    content: '';
    display: inline-block;
    margin: 0 10px;
    height: 2px;
    background-color: #c5c5c5;
    width: 25px;
    border-radius: 3px;

}

.wizard-steps li:last-of-type::after {
    content: '✔';
    display: inline-block;
    color: var(--primary-color);
    font-size: 25px;
    position: absolute;
    right: -30px;
}

.wizard-steps li.done::after{
    background-color: var(--primary-color);
}

.wizard-steps li:last-child::after {
    content: '';
    margin: 0;
}

.hidden {
    display: none !important;
}

.step-preview{
    .container{
        max-width: 100%;
        padding: 0 15px;
    }
}
.no-margin{
    margin: 0;
}

.pull-right{
    float: right;
}


/* Disabled button state for better UX: show dimmed, non-interactive look */
button:disabled {
    background: #9e9e9e !important; /* override inline colors (e.g., upload button) */
    color: #ffffff;
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(40%);
    box-shadow: none;
}
button:disabled:hover {
    background: #9e9e9e !important; /* keep same color on hover when disabled */
}


/* Inline loading spinner for status text (used in analyze.php) */
.inline-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3b47b8; /* match progress bar color */
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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