.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.form-group input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.result {
  margin-top: 1rem;
  white-space: pre-wrap;
}
.success {
  color: var(--border-color);
}
.error {
  color: red;
}
.project-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#projectStatusLabel {
  min-width: 120px;
  font-weight: bold;
}
#projectProgressBar {
  flex: 1;
  min-width: 120px;
}
.btn-success.w-100, .btn-warning.w-100, .btn-volver, .btn-limpiar {
  height: 48px;
  border-radius: 24px !important;
  font-size: 1.08em;
  font-weight: bold;
  padding: 0 2.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  box-shadow: none;
  border: none;
}
.btn-success.w-100 {
  background: #219150;
  color: #fff;
  width: 100%;
  margin-bottom: 0;
  cursor: pointer;
}
.btn-warning.w-100 {
  background: #ff6b35;
  color: #fff;
  width: 100%;
  margin-bottom: 0;
  cursor: pointer;
}
.btn-warning.w-100 i {
  margin-right: 0.5rem;
}
.btn-success.w-100:hover, .btn-success.w-100:focus, .btn-success:hover, .btn-success:focus {
  background: #176b3a !important;
  color: #fff;
}
.btn-warning.w-100:hover, .btn-warning.w-100:focus, .btn-warning:hover, .btn-warning:focus {
  background: #e55a2b !important;
  color: #fff;
}
.btn-group-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 0.2rem;
}
.btn-group-row .btn {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  border-radius: 24px !important;
  font-size: 1.08em;
  font-weight: bold;
  padding: 0 2.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  box-shadow: none;
  border: none;
  margin: 0;
}
.btn-volver {
  background: #E52514;
  color: #fff;
  min-width: 48px;
  height: 48px;
  padding: 0 0.8rem;
  border-radius: 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.18s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-limpiar {
  background: #E52514;
  color: #fff;
  min-width: 48px;
  height: 48px;
  padding: 0 0.8rem;
  border-radius: 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.18s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-volver:hover, .btn-volver:focus {
  background: #8F8F9F;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-limpiar:hover, .btn-limpiar:focus {
  background: #8F8F9F;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-secondary {
  background: #8F8F9F;
  color: #fff;
  min-width: 48px;
  height: 48px;
  padding: 0 0.8rem;
  border-radius: 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.18s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-secondary:hover {
  background: #E52514 !important;
  border-color: #E52514 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Estilos específicos para los botones en la zona de información del proyecto */
#projectInfo .d-flex .btn {
  transition: all 0.18s ease;
  text-decoration: none;
  border: none;
  outline: none;
}

#projectInfo .d-flex .btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(229, 37, 20, 0.2);
}

#projectInfo .d-flex .btn i {
  font-size: 1.1rem;
}

.form-split-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 900px;
  margin: 2.5rem auto;
  background: none;
}
.form-box {
  flex: 1 1 0;
  border-radius: 22px;
  margin: 0;
  max-width: 540px;
  min-width: 320px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background: #fff;
}
.form-side-geom {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  overflow: hidden;
  background: #E52514;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.form-side-geom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E52514 60%, #8F8F9F 100%);
  z-index: 1;
}
.form-side-geom::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50px;
  width: 320px;
  height: 320px;
  background: #fff2;
  border-radius: 60px;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  z-index: 2;
}
.geom-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.geom-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .form-split-container {
    flex-direction: column;
    max-width: 98vw;
    gap: 1.2rem;
  }
  .form-box, .form-side-geom {
    border-radius: 22px;
    max-width: 100%;
    min-width: 0;
  }
  .form-side-geom {
    min-height: 120px;
    margin-bottom: 1.2rem;
  }
}

