@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Master Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: whitesmoke !important;
    color: #607448 !important;
}

.header-image {
    max-width: 200px;
    height: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 4000;
    background-color: #E2E4E0 !important;
}


.modal {
    z-index: 5000 !important;
  }
  .modal-backdrop {
    z-index: 4999 !important;
  }

.form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.form-container:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.error-message {
    margin-bottom: 20px;
}

h2.text-primary,
h3.text-secondary {
    color: #000000 !important;
}

.btn-primary {
    color: white !important;
    background-color: #607448 !important;
    border-color: #E2E4E0 !important;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #909090 !important;
    border-color: #909090 !important;
    transform: scale(1.05);
}

h6 {
    border: 1px solid #E2E4E0;
    color: #000000;
    background-color: lightgrey;
    padding: 40px;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

label {
    font-weight: bold;
}

input.form-control {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #607448;
}

input.form-control:focus {
    border-color: #607448;
    box-shadow: 0 0 5px rgba(27, 46, 73, 0.5);
}

.fa-check,
.fa-times {
    margin-left: 10px;
}

.requirement {
    font-size: 0.9rem;
}

/* Zusätzliche/Ergänzende Styles */
.dashboard-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logout-button {
    width: 50%;
    color: black;
    background-color: #607448 !important;
}

.btn.btn-outline-light {
    border: 1px solid black !important;
    color: black !important;
}

.button {
    width: 100%;
    margin: 10px 0;
}

.alert-blink {
    animation: blink 1s linear infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.alert-link-hover:hover .alert {
    background-color: #E2E4E0 !important;
    color: white !important;
    cursor: pointer;
}

.alert-kitt {
    position: relative;
    color: #fff;
    background: lightcoral;
    background-size: 200% 100%;
    animation: kitt-sweep 2s infinite alternate ease-in-out;
    border: 2px solid lightcoral;
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    color: #E2E4E0;
    font-size: 24px;
    text-align: center;
    padding-top: 20%;
    z-index: 4000;
}

.custom-3w-btn,
.custom-3w-btn2,
.custom-3w-btn3 {
    color: white !important;
    background-color: #607448 !important;
    border-color: #E2E4E0 !important;
    border-radius: 10px;
    padding: 10px 20px;
}

.custom-3w-btn {
    margin-bottom: 20px !important;
}

.custom-3w-btn:hover {
    background-color: #909090 !important;
    border-color: #909090 !important;
    transform: scale(1.05);
}

.table thead.table-primary th,
.table thead th {
    background-color: #E2E4E0 !important;
    color: white !important;
}

.table-responsive {
    margin-top: 30px;
}

.status-label.text-success {
    color: green;
}

.status-label.text-danger {
    color: red;
}

.text-warning_1 {
    color: green !important;
    font-weight: 900;
}

.status-messages p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.info-border {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
    margin-top: 20px;
}

.custom-info-btn {
    display: inline-flex;
    align-items: center;
    border: 2px solid #607448;
    background-color: #607448;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.custom-info-btn:hover {
    background-color: #E2E4E0;
    border-color: #E2E4E0;
    color: black;
}

.custom-info-btn .info-text {
    font-size: 1.25rem;
    margin: 0;
}

.custom-info-btn i {
    color: #ffffff;
}

.custom-info-btn:focus {
    box-shadow: none;
    outline: none;
}

.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    margin-top: 20px;
    min-height: auto;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group,
.form-container form {
    margin-bottom: 15px;
}

.form-container input[type="submit"],
.button {
    width: 100%;
    margin: 10px 0;
}

.pdf-container {
    text-align: center;
    margin-bottom: 20px;
}

.pdf-container a {
    display: inline-block;
    margin-bottom: 15px;
}

.message {
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-container input[type="text"],
.form-container input[type="date"],
.form-container input[type="email"],
.form-container select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.btn-outline-light {
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: #E2E4E0;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container input {
    flex: 1;
}

.btn-primary-custom {
    background-color: #607448;
    border-color: #E2E4E0;
    color: white;
    border-radius: 10px;
    padding: 10px 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #909090;
    border-color: #909090;
    transform: scale(1.05);
}

.fas {
    color: #607448 !important;
}

.fas:hover {
    color: #607448 !important;
    opacity: 0.8;
}

.alert-info {
    background-color: rgba(240, 128, 128, 0.5);
    border-left: 6px solid Crimson;
}

.text-primary.custom {
    color: #607448 !important;
}

/* Buttons für Genehmigen, Rückfrage, Entfernen & Zurück */
.btn-success,
.btn-warning,
.btn-danger {
    border-radius: 10px;
    font-weight: bold;
    padding: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Genehmigen */
.btn-success {
    background-color: #4C6A2A !important;
    border-color: #4C6A2A !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #38501F !important;
    border-color: #38501F !important;
    transform: scale(1.05);
}

/* Rückfrage – neuer, dezenter Grünton */
.btn-warning {
    background-color: #8A9A5B !important;  /* mattes, gedecktes Olivgrün */
    border-color: #8A9A5B !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: #748244 !important;
    border-color: #748244 !important;
    transform: scale(1.05);
}

/* Entfernen */
.btn-danger {
    background-color: #C0392B !important;
    border-color: #C0392B !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #992d22 !important;
    border-color: #992d22 !important;
    transform: scale(1.05);
}

/* Zurück zum Dashboard */
a.btn-warning {
    background-color: #607448 !important;
    border-color: #607448 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 10px;
    padding: 10px 20px;
}

a.btn-warning:hover {
    background-color: #4c5d35 !important;
    border-color: #4c5d35 !important;
    transform: scale(1.05);
}

/* Einheitliches Button-Verhalten in Modals */
.modal-footer .btn {
    border-radius: 10px;
    font-weight: bold;
    padding: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn {
    width: 100% !important;
}
