/*--------------------------------------------------------------
# Notice Board Page Stylesheet
# Bulletins, Announcement Cards, Sidebar Widgets & Calendar
--------------------------------------------------------------*/

:root {
  --nb-color-urgent: #ef4444;
  --nb-color-latest: #10b981;
  --nb-color-general: #3b82f6;
  --nb-color-academic: #f59e0b;
}

.notice-board-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 80px 0;
}

/* Sidebar Widgets */
.notice-sidebar {
  width: 290px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.notice-widget {
  background-color: var(--fistudy-white);
  border: 1.5px solid var(--fistudy-bdr-color);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(5, 33, 67, 0.04);
}

.notice-widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--fistudy-black);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px dashed var(--fistudy-bdr-color);
  padding-bottom: 10px;
}

.notice-widget-title i {
  color: var(--fistudy-base);
}

/* Search widget */
.notice-search-form {
  position: relative;
}

.notice-search-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--fistudy-bdr-color);
  border-radius: 8px;
  padding: 0 45px 0 14px;
  font-family: var(--fistudy-font);
  font-size: 14px;
  color: var(--fistudy-black);
  outline: none;
  background-color: #f8fafd;
  transition: all 250ms ease;
}

.notice-search-input:focus {
  border-color: var(--fistudy-base);
  background-color: var(--fistudy-white);
  box-shadow: 0 0 0 3px rgba(104, 126, 255, 0.1);
}

.notice-search-submit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--fistudy-gray);
  font-size: 14px;
  cursor: pointer;
}

.notice-search-submit:hover {
  color: var(--fistudy-base);
}

/* Filter Tag Buttons */
.notice-filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-filter-btn {
  width: 100%;
  height: 40px;
  border: 1px solid var(--fistudy-bdr-color);
  border-radius: 8px;
  background: transparent;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--fistudy-font);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fistudy-gray);
  cursor: pointer;
  transition: all 250ms ease;
}

.notice-filter-btn:hover,
.notice-filter-btn.active {
  border-color: var(--fistudy-base);
  color: var(--fistudy-base);
  background-color: #f6f9ff;
}

.notice-filter-btn span.count {
  font-size: 11px;
  background-color: #eef2ff;
  color: var(--fistudy-base);
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: 700;
}

.notice-filter-btn.active span.count {
  background-color: var(--fistudy-base);
  color: var(--fistudy-white);
}

/* Mini Calendar Widget */
.notice-calendar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-calendar-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--fistudy-black);
  text-align: center;
  margin-bottom: 4px;
}

.notice-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.notice-calendar-day-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fistudy-gray);
}

.notice-calendar-cell {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--fistudy-gray);
  position: relative;
}

.notice-calendar-cell--active {
  color: var(--fistudy-black);
  font-weight: 700;
}

.notice-calendar-cell--has-notice {
  background-color: #eff3ff;
  border: 1px solid #dbeafe;
  color: var(--fistudy-base);
  cursor: pointer;
}

.notice-calendar-cell--has-notice::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--fistudy-primary);
  position: absolute;
  bottom: 2px;
}

.notice-calendar-cell--has-notice:hover {
  background-color: var(--fistudy-base);
  color: var(--fistudy-white);
}

.notice-calendar-cell--has-notice:hover::after {
  background-color: var(--fistudy-white);
}

/* Main Bulletin Grid */
.notice-main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notice-card {
  background-color: var(--fistudy-white);
  border: 1.5px solid var(--fistudy-bdr-color);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(5, 33, 67, 0.03);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
  position: relative;
  overflow: hidden;
}

.notice-card:hover {
  transform: translateY(-2px);
  border-color: var(--fistudy-base);
  box-shadow: 0 15px 40px rgba(104, 126, 255, 0.08);
}

.notice-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fistudy-gray);
}

.notice-card-meta i {
  color: var(--fistudy-base);
}

.notice-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 12px;
}

.notice-badge--urgent {
  background-color: #fee2e2;
  color: var(--nb-color-urgent);
  border: 1px solid #fca5a5;
}

.notice-badge--latest {
  background-color: #d1fae5;
  color: var(--nb-color-latest);
  border: 1px solid #6ee7b7;
}

.notice-badge--academic {
  background-color: #fef3c7;
  color: var(--nb-color-academic);
  border: 1px solid #fcd34d;
}

.notice-badge--general {
  background-color: #dbeafe;
  color: var(--nb-color-general);
  border: 1px solid #93c5fd;
}

.notice-card-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--fistudy-black);
  margin-bottom: 10px;
  line-height: 1.3;
}

.notice-card-body p {
  font-size: 14.5px;
  line-height: 22px;
  color: var(--fistudy-gray);
  margin-bottom: 0;
}

/* Expanded sliding details panel */
.notice-expanded-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0, 1, 0, 1);
  border-top: 1.5px dashed var(--fistudy-bdr-color);
  margin-top: 0;
  padding-top: 0;
}

.notice-card.expanded .notice-expanded-details {
  max-height: 500px;
  margin-top: 18px;
  padding-top: 18px;
  transition: max-height 300ms cubic-bezier(1, 0, 1, 0);
}

.notice-attachment-box {
  background-color: #f7f9ff;
  border: 1px solid #e1e8fa;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.notice-attachment-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-attachment-info i {
  font-size: 24px;
  color: var(--nb-color-urgent);
}

.notice-attachment-text h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fistudy-black);
  margin: 0;
}

.notice-attachment-text span {
  font-size: 12px;
  color: var(--fistudy-gray);
}

.notice-download-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  background-color: var(--fistudy-base);
  color: var(--fistudy-white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 250ms ease;
}

.notice-download-btn:hover {
  background-color: var(--fistudy-black);
  color: var(--fistudy-white);
}

/* Card footer row */
.notice-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}

.notice-expand-toggle-btn {
  border: none;
  background: transparent;
  font-family: var(--fistudy-font);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fistudy-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 250ms ease;
  padding: 0;
}

.notice-expand-toggle-btn:hover {
  color: var(--fistudy-black);
}

.notice-expand-toggle-btn i {
  font-size: 12px;
  transition: transform 250ms ease;
}

.notice-card.expanded .notice-expand-toggle-btn i {
  transform: rotate(180deg);
}

/* Empty bulletin state */
.notice-empty-state {
  background-color: var(--fistudy-white);
  border: 1.5px dashed var(--fistudy-bdr-color);
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  color: var(--fistudy-gray);
}

.notice-empty-state i {
  font-size: 44px;
  color: #d1dbe8;
  margin-bottom: 16px;
  display: block;
}

.notice-empty-state h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fistudy-black);
  margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .notice-board-layout {
    flex-direction: column;
  }
  
  .notice-sidebar {
    width: 100%;
    position: static;
  }
  
  .notice-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .notice-sidebar-grid {
    grid-template-columns: 1fr;
  }
  
  .notice-card {
    padding: 20px 20px;
  }
}
