.button-toggle-theme:focus, .button-toggle-theme:active
    box-shadow: none
    outline: 0px

.add-url-box
    max-width: 960px
    margin: 4rem auto

.add-url-component
    margin: 0.5rem auto

.add-url-group
    width: 100%

button.add-url
    width: 100%

.folder-dropdown-menu
    width: 500px
    max-width: calc(100vw - 3rem)

.folder-dropdown-menu .input-group
    display: flex
    padding-left: 5px
    padding-right: 5px

.sortable-header
  cursor: pointer
  user-select: none

.metube-tabs
    margin-top: 3.5rem
    font-size: 1.1rem

    .nav-link
        cursor: pointer

button:hover
    text-decoration: none

th
    border-top: 0
    border-bottom-width: 3px !important
    vertical-align: middle !important
    white-space: nowrap

td
    vertical-align: middle

.disabled
    opacity: 0.5
    pointer-events: none

.folder-group-header
    td
        background: var(--bs-secondary-bg)
        font-weight: 600
        color: var(--bs-secondary-color)
        padding-top: 0.4rem
        padding-bottom: 0.4rem

    .folder-group-count
        display: inline-block
        margin-left: 0.5rem
        padding: 0.1rem 0.5rem
        border-radius: 1rem
        background: var(--bs-tertiary-bg)
        font-size: 0.75rem
        font-weight: 500

.form-switch
  input
    margin-top: 5px

.download-progressbar
    width: 12rem
    margin-left: auto

.batch-panel
  margin-top: 15px
  border: 1px solid #ccc
  border-radius: 8px
  padding: 15px
  background-color: #fff
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1)

.batch-panel-header
  border-bottom: 1px solid #eee
  padding-bottom: 8px
  margin-bottom: 15px
  h4
    font-size: 1.5rem
    margin: 0

.batch-panel-body
  textarea.form-control
    resize: vertical

.batch-status
  font-size: 0.9rem
  color: #555

.d-flex.my-3
  margin-top: 1rem
  margin-bottom: 1rem

.modal.fade.show
  background-color: rgba(0, 0, 0, 0.5)

.modal-header
  border-bottom: 1px solid #eee

.modal-body
  textarea.form-control
    resize: vertical

.add-url
  display: inline-flex
  align-items: center
  justify-content: center

  .spinner-border
    margin-right: 0.5rem

::ng-deep .ng-select
    flex: 1
    .ng-select-container
        min-height: 38px
    .ng-value
        white-space: nowrap
        overflow: visible
    .ng-dropdown-panel
        .ng-dropdown-panel-items
            max-height: 300px
            .ng-option
                white-space: nowrap
                overflow: visible
                text-overflow: ellipsis

:host
  display: flex
  flex-direction: column
  min-height: 100vh

main
  flex-grow: 1

.footer
  width: 100%
  padding: 10px 0
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.1))

  .footer-content
    display: flex
    justify-content: center
    align-items: center
    gap: 20px
    color: #fff
    font-size: 0.9rem

    .version-item
      display: flex
      align-items: center
      gap: 8px

      .version-label
        font-size: 0.75rem
        text-transform: uppercase
        letter-spacing: 0.5px
        opacity: 0.7

      .version-value
        font-family: monospace
        font-size: 0.85rem
        padding: 2px 6px
        background: rgba(255,255,255,0.1)
        border-radius: 4px

    .version-separator
      width: 1px
      height: 16px
      background: rgba(255,255,255,0.2)
      margin: 0 4px

    .github-link
      display: flex
      align-items: center
      gap: 6px
      color: #fff
      text-decoration: none
      font-size: 0.85rem
      padding: 2px 8px
      border-radius: 4px
      transition: background-color 0.2s ease

      &:hover
        background: rgba(255,255,255,0.1)
        color: #fff
        text-decoration: none

      i
        font-size: 1rem

.download-metrics
  display: flex
  align-items: center
  gap: 16px
  margin-left: 24px

  .metric
    display: flex
    align-items: center
    gap: 6px
    font-size: 0.9rem
    color: #adb5bd

    fa-icon
      font-size: 1rem

    span
      white-space: nowrap

.website-tag
  display: inline-block
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)
  color: white
  padding: 2px 8px
  border-radius: 4px
  font-size: 0.7rem
  font-weight: 600
  text-transform: uppercase
  letter-spacing: 0.5px
  margin-right: 8px
  white-space: nowrap
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)
  transition: all 0.2s ease

  &:hover
    transform: translateY(-1px)
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15)

.file-exists-indicator
  display: inline-block
  margin-right: 6px
  font-size: 0.9rem
  
  fa-icon
    vertical-align: middle

// Events display area
.events-container
  background: var(--bs-body-bg)
  border: 1px solid var(--bs-border-color)
  border-radius: 0.5rem
  overflow: hidden
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1)
  margin-top: 1rem

  .events-header
    padding: 0.75rem 1rem
    background: var(--bs-secondary-bg)
    border-bottom: 1px solid var(--bs-border-color)

    h6
      color: var(--bs-secondary-color)
      font-weight: 600
      display: flex
      align-items: center

      fa-icon
        opacity: 0.7

  .events-list
    max-height: 300px
    overflow-y: auto

  .event-item
    display: flex
    align-items: flex-start
    padding: 0.875rem 1rem
    border-bottom: 1px solid var(--bs-border-color)
    transition: background-color 0.2s

    &:last-child
      border-bottom: none

    &:hover
      background: var(--bs-tertiary-bg)

    .event-icon
      flex-shrink: 0
      width: 32px
      height: 32px
      display: flex
      align-items: center
      justify-content: center
      border-radius: 50%
      margin-right: 0.75rem

      fa-icon
        font-size: 1.1rem

    &.event-duplicate_skipped
      .event-icon
        background: rgba(255, 193, 7, 0.15)
        color: #ffc107

    .event-content
      flex: 1
      min-width: 0

      .event-message
        font-size: 0.9375rem
        color: var(--bs-body-color)
        margin-bottom: 0.25rem
        font-weight: 500

      .event-url
        font-size: 0.8125rem
        color: var(--bs-secondary-color)
        white-space: nowrap
        overflow: hidden
        text-overflow: ellipsis
        font-family: 'Courier New', monospace

    .event-time
      flex-shrink: 0
      font-size: 0.75rem
      color: var(--bs-secondary-color)
      margin-left: 0.75rem
      whitespace: nowrap
