/* Layout */
.dpr-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background-color: #343a40;
  color: #fff;
  padding: 20px;
  flex-shrink: 0;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
}

.sidebar h4 {
  font-size: 1.2rem;
  border-bottom: 1px solid #495057;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.sidebar .nav-link {
  color: #adb5bd;
  margin-bottom: 5px;
  padding: 10px 12px;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.sidebar .nav-link:hover {
  background-color: #495057;
  color: #fff;
  padding-left: 18px;
}

.sidebar .nav-link.active {
  background-color: #0d6efd;
  color: #fff;
}

.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f8f9fa;
  margin-left: 250px;
}

/* Form Sections */
.dpr-section {
  display: block;
  margin-bottom: 20px;
  padding: 25px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dpr-section h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

/* Form Controls */
input, textarea, select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  outline: none;
}

.form-control, .form-select {
  padding: 10px 12px;
}

.form-control-sm {
  padding: 5px 8px;
  font-size: 0.85rem;
}

/* Buttons */
button {
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #0d6efd;
  border: none;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.btn-secondary {
  background-color: #6c757d;
  border: none;
}

.btn-secondary:hover {
  background-color: #5c636a;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #dc3545;
  border: none;
}

.btn-danger:hover {
  background-color: #bb2d3b;
}

.btn-success {
  background-color: #198754;
  border: none;
}

.btn-success:hover {
  background-color: #157347;
  transform: translateY(-1px);
}

/* Progress bar */
.progress {
  height: 28px;
  border-radius: 14px;
  background-color: #e9ecef;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
  line-height: 28px;
  font-size: 13px;
  font-weight: 600;
  background-color: #0d6efd;
  border-radius: 14px;
  transition: width 0.4s ease;
}

/* Table Styles */
.table {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 10px 8px;
  border-bottom: 2px solid #dee2e6;
}

.table td {
  padding: 8px;
  vertical-align: middle;
}

.table input, .table select {
  width: 100%;
  min-width: 100px;
}

/* Member Table Specific */
#members-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

#members-container tr:hover {
  background-color: #f8f9fa;
}

/* Radio and Checkbox Styles */
.form-check-inline {
  margin-right: 15px;
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Labels */
label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 6px;
  display: inline-block;
}

/* Helpers */
.mb-2 {
  margin-bottom: 12px !important;
}

/* Conditional Fields */
[style*="display: none"] {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .sidebar {
    width: 220px;
  }
  
  .content {
    margin-left: 220px;
  }
  
  .table {
    font-size: 0.75rem;
  }
  
  .table input, .table select {
    min-width: 80px;
  }
}

@media (max-width: 768px) {
  .dpr-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 12px;
  }
  
  .sidebar .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .sidebar .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-block;
  }
  
  .content {
    margin-left: 0;
    padding: 15px;
  }
  
  .dpr-section {
    padding: 15px;
  }
  
  .dpr-section h5 {
    font-size: 1.1rem;
  }
  
  .table thead {
    display: none;
  }
  
  .table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
  }
  
  .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5px;
    border: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .table tbody td:last-child {
    border-bottom: none;
  }
  
  .table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    width: 40%;
    margin-right: 10px;
  }
  
  .table input, .table select {
    width: 55%;
  }
}

@media (max-width: 576px) {
  .sidebar .nav {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary, .btn-success {
    width: 100%;
    margin-top: 5px;
  }
  
  .form-check-inline {
    margin-right: 10px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* File Input Styling */
input[type="file"] {
  padding: 8px;
  background-color: #f8f9fa;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background-color: #e9ecef;
  color: #495057;
  margin-right: 10px;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background-color: #dee2e6;
}

/* Card-like Sections */
.dpr-section {
  position: relative;
}

.dpr-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 50px;
  background-color: #0d6efd;
  border-radius: 4px 0 0 4px;
}

/* Progress Step Indicator */
.progress {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: white;
  border: 1px solid #e9ecef;
}

/* Form Validation Styles */
input:invalid, select:invalid, textarea:invalid {
  border-color: #dc3545;
}

input:invalid:focus, select:invalid:focus, textarea:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Animation for Next Button */
.next-btn:active {
  transform: scale(0.98);
}

/* Footer/Submit Section */
#section15 .btn-success {
  margin-top: 10px;
  padding: 10px 30px;
  font-size: 1rem;
}