@use "sass:color";

// Browse pages styles
// Common styles for browse pages like wydzial, jednostka, autorzy, zrodla

// Common header section
.modern-header {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;

  h1, h2 {
    color: #2c3e50;
    margin-bottom: 10px;

    &.page-title {
      font-size: 2.5rem;
    }

    .fi-foundation {
      margin-right: 15px;
      color: $primary-color;
    }

    .fi-book {
      margin-right: 10px;
    }
  }

  .subheader {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 15px;

    .fi-torso {
      margin-right: 5px;
    }
  }
}

// Stats items
.wydzial-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;

  .stat-item {
    background: #f8f9fa; // More neutral background
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef; // Subtle border instead of colored left border
    color: #6c757d; // Muted text color

    &.stat-jednostki {
      border-left: 3px solid #bdc3c7; // Subtle gray left border
    }

    &.stat-kola {
      border-left: 3px solid #bdc3c7; // Same subtle gray left border
    }

    &.stat-historyczne {
      border-left: 3px solid #bdc3c7; // Same subtle gray left border
    }

    div:first-child {
      font-size: 0.9rem;
      color: #7f8c8d;
    }

    div:last-child {
      font-size: 1.4rem;
      font-weight: 600;
      color: #2c3e50;
    }
  }
}

// Description section
.wydzial-description {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  line-height: 1.6;
}

// Navigation menu
.wydzial-nav {
  padding-top: 20px; // Add top padding to prevent breadcrumb obstruction

  .sticky {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 15px; // Additional top margin when sticky

    .sticky-container {
      padding: 15px 25px;

      ul.menu {
        margin: 0;

        a {
          color: #2c3e50;
          font-weight: 500;
          padding: 10px 15px;
          border-radius: 6px;
          transition: all 0.2s ease;

          &:hover {
            background: #f8f9fa;
          }

          .fi-home,
          .fi-torsos-all,
          .fi-clock {
            margin-right: 8px;
          }
        }
      }
    }
  }
}

// Section headers
.section-header {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;

  h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.8rem;

    .fi-home {
      margin-right: 10px;
      color: $primary-color;
    }

    .fi-torsos-all {
      margin-right: 10px;
      color: rgba($primary-color, 0.8);
    }

    .fi-clock {
      margin-right: 10px;
      color: rgba($primary-color, 0.5);
    }

    span {
      font-size: 0.8rem;
      color: #7f8c8d;
      font-weight: 400;
    }
  }
}

// Unit/Jednostka cards
.jednostka-card {
  background: white;
  border-radius: 6px;
  padding: 20px;
  padding-left: 30px; // Further reduced to match smaller icon position
  margin-bottom: 15px;
  transition: all 0.2s ease;
  position: relative;
  border: 2px solid #e9ecef;

  .jednostka-name a {
    color: #2c3e50; // Dark grey/black text by default
    text-decoration: none;
    font-weight: 600;

    &:hover {
      color: $primary-color;
    }
  }

  &:hover {
    border-color: rgba($primary-color, 0.3);
    background: rgba($primary-color, 0.02);
    transform: translateX(4px);
  }

  &.card-aktualne {
    border: 2px solid #e9ecef; // Same neutral border as default

    &:hover {
      border-color: rgba($primary-color, 0.3);
      background: rgba($primary-color, 0.02);
      transform: translateX(4px);
    }

    .card-icon {
      position: absolute;
      top: 15px;
      left: 10px; // Reduced left position to decrease margin
      color: #bdc3c7; // Neutral gray instead of green

      .fi-home {
        font-size: 1.2rem;
      }
    }
  }

  &.card-kola {
    border: 2px solid #e9ecef; // Same neutral border

    &:hover {
      border-color: rgba($primary-color, 0.3);
      background: rgba($primary-color, 0.02);
      transform: translateX(4px);
    }

    .card-icon {
      position: absolute;
      top: 15px;
      left: 10px; // Reduced left position to decrease margin
      color: #bdc3c7; // Neutral gray instead of green

      .fi-torsos-all {
        font-size: 1.2rem;
      }
    }
  }

  &.card-historyczne {
    border: 2px solid #e9ecef; // Same neutral border

    &:hover {
      border-color: rgba($primary-color, 0.3);
      background: rgba($primary-color, 0.02);
      transform: translateX(4px);
    }

    .card-icon {
      position: absolute;
      top: 15px;
      left: 10px; // Reduced left position to decrease margin
      color: #bdc3c7; // Neutral gray instead of green

      .fi-clock {
        font-size: 1.2rem;
      }
    }
  }

  .jednostka-name {
    a {
      color: #2c3e50;
      text-decoration: none;
      font-weight: 600;
      font-size: 1.1rem;
      line-height: 1.4;

      &:hover {
        color: rgba($primary-color, 0.8);

        &.link-aktualne {
          color: rgba($primary-color, 0.8);
        }

        &.link-kola {
          color: rgba($primary-color, 0.8);
        }

        &.link-historyczne {
          color: rgba($primary-color, 0.8);
        }
      }
    }
  }

  .jednostka-stats {
    font-size: 0.8rem;
    color: #6c757d; // Neutral gray color instead of green
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f8f9fa;

    .fi-torso,
    .fi-torsos-all,
    .fi-info {
      margin-right: 5px;
      color: #95a5a6; // Neutral gray for icons
    }
  }
}

