/* Local Open Sans Fonts */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans_Static/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans_Static/OpenSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans_Static/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans_Static/OpenSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Set default font family */
:root {
    --font-family-sans-serif: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: #f7f5f2;
}

/* Override Bootstrap's default font stack */
body,
button,
input,
optgroup,
select,
textarea {
    font-family: var(--font-family-sans-serif);
}

/* Prevent flickering on navigation */
.nav,
.nav-item,
.nav-link {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}


body {
    display: flex;
    min-height: 100vh;
    margin: 0;
}

.sidebar {
    width: 250px;
    background-color: #454b6a;
    /* #454b6a; */
    color: white;
    padding: 16px;
    flex-shrink: 0;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 54px;

}


.sidebar .nav-item {
    display: block;
    margin: 0;
    padding: 0;
    height: 50px;
    color: #e6f2ff;
    font-size: 1.1em;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 15px;
}

.sidebar .nav-link {
    color: #e6f2ff;
    font-size: 1.1em;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 15px;
    height: 40px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 8px 15px;
    height: 40px;
    box-sizing: border-box;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.main-content {
    flex-grow: 1;
    padding: 0 20px 20px 20px;
    background-color: #f7f5f2;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    /* border-bottom: 1px solid #dee2e6; */
    padding-left: 34px;
    padding-right: 15px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 35px;
    margin-top: -20px;
    width: calc(100% + 40px);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
    border-radius: 0;
    height: 86px;
    /* Entspricht ungefähr der Höhe des Sidebar-Headers inkl. Margins */
    box-sizing: border-box;
}

.user-info {
    display: flex;
    align-items: center;
}



thead.table-dark {
    border: none !important;
}

.border-top-rounded {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.card {
    border: none;
}

.card-header {
    /*     background-color: #baa875 !important;
    color: white !important; */
    background-color: white;
    color: #3c3d41 !important;
    border: none;
}

.card-footer {
    color: #3c3d41 !important;
    background-color: white;
    border-top: 1px solid lightgray;
}

.page-link,
.page-link:hover {
    color: black;
}

.active>.page-link,
.page-link.active {
    color: #ffffff;
    background-color: #a51e37;
    border-color: #a51e37;
}



/* Custom button styles for the application */

/* Base button styles */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Primary button styles */
.btn-primary {
    color: #fff;
    background-color: #baa875;
    border-color: #baa875;
}

/* Hover and focus states */
.btn-primary:hover {
    color: #fff;
    background-color: #a89567;
    border-color: #a08a5e;
}

.btn-primary:focus {
    color: #fff;
    background-color: #a89567;
    border-color: #a08a5e;
    box-shadow: 0 0 0 0.25rem rgba(186, 168, 117, 0.5);
}

/* Active state */
.btn-primary:active,
.btn-primary.active {
    color: #fff;
    background-color: #968155;
    border-color: #8c784d;
}

.btn-primary:active:focus {
    box-shadow: 0 0 0 0.25rem rgba(186, 168, 117, 0.5);
}

/* Disabled state */
.btn-primary:disabled,
.btn-primary.disabled {
    color: #fff;
    background-color: #baa875;
    border-color: #baa875;
    opacity: 0.65;
}

/* Outline variant (if needed) */
.btn-outline-primary {
    color: #baa875;
    border-color: #baa875;
}

.btn-outline-primary:hover {
    color: #000;
    background-color: #baa875;
    border-color: #baa875;
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(186, 168, 117, 0.5);
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    color: #000;
    background-color: #baa875;
    border-color: #baa875;
}

.btn-outline-primary:disabled {
    color: #baa875;
    background-color: transparent;
}

.btn-danger {
    background-color: #c63e48;
    color: #fff
}

.ghost-btn,
.ghost-btn:hover {
    display: inline-block;
    font-size: 1rem;
    line-height: 2rem;
    color: #b19c5d;
    text-align: center;
    border: 1px solid #b19c5d;
    padding: 2px 15px;
    background-color: transparent;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ghost-btn-danger,
.ghost-btn-danger:hover {
    color: tomato;
    border: 1px solid tomato;
}


.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #74799d;
    box-shadow: none;
}

.accordion-button:focus {
    outline: 0;
    box-shadow: none;
}


.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #baa875 !important;
}