.sidebar-brand {
    display: block;
}

.sidebar-brand .brand-link .brand-image {
    margin-left: auto;
    margin-right: auto;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    min-height: 50px;
    padding-bottom: 10px;
}

.sidebar-menu > .nav-item > .nav-treeview > .nav-item > .nav-link > i {
    margin-left: 10px;
}

.nav-item.disabled {
    cursor: not-allowed;
}

.nav-item.disabled:hover a, .nav-item.disabled.menu-open:hover a {
    background-color: initial !important;
    color: var(--lte-sidebar-color) !important;
}

.nav-item .bi {
    margin-right: 8px;
}

.nav-item.disabled a {
    pointer-events: none;
}

.sidebar-wrapper button {
    margin-bottom: 0.2rem;
}

.sidebar-wrapper button p {
    color: var(--lte-sidebar-color);
}

.sidebar-wrapper button:hover {
    background-color: var(--lte-sidebar-menu-active-bg);
}

.card-image-item img {
    height: 100px;
}

.card-image-item .card-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* uploading */

.card-uploading #dropzone {
  cursor: pointer;
  background: #f8f9fa;
}

.card-uploading .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.card-uploading .progress {
  height: 6px;
}

.card-uploading .dropzone-drop {
  border-style: dashed !important;
  border-color: #bababa !important;
}

/* playlists */

.playlist-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.selectable-image {
    cursor: pointer;
    transition: transform .15s;
}
.selectable-image:active {
    transform: scale(0.95);
}

.thumb-wrap {
    width: 96px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f1f1;
    margin-left: 56px;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-thumb-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.modal-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: .5s ease;
}

.modal-thumb:hover {
    opacity: 0.6;
}

.badge-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b3b;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 7px;
    border-radius: 20%;
    min-width: 22px;
    text-align: center;
    line-height: 1;
    display: none;
}

.file-name {
    font-size: 0.8rem;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drag-handle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    cursor: grab;
    user-select: none;
    touch-action: none;

    border-radius: 6px;
    background: #f1f1f1;
    font-size: 18px;
}

.drag-handle:active {
    cursor: grabbing;
    background: #e0e0e0;
}

.playlist-item .visible-from:disabled,
.playlist-item .visible-to:disabled {
    opacity: 0.6;
}

/* keep everything nicely aligned in one row */
.playlist-item {
    white-space: normal;
}

/* disabled date inputs look intentionally inactive */
.playlist-item .opacity-50 {
    background-color: #e9ecef;   /* Bootstrap disabled bg */
    cursor: not-allowed;
}

/* optional: tighten vertical alignment */
.playlist-item .form-select,
.playlist-item .form-control,
.playlist-item .btn-group {
    margin-top: 0;
}

.playlist-item .slide-url-input {
    font-family: var(--bs-font-monospace);
}

/* Slide-type selection tiles (Add slide modal) */
.slide-type-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid #e4eaf3;
    border-radius: 12px;
    background: #ffffff;
    color: #2d3a4a;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    min-height: 0;
    line-height: 1.3;
    letter-spacing: .01em;
    box-shadow: 0 1px 4px rgba(16, 33, 58, 0.06);
}

.slide-type-tile .tile-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    transition: background .15s ease, transform .15s ease;
}

.slide-type-tile i {
    font-size: 1.35rem;
    color: #3b82f6;
    line-height: 1;
    transition: color .15s ease, transform .15s ease;
}

.slide-type-tile .tile-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.slide-type-tile .tile-label strong {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
}

.slide-type-tile .tile-label small {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: #64748b;
}

.slide-type-tile:hover {
    border-color: #3b82f6;
    background: #f8fbff;
    color: #1d4ed8;
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.13);
}

.slide-type-tile:hover .tile-icon {
    background: #dbeafe;
    transform: scale(1.08);
}

.slide-type-tile:hover i {
    color: #1d4ed8;
}

.slide-type-tile:active {
    transform: translateX(0) scale(0.98);
    box-shadow: none;
}

.slide-type-tile:disabled,
.slide-type-tile[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Per-type icon accent colours */
#add-clock-slide .tile-icon    { background: #fef3c7; }
#add-clock-slide i             { color: #d97706; }
#add-clock-slide:hover .tile-icon { background: #fde68a; }
#add-clock-slide:hover i       { color: #b45309; }

#add-nameday-slide .tile-icon  { background: #f0fdf4; }
#add-nameday-slide i           { color: #16a34a; }
#add-nameday-slide:hover .tile-icon { background: #dcfce7; }
#add-nameday-slide:hover i     { color: #15803d; }

#add-url-slide .tile-icon      { background: #faf5ff; }
#add-url-slide i               { color: #9333ea; }
#add-url-slide:hover .tile-icon { background: #f3e8ff; }
#add-url-slide:hover i         { color: #7e22ce; }

#add-weather-slide .tile-icon  { background: #e0f2fe; }
#add-weather-slide i           { color: #0284c7; }
#add-weather-slide:hover .tile-icon { background: #bae6fd; }
#add-weather-slide:hover i     { color: #0369a1; }

#add-qr-slide .tile-icon       { background: #fff1f2; }
#add-qr-slide i                { color: #e11d48; }
#add-qr-slide:hover .tile-icon { background: #ffe4e6; }
#add-qr-slide:hover i          { color: #be123c; }

#add-rss-slide .tile-icon      { background: #fff7ed; }
#add-rss-slide i               { color: #ea580c; }
#add-rss-slide:hover .tile-icon { background: #ffedd5; }
#add-rss-slide:hover i         { color: #c2410c; }

.slide-type-tile.slide-type-tile-media {
    border-style: dashed;
    border-color: #b0bec5;
    background: #f8fafc;
    box-shadow: none;
}

.slide-type-tile.slide-type-tile-media .tile-icon {
    background: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.slide-type-tile.slide-type-tile-media i {
    font-size: 1.2rem;
    color: #607d8b;
}

.slide-type-tile.slide-type-tile-media:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.slide-type-tile.slide-type-tile-media:hover i {
    color: #1d4ed8;
}

.playlist-item .row {
    row-gap: .5rem;
}

/* notifications */
@media (max-width: 576px) {
  #toastContainer {
    left: 0;
    right: 0;
    top: 0;
    padding: 0.5rem;
  }

  #toastContainer .toast {
    width: 100%;
  }
}

/* simple-datatables global visual style */
.datatable-wrapper thead th {
    background-color: #f5f8fc;
    font-weight: 600;
    white-space: nowrap;
}

.datatable-wrapper .datatable-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.datatable-wrapper .datatable-search .datatable-input {
    min-width: 220px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.datatable-wrapper .datatable-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.datatable-wrapper .datatable-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.datatable-wrapper .datatable-pagination .datatable-pagination-list-item-link {
    border-radius: 0.375rem;
}

/* user active switch panel */
.user-active-panel-wrap {
    max-width: 360px;
}

.user-active-panel {
    background: linear-gradient(135deg, #eaf4ff 0%, #d8ecff 100%);
    border: 1px solid #bcdcff;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
}