// Unit page specific styles
.unit-header {
  margin-bottom: 30px;

  h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
  }
}

// Unit hierarchy section
.unit-hierarchy {
  margin-bottom: 25px;

  .hierarchy-card {
    &.hierarchy-parent {
      border-left: 4px solid color.adjust($primary-color, $lightness: 30%);
      background: color.adjust($primary-color, $lightness: 48%, $alpha: -0.9);

      h6 {
        margin-bottom: 10px;
        color: #2c3e50;

        .fi-arrow-up {
          margin-right: 5px;
        }
      }

      a {
        color: color.adjust($primary-color, $lightness: -10%);
        text-decoration: none;
        font-weight: 500;

        &:hover {
          color: $primary-color;
          text-decoration: underline;
        }
      }
    }

    &.hierarchy-children {
      border-left: 4px solid #95a5a6;
      background: rgba(#95a5a6, 0.08);

      h6 {
        margin-bottom: 10px;
        color: #2c3e50;

        .fi-arrow-down {
          margin-right: 5px;
        }
      }

      ul.no-bullet {
        margin: 0;

        li {
          margin-bottom: 5px;

          a {
            color: #7f8c8d;
            text-decoration: none;

            &:hover {
              color: color.adjust($primary-color, $lightness: -10%);
              text-decoration: underline;
            }
          }
        }
      }
    }
  }
}

// Search container
.search-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;

  .search-header {
    margin-bottom: 25px;

    h3 {
      color: #2c3e50;
      margin-bottom: 5px;

      .fi-magnifying-glass {
        margin-right: 10px;
      }
    }

    p {
      color: #7f8c8d;
      margin: 0;
      font-size: 0.9rem;
    }
  }
}

