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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    text-align: left;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

nav, footer {
    background-color: #333;
    color: white;
    padding: 1rem;
}

nav_sidebar {
    background-color: transparent;
    color: white;
}

.nav-wrapper {
    width: 100%;
    margin: 0;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.section-title-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}

.section-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    text-align: right;
    letter-spacing: 0.5px;
}

.brand-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: auto;
    padding: 0.5rem 1rem;
}

.user-name {
    color: #20260c; 
    font-weight: bold;
    margin-right: 1rem;
    display: block;
    padding: 12px 16px 8px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.container {
    max-width: 1200px;
    padding: 2rem;
    text-align: left;
}

main {
    min-height: calc(100vh - 120px);
}

footer {
    text-align: center;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    background-color: #7E942D;
}

/* Button styling */
.button, .btn-primary {
    background-color: #7E942D; /* Primary button color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover, .btn-primary:hover {
    background-color: #5a6d1b; /* Darker shade on hover */
}
.project-group .btn-primary {
    margin-top: 0; /* Remove top margin if any */
    margin-bottom: 10px; /* Add space between buttons */
    width: 100%; /* Make buttons take full width of the container */
    max-width: 200px; /* Optional: Set a max-width if needed */
}


/* Content layout */
.content-wrapper {
    display: flex;
    min-height: calc(100vh - 100px);
}

.sidebar {
    width: 100%;
    max-width: 250px;
    background-color: #f0f0f0;
    padding: 20px;
    transition: width 0.3s ease, background-color 0.3s ease, border-right 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    align-self: stretch;
}

.sidebar.collapsed {
    width: 60px;
    padding: 20px 4px;
    overflow-x: hidden;
    overflow-y: visible;
    background-color: transparent;
    border-right: none;
}

.sidebar.collapsed button.toggle-sidebar {
    padding-right: 0;
    padding-left: 0;
}

.sidebar a {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space between text and icon */
    align-items: center; /* Center items vertically */
    text-decoration: none; /* Remove underline */
    color: #333; /* Text color */
    padding: 10px; /* Add padding for better spacing */
}

.icon-check {
    color: #7E942D; /* Icon color */
    font-size: 1.4rem; /* Icon size */
    margin-left: 15px; /* Space between text and icon */
}

.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-width: 100%;
}

.page-header {
    background-color: #f0f0f0;
    padding: 1rem;
    width: 100%;
    border-radius: 8px;
}

.subtitle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;  /* Keep space for arrows */
    min-height: 40px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 8px;
    font-size: 24px;  /* Make arrows bigger */
}

.left-arrow {
    left: 10px;  /* Move arrow more inward */
}

.right-arrow {
    right: 10px;  /* Move arrow more inward */
}

#dynamic-subtitle {
    margin: 0;
    text-align: center;
    flex: 1;
}

/* Sidebar navigation */
.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    margin-bottom: 10px;
}

