/* ============================================================
   Notice Board - Styles
   ============================================================ */

/* Slider wrapper */
#notice-board-slider-wrapper {
  margin-bottom: 15px;
}

/* Card - cream background */
#notice-board-card {
  border-left: 4px solid #c8a96e;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdf5 0%, #fdf6e3 100%);
  box-shadow: 0 1px 4px rgba(200, 169, 110, 0.15);
}

body.night-mode #notice-board-card {
  background: linear-gradient(135deg, #2a2416 0%, #2e2a1a 100%);
  border-left-color: #c8a96e;
}

/* Card header */
#notice-board-card .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(200, 169, 110, 0.3) !important;
}

#notice-board-card .card-header strong {
  color: #8b6914 !important;
}

body.night-mode #notice-board-card .card-header strong {
  color: #c8a96e !important;
}

/* Individual slide */
.nb-slide {
  padding: 5px 0;
  animation: nb-fadein 0.3s ease;
}

@keyframes nb-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide title */
.nb-slide .fw-bold {
  color: #5c3d0a;
}

body.night-mode .nb-slide .fw-bold {
  color: #e8c97a;
}

/* Description text */
.nb-desc {
  color: #6b4c1a;
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

body.night-mode .nb-desc {
  color: #d4b483;
}

/* Meta text (by, until) */
.nb-slide .text-muted {
  color: #9a7a3a !important;
}

body.night-mode .nb-slide .text-muted {
  color: #b8965a !important;
}

/* File/URL buttons - warm style */
#notice-board-slides .btn-outline-primary {
  border-color: #8b6914;
  color: #8b6914;
}
#notice-board-slides .btn-outline-primary:hover {
  background-color: #8b6914;
  color: #fff;
}

/* Navigation */
.nb-nav {
  align-items: center;
}

.nb-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nb-dot {
  transition: background 0.2s ease, transform 0.2s ease;
}

.nb-dot:hover {
  transform: scale(1.3);
}

/* Nav buttons - warm */
#nb-prev, #nb-next {
  border-color: #c8a96e;
  color: #8b6914;
}

#nb-prev:hover, #nb-next:hover {
  background-color: #c8a96e;
  color: #fff;
}

/* Publisher modal - group tags */
#nb-selected-groups .badge {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 20px;
}

/* Publisher modal - file upload area */
.nb-file-upload-wrapper,
#nb-file-upload-area {
  transition: border-color 0.2s ease;
}

#nb-file-upload-area:hover {
  border-color: #c8a96e !important;
}

/* Group dropdown */
#nb-group-dropdown .list-group-item:hover {
  background-color: #fdf6e3;
}

body.night-mode #nb-group-dropdown .list-group-item:hover {
  background-color: #2e2a1a;
}

/* Notice board page - active card */
.nb-active {
  border-left: 3px solid #27ae60;
}

/* Notice board page - inactive card */
.nb-inactive {
  border-left: 3px solid #95a5a6;
  opacity: 0.75;
  background-color: #f8f9fa !important;
}

body.night-mode .nb-inactive {
  background-color: #1e1e1e !important;
}

.nb-inactive .card-body {
  position: relative;
}

/* Expired badge on inactive notices */
.nb-expired-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 576px) {
  #nb-prev, #nb-next {
    padding: 2px 8px;
    font-size: 12px;
  }
}