// Action buttons
.button-show-all {
  background: rgba($primary-color, 0.85);
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  color: white;

  &:hover {
    background-color: rgba($primary-color, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
  }

  .fi-list-bullet {
    margin-right: 8px;
  }
}

.button-search {
  background: $primary-color;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  color: white;

  &:hover {
    background-color: color.adjust($primary-color, $lightness: -10%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
  }

  .fi-magnifying-glass {
    margin-right: 8px;
    color: white;
  }
}

// Zrodla (Sources) specific styles
.zrodlo-card {
  background: white;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 15px;
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
  position: relative;

  &:hover {
    border-color: $primary-color;
    background: #fafbfc;
  }

  .zrodlo-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba($primary-color, 0.25);

    .fi-book {
      font-size: 1.5rem;
    }
  }

  .zrodlo-name {
    margin-bottom: 8px;

    a {
      color: #2c3e50;
      text-decoration: none;
      font-weight: 600;
      font-size: 1.1rem;
      line-height: 1.4;

      &:hover {
        color: $primary-color;
      }
    }
  }

  .zrodlo-details {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.3;
    padding-top: 8px;
    border-top: 1px solid #f8f9fa;

    .fi-alert {
      margin-right: 5px;
    }

    .fi-page-multiple {
      margin-right: 5px;
    }
  }
}

// Uczelnia page specific styles
.breadcrumbs-tips-wrapper {
  background-color: rgba(240, 240, 240, 0.85);
  border-bottom: 1px solid #d6d6d6;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 50px;
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

// News/Miniblog articles styling
.news-articles {
  margin-top: 20px;
}

.news-article-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;

  &:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba($primary-color, 0.3);
  }

  .article-date-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, color.adjust($primary-color, $lightness: 10%), $primary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba($primary-color, 0.3);

    .day {
      font-size: 1.4rem;
      line-height: 1;
    }

    .month {
      font-size: 0.7rem;
      text-transform: uppercase;
      margin-top: 2px;
    }

    .year {
      font-size: 0.65rem;
      opacity: 0.9;
    }
  }

  .article-content {
    flex: 1;
    min-width: 0; // Prevents text overflow

    .article-title {
      margin: 0 0 8px 0;
      font-size: 1.3rem;
      line-height: 1.3;

      a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.2s ease;

        &:hover {
          color: $primary-color;
        }
      }
    }

    .article-meta {
      font-size: 0.85rem;
      color: #7f8c8d;
      margin-bottom: 12px;

      .fi-calendar {
        margin-right: 5px;
        font-size: 0.9rem;
      }
    }

    .article-excerpt {
      color: #495057;
      line-height: 1.6;
      margin-bottom: 15px;
      font-size: 0.95rem;
    }

    .article-read-more {
      .read-more-link {
        color: $primary-color;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 5px;

        &:hover {
          color: color.adjust($primary-color, $lightness: -10%);
          gap: 8px;

          .fi-arrow-right {
            transform: translateX(2px);
          }
        }

        .fi-arrow-right {
          font-size: 0.8rem;
          transition: transform 0.2s ease;
        }
      }
    }
  }

  // Responsive adjustments
  @media screen and (max-width: 640px) {
    flex-direction: column;
    gap: 15px;

    .article-date-badge {
      width: 50px;
      height: 50px;
      align-self: flex-start;

      .day {
        font-size: 1.2rem;
      }
    }
  }
}

.news-admin-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  text-align: center;

  a {
    margin: 0 10px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;

    &:hover {
      color: $primary-color;
    }

    .fi-wrench,
    .fi-page-add {
      margin-right: 5px;
    }
  }
}

