/* app/assets/stylesheets/custom.css */

/* Grundlegende Stile und Reset */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.375rem;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    --sidebar-bg: #1a1d20; /* Solides Anthrazit */
    --main-bg: #f4f7f6;
    --content-bg: #ffffff;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--main-bg);
}

/* Header und Navigation */
header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: white !important;
    margin-left: 1rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Container und Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.execute-job-button {
    min-width: 10rem;

    .execute-job-text {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
    }
}

/* Formulare */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25);
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Tabellen */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

.table td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
}

.table-hover tbody tr:hover {
    background-color: rgba(79, 195, 247, 0.1);
}

/* Listen */
.list-group {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: white;
}

.list-group-item {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: rgba(79, 195, 247, 0.1);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); /* Leicht transparentes Weiß */
    backdrop-filter: blur(10px); /* Schicker Blur-Effekt */
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    z-index: 1050; /* Über anderen Elementen */
}

/* Platzhalter am Ende des Contents, damit die Leiste nichts verdeckt */
.card-body {
    padding-bottom: 80px;
}

.diagram-task-body {
    padding: 1.0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