.side-nav a {
    color: #333;
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.side-nav a:hover,
.side-nav a.active {
    background-color: #e0e0e0;
    color: #333;
}

.sub-sidebar {
    padding-left: 15px;
    margin-top: 5px;
    border-left: 2px solid #7E942D;
}

.sub-sidebar li {
    list-style-type: none;
    margin: 8px 0;
    transition: all 0.2s ease;
}

.sub-sidebar a {
    display: block;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sub-sidebar a:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
    color: #7E942D;
}

.sub-sidebar a.active {
    background-color: #7E942D;
    color: white;
    box-shadow: 0 2px 4px rgba(126, 148, 45, 0.2);
}

.toggle-sidebar {
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 60px;
    text-align: center;
    margin-bottom: 15px;
    margin-left: auto;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    background-color: #e0e0e0 !important;
    padding: 4px;
    border-radius: 4px;
    color: #333;
    width: 44px;
    height: 44px;
}

.toggle-sidebar:hover .toggle-icon {
    background-color: #d0d0d0 !important;
}

.sidebar.collapsed .sidebar-list {
    display: none;
}

.sidebar.collapsed .toggle-icon {
    /* Rotation removed - icon changes via JavaScript instead */
}

.home-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.home-icon i {
    font-size: 2rem;
    color: #333;
}

.home-icon:hover {
    transform: scale(1.1);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
    margin-right: 10px;
}

.profile-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.profile-icon i {
    font-size: 2rem;
    color: #333;
}

.profile-icon:hover {
    transform: scale(1.1);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    display: none;
    margin-top: 10px;
    max-width: calc(100vw - 40px);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: black;
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-content a:last-child {
    border-radius: 0 0 8px 8px;
}

@media screen and (max-width: 768px) {
    .brand-logo {
        font-size: 1.25rem;
    }
    
    .profile-icon i {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-wrapper {
        padding: 0 1vw;
    }
    
    .brand-logo {
        font-size: 1rem;
    }
    
    .profile-icon i {
        font-size: 1.5rem;
    }
}

.box {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
} 

.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

.antrag-item {
    transition: background-color 0.2s ease;
}

.antrag-item:hover {
    background-color: #f8f9fa;
}

.progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: #7E942D;
    transition: width 0.3s ease;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
}

/* Global styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* Navigation styles */
nav {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 80px;
    position: relative;
    background-color: #7E942D;
}

.brand-logo {
    margin: 0;
    padding-left: 10px;
    font-size: 32px;
}

.form-step {
    display: none;  /* Hide all steps by default */
}

.form-step.active {
    display: block;  /* Show active step */
}

.alert.alert-info {
    background-color: rgba(52, 58, 64, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-out 4.5s forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg);}
}

.active-box {
    background-color: #e9ecef !important;
}

.content-container {
    height: calc(100vh - 60px);
    padding: 20px;
    width: 100%;
    align-items: stretch !important;
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.project-box {
    width: 100%;
    max-width: 800px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
}

.btn.btn-primary.project-button {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

.btn.btn-primary.project-button:hover {
    background-color: #4a4a4a !important;
    border-color: #4a4a4a !important;
}

.progress-bar-container {
    width: 100px;
    height: 8px;
}

.project-type-link {
    max-width: 200px;
}

.project-type-box {
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-type-box:hover {
    background-color: #e9ecef;
}

.project-type-box.selected {
    background-color: #3d83ce;
    border-color: #3d83ce;
    border-width: 2px;
    color: white;
}

.project-type-box.selected h6 {
    color: white;
}

.project-type-box.selected p {
    color: rgba(255, 255, 255, 0.9);
}

#extensionFields {
    display: none;
    margin-top: 20px;
}

.satellite-label {
    width: 120px; /* Adjust the width as needed */
}

.project-group {
    margin-bottom: 20px;
    position: relative;
}

.project-group:not(:last-child) {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 2px dashed #dee2e6;
}

.project-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Flash messages styling */
.flash-messages {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 80%;
    max-width: 600px;
    padding: 10px;
}

.alert.alert-info {
    background-color: rgba(52, 58, 64, 0.9);  /* Dark grey with transparency */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-out 4.5s forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.anlage-selector {
    padding: 5px;
    background-color: None;
    margin-top: 5px;  /* Add space above the selector */
    margin-bottom: 20px;  /* Add space below the selector */
}

.anlage-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: None;
    font-size: 0.9rem;
    cursor: pointer;
}

.anlage-selector select:hover {
    border-color: #7E942D;
}

.anlage-selector select:focus {
    border-color: #7E942D;
    outline: none;
}

.project-group .d-flex.flex-column {
    align-items: flex-end;
    width: 100%; /* Ensure the container takes full width */
}

.project-group .btn-primary {
    background-color: #7E942D; /* Primary button color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%; /* Make buttons take full width of the container */
    max-width: 300px; /* Optional: Set a max-width if needed */
    min-width: 150px;
}

.project-group .btn-primary:hover {
    background-color: #5a6d1b; /* Darker shade on hover */
}

.process-flow-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.process-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.process-header {
    text-align: left;
    margin-bottom: 15px;
    padding: 20px 15px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    position: static;
    transform: none;
    width: 32px;
    height: 32px;
    background-color: #7E942D;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.process-header h6 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.process-arrow {
    display: flex;
    align-items: center;
    color: #7E942D;
    font-size: 24px;
}

.process-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-column:nth-child(3) .btn-primary,
.process-column:nth-child(5) .btn-primary {
    width: 100%;  /* Take full width of container */
    max-width: 200px;  /* Limit maximum width */
    min-width: 150px;  /* Ensure minimum width */
    height: 60px;  /* Make button taller */
    margin: 0 auto;  /* Center the button */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;  /* Allow text to wrap if needed */
    padding: 15px;  /* Add some padding */
}

.btn.btn-outline-primary {
    border-color: #dee2e6;
    color: #000000;  /* Darker gray for text */
    background-color: #f8f9fa;  /* Light gray fill */
    transition: all 0.3s ease;
}

.btn.btn-outline-primary:hover {
    background-color: #e9ecef;  /* Slightly darker on hover */
    border-color: #495057;  /* Dark gray border on hover */
    color: #343a40;  /* Even darker gray for text on hover */
}

.btn.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(73, 80, 87, 0.25);  /* Dark gray focus ring */
    border-color: #495057;
}

.btn.btn-outline-primary .progress-bar {
    background-color: #7E942D;  /* Match the progress bar to the theme color */
}

.project-box {
    max-width: 1200px !important;
}

.progress-bar-container {
    height: 6px;
    margin-right: 5px;
}

.last-edited-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}