// Single article view
.single-article-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 30px 0;

  .article-header {
    padding: 40px 40px 30px;
    background: linear-gradient(135deg,
      color.adjust($primary-color, $lightness: 48%, $alpha: -0.85),
      color.adjust($primary-color, $lightness: 45%, $alpha: -0.95)
    );
    border-bottom: 1px solid #e9ecef;

    .article-breadcrumb {
      margin-bottom: 20px;

      .back-link {
        color: #6c757d;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 5px;

        &:hover {
          color: $primary-color;
          gap: 8px;

          .fi-arrow-left {
            transform: translateX(-2px);
          }
        }

        .fi-arrow-left {
          font-size: 0.9rem;
          transition: transform 0.2s ease;
        }
      }
    }

    .article-main-title {
      font-size: 2.2rem;
      color: #2c3e50;
      margin: 0 0 20px 0;
      line-height: 1.3;
      font-weight: 600;
    }

    .article-metadata {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      align-items: center;

      .metadata-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #7f8c8d;
        font-size: 0.95rem;

        i {
          color: rgba($primary-color, 0.7);
          font-size: 1rem;
        }

        time {
          font-weight: 500;
        }

        &.admin-link {
          margin-left: auto;

          a {
            color: #6c757d;
            text-decoration: none;
            transition: color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            background: white;

            &:hover {
              color: $primary-color;
              border-color: rgba($primary-color, 0.3);
              background: rgba($primary-color, 0.02);
            }

            .fi-pencil {
              font-size: 0.9rem;
            }
          }
        }
      }
    }
  }

  .article-body {
    padding: 40px;
    padding-bottom: 50px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;

    p {
      margin-bottom: 1.5rem;
    }

    h2, h3, h4, h5, h6 {
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: #2c3e50;
    }

    h2 {
      font-size: 1.8rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #e9ecef;
    }

    h3 {
      font-size: 1.5rem;
    }

    h4 {
      font-size: 1.3rem;
    }

    ul, ol {
      margin-bottom: 1.5rem;
      padding-left: 30px;

      li {
        margin-bottom: 0.5rem;
      }
    }

    blockquote {
      border-left: 4px solid $primary-color;
      padding-left: 20px;
      margin: 1.5rem 0;
      font-style: italic;
      color: #666;
    }

    img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 1.5rem 0;
    }

    a {
      color: $primary-color;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s ease;

      &:hover {
        border-bottom-color: $primary-color;
      }
    }

    code {
      background: #f8f9fa;
      padding: 2px 6px;
      border-radius: 4px;
      font-family: monospace;
      font-size: 0.9em;
    }

    pre {
      background: #f8f9fa;
      padding: 15px;
      border-radius: 8px;
      overflow-x: auto;
      margin: 1.5rem 0;

      code {
        background: none;
        padding: 0;
      }
    }

    table {
      width: 100%;
      margin: 1.5rem 0;
      border-collapse: collapse;

      th, td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #e9ecef;
      }

      th {
        background: #f8f9fa;
        font-weight: 600;
        color: #2c3e50;
      }

      tr:hover {
        background: rgba($primary-color, 0.02);
      }
    }
  }

  // Responsive adjustments
  @media screen and (max-width: 768px) {
    .article-header {
      padding: 30px 20px 20px;

      .article-main-title {
        font-size: 1.8rem;
      }

      .article-metadata {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;

        .metadata-item.admin-link {
          margin-left: 0;
          margin-top: 10px;
        }
      }
    }

    .article-body {
      padding: 30px 20px;
      padding-bottom: 40px;
      font-size: 1rem;
    }
  }
}

#rotating-tips {
  text-align: center;
  font-size: 14px;
  line-height: 1.4;

  .tip-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;

    .fi-lightbulb {
      margin-right: 5px;
    }
  }
}

.uczelnia-main-content {
  text-align: center;
  margin: 20px 0;
}

.main-page-button-primary {
  .fi-page-add {
    margin-right: 5px;
  }
}

.main-page-button-secondary {
  .fi-magnifying-glass {
    margin-right: 5px;
  }
}

.section-title {
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;

  .section-icon {
    margin-right: 8px;
    color: rgba($primary-color, 0.4);
  }
}

.wydzial-list,
.jednostka-list {
  margin-bottom: 20px;
}

.wydzial-card,
.jednostka-card-main {
  background: white;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
  position: relative;

  &:hover {
    border-color: rgba($primary-color, 0.3);
    background: rgba($primary-color, 0.02);
    transform: translateX(4px);
  }

  .arrow-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba($primary-color, 0.25);

    .fi-arrow-right {
      font-size: 1.2rem;
    }
  }

  a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    padding-right: 30px;

    &:hover {
      color: rgba($primary-color, 0.8);
    }
  }
}

.recent-publication-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6e6e6;

  a {
    font-size: 14px;
    line-height: 1.4;
    display: block;
  }

  .publication-meta {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
  }
}

.recent-abstract-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;

  a {
    font-size: 14px;
    line-height: 1.4;
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .abstract-content {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 5px;
  }

  .abstract-meta {
    font-size: 12px;
    color: #666;
  }
}

// Letter index navigation
.letter-index {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 30px;

  .letter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;

    .letter-pill {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 20px;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.2s ease;
      background: #f8f9fa;
      color: #2c3e50;
      border: 1px solid #e9ecef;

      &:hover:not(.active):not(.disabled) {
        background: rgba($primary-color, 0.08);
        border-color: rgba($primary-color, 0.3);
        color: rgba($primary-color, 0.9);
      }

      &.active {
        background: rgba($primary-color, 0.9);
        color: white;
        box-shadow: 0 2px 4px rgba($primary-color, 0.3);
        border: 1px solid rgba($primary-color, 0.9);
      }

      &.disabled {
        color: #bdc3c7;
        background: #f8f9fa;
        border-color: #e9ecef;
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
      }

      &.letter-single {
        min-width: 40px;
        text-align: center;
        padding: 8px 12px;
      }
    }
  }
}

