/* Bootstrap colors
#
#  red - rgb(220,53,69)
#  blue - rgb(13, 110, 253)
#  green - rgb(25, 135, 84)
#  subtle (adds alpha 0.1)
*/

fieldset.hw-combobox {
  width: 100%;
}

div.hw-combobox__main__wrapper {
  width: 100%;
}

.form-label {
  font-weight: bold;
}

.active {
  background-color: rgba(25, 135, 84, 0.1) !important;
  color: rgb(25, 135, 84) !important;
  text-align: center;
  font-weight: bold;
}

.inactive {
  background-color: rgba(220,53,69, 0.1) !important;
  color: rgb(220,53,69) !important;
  text-align: center;
  font-weight: bold;
}

hr.thick {
  background-color: black;
  height: 5px;
}

.btn-check:checked + .btn {
  background-color: rgb(13, 110, 253);
  color: white;
}

.sub-object {
  padding: 10px;
  border-top: 2px rgb(80, 80, 80) solid;
  border-bottom: 2px rgb(80, 80, 80) solid;
}

/* Volunteer Skills Styling */
.skill-card {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.skill-card.skill-active {
  border-left-color: #0d6efd;
  background-color: #f8f9fa;
}

.skill-card:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-range {
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .skill-card .card-body {
    padding: 1rem;
  }

  .skill-card h6 {
    font-size: 0.95rem;
  }
}

/* Profile Display Styling */
.skill-display-card {
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.skill-display-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.skill-display-card h6 {
  color: #0d6efd;
  font-weight: 600;
}

.skill-levels .progress {
  background-color: #e9ecef;
}

/* Contact info icons alignment */
.contact-info svg {
  vertical-align: text-top;
}

/* Hero header shadow */
.card.border-0.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

/* Ensure cards have equal height */
.card.h-100 {
  height: 100% !important;
}

/* Responsive adjustments for profile */
@media (max-width: 768px) {
  .skill-display-card {
    margin-bottom: 1rem;
  }

  .card-header h5 {
    font-size: 1.1rem;
  }

  .contact-info svg {
    width: 14px;
    height: 14px;
  }
}

/* Column visibility toggle */
.column-hidden {
  display: none !important;
}

/* Skill level range slider colors */
.form-range.skill-level-0::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #6c757d 0%, #6c757d 100%);
}

.form-range.skill-level-0::-moz-range-track {
  background: linear-gradient(to right, #6c757d 0%, #6c757d 100%);
}

.form-range.skill-level-1::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #0dcaf0 0%, #0dcaf0 33.33%, #e9ecef 33.33%, #e9ecef 100%);
}

.form-range.skill-level-1::-moz-range-track {
  background: linear-gradient(to right, #0dcaf0 0%, #0dcaf0 33.33%, #e9ecef 33.33%, #e9ecef 100%);
}

.form-range.skill-level-2::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #ffc107 0%, #ffc107 66.66%, #e9ecef 66.66%, #e9ecef 100%);
}

.form-range.skill-level-2::-moz-range-track {
  background: linear-gradient(to right, #ffc107 0%, #ffc107 66.66%, #e9ecef 66.66%, #e9ecef 100%);
}

.form-range.skill-level-3::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #198754 0%, #198754 100%);
}

.form-range.skill-level-3::-moz-range-track {
  background: linear-gradient(to right, #198754 0%, #198754 100%);
}

.form-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
}

.form-range::-moz-range-track {
  height: 8px;
  border-radius: 4px;
}

/* Group toggle button hover effects */
.btn-outline-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

/* Ensure smooth transitions for group buttons */
label.btn {
  transition: all 0.2s ease;
}

/* Notification Styles */
.notification-dropdown {
  width: 350px;
  max-height: 600px;
  background-color: #212529;
  border: 1px solid #495057;
  overflow: hidden;
}

@media (max-width: 1006px) {
  .notification-dropdown {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .notification-dropdown {
    width: 100%;
  }
}

.notification-dropdown .dropdown-header {
  color: #adb5bd;
  background-color: #212529;
  border-bottom: 1px solid #495057;
}

.notification-dropdown .dropdown-divider {
  border-color: #495057;
}

.notification-list {
  max-height: 500px;
  overflow-y: auto;
  background-color: #212529;
}

.notification-item {
  border-bottom: 1px solid #495057;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
  color: #dee2e6;
  background-color: #212529;
}

.notification-item:hover {
  background-color: #343a40;
  color: #dee2e6;
}

.unread-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dc3545;
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.6);
}

.read-indicator {
  color: #28a745;
  font-size: 0.75rem;
  flex-shrink: 0;
  align-self: center;
  font-weight: bold;
  line-height: 1;
}

.notification-item .text-muted {
  color: #6c757d !important;
}

.notification-message {
  font-size: 0.85rem;
  line-height: 1.35;
  color: #dee2e6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: normal;
}

.notification-message.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.7em; /* Approximately 2 lines */
}

.notification-message:not(.collapsed) {
  display: block;
  max-height: none;
  overflow: visible;
}

.notification-clickable {
  cursor: pointer;
}

.notification-clickable:hover .notification-message {
  color: #f8f9fa;
}

.mark-read-btn {
  border-color: #adb5bd !important;
  color: #adb5bd !important;
  background-color: rgba(173, 181, 189, 0.1) !important;
  min-width: 24px;
}

.mark-read-btn:hover {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: white !important;
}

.notification-toast {
  min-width: 300px;
  max-width: 500px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#notification-badge {
  font-size: 0.6rem;
}

#mark-all-read {
  text-decoration: none;
  font-size: 0.75rem;
  color: #6c757d;
}

#mark-all-read:hover {
  text-decoration: underline;
  color: #adb5bd;
}

.notification-dropdown .dropdown-item.text-center {
  color: #6c757d;
  background-color: #212529;
}

.notification-dropdown .dropdown-item.text-center:hover {
  background-color: #343a40;
  color: #adb5bd;
}