/* Form Headers Styling - Based on Group Detail View */

/* Group Header Card */
.group-header {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  background-color: #f8f9fa;
  min-height: 300px; /* Ensure enough height for the background image */
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .group-header {
    min-height: 400px; /* Increase height on smaller screens for better content spacing */
  }
}
@media (max-width: 576px) {
  .group-header {
    min-height: 450px; /* Further increase height on mobile for better content spacing */
  }
}

.group-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.group-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25; /* Slightly more visible but still subtle */
  filter: grayscale(40%) blur(0.5px); /* Less grayscale and blur for better image visibility */
  transform: scale(1.05); /* Slightly larger to ensure full coverage */
}

.group-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.2), rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
  z-index: 1; /* Ensure overlay is above the image */
}

.group-header-content {
  position: relative;
  padding: 2.5rem;
  z-index: 2; /* Ensure content is above the overlay */
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.group-title-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .group-title-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.group-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #009688;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .group-title {
    margin-bottom: 0;
  }
}
@media (max-width: 576px) {
  .group-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

.group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .group-actions {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.75rem;
  }
  .group-actions .btn {
    flex: 1 1 auto;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Form Container Styling */
.form-container {
  background-color: var(--bright-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

/* Improved Ausgaben List Styling */
.ausgaben-list.elevated {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  margin-bottom: 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ausgaben-list-item.muted {
  background-color: rgba(0, 150, 136, 0.05);
  border-bottom: 1px solid rgba(0, 150, 136, 0.1);
  color: #495057;
  font-weight: 500;
  padding: 1.5rem;
  text-align: center;
}

/* Improved Form Content Styling */
.ausgaben-list .col-centered {
  padding: 2rem;
}

.ausgaben-list form {
  max-width: 600px;
  margin: 0 auto;
}

.ausgaben-list form .form-group {
  margin-bottom: 1.5rem;
}

.ausgaben-list form label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.ausgaben-list form .form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.ausgaben-list form .form-control:focus {
  border-color: #009688;
  box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

/* Filter Form Styling */
.filter-form {
  background-color: rgba(0, 150, 136, 0.03);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 150, 136, 0.1);
}

.filter-form .form-group {
  margin-bottom: 1rem;
}

.filter-form label {
  font-weight: 600;
  color: #495057;
}

/* Table Styling */
table.break-table-on-small {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

table.break-table-on-small td {
  padding: 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 150, 136, 0.1);
}

table.break-table-on-small tr:last-child td {
  border-bottom: none;
}

/* Improved Form Styling */
form .btn {
  background-color: #009688;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

form .btn:hover {
  background-color: #00796b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