// Modern pagination
.modern-pagination {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-top: 30px;
  text-align: center;

  .pagination-info {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
  }

  ul.pagination {
    display: inline-flex;
    gap: 5px;
    margin: 0;

    li {
      list-style: none;

      a, span {
        display: inline-flex;
        align-items: center;
        padding: 8px 12px;
        border-radius: 6px;
        text-decoration: none;
        transition: all 0.2s ease;
      }

      a {
        background: #f8f9fa;
        color: #2c3e50;
        border: 1px solid #e9ecef;

        &:hover {
          background: #e9ecef;
        }

        .fi-arrow-left,
        .fi-arrow-right {
          margin: 0 5px;
        }
      }

      span.current {
        background: $primary-color;
        color: white;
        font-weight: 600;
      }
    }
  }
}

// Forms and cards
.card {
  margin-bottom: 20px;
  border: 1px solid #e9ecef;

  .card-section {
    h6 {
      color: #2c3e50;
      margin-bottom: 15px;
      font-weight: 600;

      .fi-list,
      .fi-torsos-all,
      .fi-torsos,
      .fi-calendar,
      .fi-page-edit {
        margin-right: 5px;
      }
    }
  }
}

// Author links in forms
.author-checkbox-item {
  margin-bottom: 8px;

  label {
    margin-bottom: 0;
    display: inline;

    span.author-function {
      color: #7f8c8d;
      font-size: 0.9em;
    }
  }

  a.author-profile-link {
    margin-left: 5px;
    color: $primary-color;
    text-decoration: none;

    .fi-torso {
      font-size: 0.9rem;
    }
  }
}

// Author list items for browse/autorzy.html
.author-list-item {
  a {
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;

    &:hover {
      background: rgba($primary-color, 0.05);
      color: rgba($primary-color, 0.8);
      padding-left: 16px;
    }
  }
}

// Source (zrodlo) page specific styles
.source-header {
  margin-bottom: 30px;

  h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
  }
}

.source-quick-actions {
  text-align: center;
  margin-bottom: 30px;

  form {
    display: inline;
  }
}

.search-button-wrapper {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.form-hint {
  color: #7f8c8d;
  font-style: italic;
}

.source-sidebar {
  .external-ids-panel {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;

    h6 {
      color: #2c3e50;
      margin-bottom: 15px;
      font-weight: 600;

      .fi-link {
        margin-right: 5px;
      }
    }

    .id-badge {
      background: #ffffff;
      border: 1px solid #e9ecef;
      border-radius: 6px;
      padding: 12px;
      margin: 0;
      text-align: center;

      .id-label {
        color: #2c3e50;
        font-weight: 600;
        font-size: 0.85rem;
        margin-bottom: 4px;
      }

      a {
        color: $primary-color;
        text-decoration: none;
        font-family: monospace;
        font-size: 0.9rem;
      }

      .deleted-notice {
        color: #e74c3c;
        margin-top: 5px;
        font-size: 0.8rem;

        .fi-alert {
          margin-right: 3px;
        }
      }
    }
  }

  .disciplines-panel {
    margin-bottom: 30px;
    border-left: 4px solid #6c757d;

    h6 {
      color: #2c3e50;
      margin-bottom: 15px;
      font-weight: 600;

      .fi-book {
        margin-right: 5px;
      }
    }

    .accordion {
      border: none;
      margin-bottom: 0;

      .accordion-item {
        border: none;

        .accordion-title {
          background: #f8f9fa;
          padding: 12px 18px;
          border-radius: 4px;
          color: #495057;
          font-weight: 500;

          .fi-calendar {
            margin-right: 8px;
            font-size: 0.9rem;
          }

          .count-badge {
            background: #6c757d;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            margin-left: 10px;
          }
        }

        .accordion-content {
          padding: 15px 5px 5px 5px;
        }
      }
    }
  }
}
