/* General Body and Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem; /* Base font size */
    line-height: 1.6; /* Improved line height for readability */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Main Content Area Padding */
main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Navbar Logo Styling */
.navbar-logo {
    height: 36px; /* Slightly smaller logo for better integration */
    margin-right: 0.75rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    transition: opacity 0.2s ease-in-out;
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    border-radius: 0.375rem; /* Slightly rounded corners for hover/active */
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link .bi {
    color: inherit; /* Ensure icon color matches text color */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important; /* Ensure primary color on hover/active */
    background-color: rgba(var(--bs-primary-rgb), 0.1); /* Subtle background */
}

/* Custom Primary Color Variables (if needed, otherwise Bootstrap defaults) */
:root {
    --primary: #4a7cff; /* A slightly more vibrant blue */
    --primary-hover: #3a6ae0;
    --primary-focus: rgba(74, 124, 255, 0.25);
    --primary-inverse: #fff;
}

/* Dark Mode Overrides for Bootstrap Variables */
[data-bs-theme="dark"] {
    --bs-body-bg: #121212; /* Even deeper dark background */
    --bs-body-color: #e0e0e0; /* Lighter text color for contrast */
    --bs-heading-color: #f8f9fa;
    --bs-link-color: #8ab4f8; /* Adjusted link color for dark mode */
    --bs-link-hover-color: #a6c8ff;
    --bs-card-bg: #1e1e1e; /* Darker card background */
    --bs-card-color: #e0e0e0;
    --bs-table-color: #e0e0e0;
    --bs-table-bg: #1e1e1e;
    --bs-table-striped-bg: #282828;
    --bs-table-hover-bg: #333333;
    --bs-border-color: #3a3a3a;
    --bs-navbar-color: rgba(255, 255, 255, 0.85);
    --bs-navbar-hover-color: rgba(255, 255, 255, 1);
    --bs-navbar-active-color: rgba(255, 255, 255, 1);
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fff;
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.1);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Card Styling for Depth and Professionalism */
.card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease-in-out;
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid var(--bs-border-color);
}

/* Table Readability */
.table th, .table td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Ensure badges are readable in dark mode */
.badge {
    color: #fff !important; /* Ensure white text on badges */
    padding: 0.4em 0.6em;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Icon visibility and alignment */
.bi {
    vertical-align: -0.125em;
    margin-right: 0.35em;
    font-size: 1.15em; /* Slightly larger icons for prominence */
}

/* Form Control Focus */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem var(--primary-focus);
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

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

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

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem var(--primary-focus);
}

/* Dropdown Menus */
.dropdown-menu {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

[data-bs-theme="dark"] .dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

.dropdown-divider {
    border-top-color: var(--bs-border-color);
}
/* Sticky Footer Styling */  
html, body {  
    height: 100%;  
}  
 
body {  
    display: flex;  
    flex-direction: column;  
}  
 
main {  
    flex: 1 0 auto;  
}  
 
footer {  
    flex-shrink: 0;  
} 

/* Login Form Transitions */
#form-step-container {
    transition: opacity 0.15s ease-in-out;
}

.form-step-fading {
    opacity: 0;
}

/* --- Custom CSS Tent Icon --- */
.tent-icon {
    /* --- Variables --- */
    --line-thickness: 2px;
    --line-color: currentColor;
    --tent-width: 16px;
    --tent-height: 10px;
    --wall-angle: 60deg;
    --opening-line-height: 9px;
    --opening-angle: -28deg;

    /* --- Integration --- */
    display: inline-block;
    vertical-align: -0.125em;
    margin-right: 0.4em;

    /* --- Base --- */
    position: relative;
    width: var(--tent-width);
    height: var(--line-thickness);
    background: var(--line-color);
}

/* --- Linke Zeltwand --- */
.tent-icon::before {
    content: '';
    position: absolute;
    width: var(--line-thickness);
    height: var(--tent-height);
    background: var(--line-color);
    top: 0;
    left: 0;
    transform: rotate(calc(var(--wall-angle) * -1));
    transform-origin: top left;
}

/* --- Rechte Zeltwand --- */
.tent-icon::after {
    content: '';
    position: absolute;
    width: var(--line-thickness);
    height: var(--tent-height);
    background: var(--line-color);
    top: 0;
    right: 0;
    transform: rotate(var(--wall-angle));
    transform-origin: top right;
}

/* --- Oeffnungs-Container --- */
.tent-icon .tent-opening {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--line-thickness);
    height: var(--tent-height);
}

/* --- Oeffnung: Vertikale Linie --- */
.tent-icon .tent-opening::before {
    content: '';
    position: absolute;
    width: var(--line-thickness);
    height: 100%;
    background: var(--line-color);
    top: 0;
    right: 0;
}

/* --- Oeffnung: Diagonale Linie --- */
.tent-icon .tent-opening::after {
    content: '';
    position: absolute;
    width: var(--line-thickness);
    height: var(--opening-line-height);
    background: var(--line-color);
    top: 0;
    right: 0;
    transform: rotate(var(--opening-angle));
    transform-origin: top right;
}