.form-minimal-container {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin: 2rem auto;
  max-width: 1200px;
  align-items: flex-start;
}
.form-side-minimal {
  flex: 0 1 420px;
  text-align: left;
}
.form-main-minimal {
  flex: 1;
  max-width: 500px;
}
.side-line {
  width: 36px;
  height: 4px;
  background: #E52514;
  border-radius: 24px;
  margin-bottom: 1.2rem;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.form-side-minimal:hover .side-line {
  width: 100%;
}
.side-title-minimal {
  font-size: 2.5rem;
  font-weight: bold;
  color: #153336;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.side-desc-minimal {
  font-size: 1.15rem;
  color: #444;
  font-weight: 400;
  margin-bottom: 0;
}

.form-main-minimal form {
  width: 100%;
}
.form-main-minimal .form-group,
.form-main-minimal .mb-3,
.form-main-minimal .row {
  margin-bottom: 1.3rem !important;
}
.form-main-minimal label {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.4rem;
}
.form-main-minimal input,
.form-main-minimal select {
  border: none;
  border-bottom: 2px solid #8F8F9F;
  border-radius: 0;
  background: transparent;
  font-size: 1.08em;
  padding: 0.5em 0.2em;
  color: #222;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}
.form-main-minimal input:focus,
.form-main-minimal select:focus {
  border-bottom: 2.5px solid #E52514;
}
.form-main-minimal .input-group .input-group-text {
  background: transparent;
  border: none;
  border-bottom: 2px solid #8F8F9F;
  border-radius: 0;
  color: #222;
  font-size: 1.08em;
  padding: 0.5em 0.2em;
  transition: border-color 0.2s;
}
.form-main-minimal .input-group .form-control {
  border-left: none;
}
.form-main-minimal .input-group:focus-within .input-group-text {
  border-bottom-color: #E52514;
}
.form-main-minimal .btn-success.w-100 {
  background: #219150;
  border-radius: 24px;
  font-size: 1.1em;
  margin-top: 0.7rem;
  margin-bottom: 1.2rem;
}
.form-main-minimal .btn-group-row {
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.form-main-minimal .btn-volver, .form-main-minimal .btn-limpiar {
  border-radius: 24px;
  font-size: 1em;
}
@media (max-width: 900px) {
  .form-minimal-container {
    flex-direction: column;
    gap: 2.2rem;
    max-width: 98vw;
  }
  .form-side-minimal, .form-main-minimal {
    max-width: 100%;
    min-width: 0;
    padding: 1.2rem 0.5rem;
    align-items: flex-start;
  }
  .form-main-minimal {
    max-width: 98vw;
  }
}

.alert-success.button-style {
  background: #219150 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 24px !important;
  font-weight: bold;
  font-size: 1.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 2.2em;
  margin-top: 1.1rem;
  box-shadow: none;
}
.alert-success.button-style .bi {
  color: #fff !important;
  margin-right: 0.7em;
  font-size: 1.2em;
}

/* Estilos para el botón de filtro y barra desplegable */
.title-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.title-section .side-line {
  width: 36px;
  height: 4px;
  background: #E52514;
  border-radius: 24px;
  margin: 0 auto 1.2rem auto;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.title-section:hover .side-line {
  width: 120px;
}

.title-section .side-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #153336;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.title-section .side-desc {
  font-size: 1.15rem;
  color: #444;
  font-weight: 400;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.filter-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-toggle-btn {
  background: #E52514;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(229, 37, 20, 0.3);
  position: relative;
  overflow: hidden;
}

.filter-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(229, 37, 20, 0.4);
  padding: 12px 25px;
}

.filter-toggle-btn .filter-text {
  opacity: 0;
  max-width: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-toggle-btn:hover .filter-text {
  opacity: 1;
  max-width: 100px;
  margin-left: 5px;
}

.filter-toggle-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.filter-toggle-btn.active i {
  transform: rotate(180deg);
}

.filter-bar {
  background: #fff;
  border: 2px solid #E52514;
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(229, 37, 20, 0.1);
}

.filter-bar.active {
  max-height: 300px;
  opacity: 1;
  padding: 20px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 15px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  flex: 1;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.filter-input,
.filter-select {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  background: #fff;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #E52514;
  box-shadow: 0 0 0 3px rgba(229, 37, 20, 0.1);
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.filter-btn-search {
  background: #219150;
  color: #fff;
}

.filter-btn-search:hover {
  background: #176b3a;
  transform: translateY(-2px);
}

.filter-btn-clear {
  background: #6c757d;
  color: #fff;
}

.filter-btn-clear:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-item {
    min-width: 100%;
  }
  
  .filter-actions {
    justify-content: center;
    margin-top: 15px;
  }
  
  .filter-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Estilos para el campo de usuario personalizado */
.user-display-field {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.selected-user-info {
  display: flex;
  align-items: center;
  color: #495057;
}

.selected-user-info .fw-semibold {
  color: #212529;
}

.selected-user-info .text-muted {
  font-size: 0.875rem;
}

.user-display-field:hover {
  background-color: #e9ecef;
}

/* Responsive para campos de usuario */
@media (max-width: 576px) {
  .selected-user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .selected-user-info .text-muted {
    margin-left: 0 !important;
  }
}
