@import 'tailwindcss';

.hero-bg {
    background-image: url('assets/media/images/2600x1200/bg-1.png');
}

.channel-stats-bg {
    background-image: url('/assets/media/images/2600x1200/bg-3.png');
    background-size: cover;
    background-position: center;
}

.dark .channel-stats-bg {
    background-image: url('/assets/media/images/2600x1200/bg-3-dark.png');
}

/* Dropzone — border color */
.dropzone {
    border-color: #e7e3e4 !important;
}

/* Summernote — restaure les listes réinitialisées par Tailwind */
.note-editable ul { list-style: disc !important; padding-left: 1.5rem !important; margin: 0.5rem 0 !important; }
.note-editable ol { list-style: decimal !important; padding-left: 1.5rem !important; margin: 0.5rem 0 !important; }
.note-editable li { display: list-item !important; }
.note-editable ul ul { list-style: circle !important; }
.note-editable ul ul ul { list-style: square !important; }
.dropzone:hover {
    border-color: var(--primary) !important;
}

/* ApexCharts — légende inline */
.apexcharts-legend {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px 12px !important;
}
.apexcharts-legend-series {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    margin: 0 !important;
}

/* FullCalendar — Metronic theme */
.fc {
    font-family: inherit !important;
    font-size: var(--text-sm, 0.875rem) !important;
    line-height: var(--text-sm--line-height, 1.5) !important;
    --fc-list-event-hover-bg-color: var(--accent);
  }
  .fc * {
    font-family: inherit;
  }
  .fc-header-toolbar {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .fc-toolbar-title {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    font-family: inherit;
  }
  .fc-toolbar-chunk {
    display: inline-flex;
    align-items: center;
    background-color: var(--background);
    line-height: 1;
  }
  .fc-button-group {
    display: inline-flex;
    align-items: center;
  }
  .fc-button {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    height: calc(var(--spacing) * 8.5);
    gap: calc(var(--spacing) * 1.5);
    border-style: solid;
    border-width: 1px;
    border-color: var(--border);
    background-color: transparent;
    padding-inline: calc(var(--spacing) * 3);
    color: var(--accent-foreground);
    font-family: inherit;
    font-size: var(--text-2sm, 0.8125rem) !important;
    line-height: var(--text-2sm--line-height, 1.25) !important;
    transition-property: color, box-shadow;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  }
  .fc-button:focus-visible {
    outline: none;
  }
  .fc-button:disabled {
    pointer-events: none;
    opacity: 50%;
    cursor: not-allowed;
  }
  .fc-button-group .fc-button:not(:last-child),
  .fc-toolbar-chunk > .fc-button:not(:last-child) {
    border-inline-end: none !important;
  }
  .fc-button-group .fc-button:first-child,
  .fc-toolbar-chunk > .fc-button:first-child {
    border-start-start-radius: var(--radius-md) !important;
    border-end-start-radius: var(--radius-md) !important;
  }
  .fc-button-group .fc-button:not(:first-child) {
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
  }
  .fc-button-group .fc-button:last-child,
  .fc-toolbar-chunk > .fc-button:last-child {
    border-start-end-radius: var(--radius-md) !important;
    border-end-end-radius: var(--radius-md) !important;
  }
  .fc-button-group .fc-button:not(:last-child) {
    border-start-end-radius: 0 !important;
    border-end-end-radius: 0 !important;
  }
  .fc-button .fc-icon,
  .fc-button .fc-icon::before,
  .fc-button .fc-icon::after {
    font-size: 1rem !important;
    color: var(--muted-foreground) !important;
    fill: var(--muted-foreground) !important;
    position: relative !important;
  }
  .fc-today-button {
    border-radius: var(--radius-md) !important;
    border-inline-end: 1px solid var(--border) !important;
  }
  .fc-dayGridMonth-button,
  .fc-timeGridWeek-button,
  .fc-timeGridDay-button,
  .fc-listWeek-button,
  .fc-listDay-button,
  .fc-listMonth-button,
  .fc-listYear-button {
    min-width: 4rem !important;
  }
  @media (hover: hover) {
    .fc-button:hover:not(:disabled),
    .fc-button:focus:not(:disabled) {
      background-color: var(--accent) !important;
      color: var(--accent-foreground) !important;
    }
  }
  .fc-button:hover:not(:disabled) .fc-icon,
  .fc-button:hover:not(:disabled) .fc-icon::before,
  .fc-button:hover:not(:disabled) .fc-icon::after,
  .fc-button:focus:not(:disabled) .fc-icon,
  .fc-button:focus:not(:disabled) .fc-icon::before,
  .fc-button:focus:not(:disabled) .fc-icon::after {
    color: var(--accent-foreground) !important;
    fill: var(--accent-foreground) !important;
  }
  .fc-button-primary {
    background-color: transparent !important;
    color: var(--accent-foreground) !important;
    border-color: var(--border) !important;
  }
  .fc-button-primary .fc-icon,
  .fc-button-primary .fc-icon::before,
  .fc-button-primary .fc-icon::after {
    color: var(--muted-foreground) !important;
    fill: var(--muted-foreground) !important;
  }
  .fc-button-active {
    background-color: var(--accent) !important;
    color: var(--accent-foreground) !important;
    border-color: var(--border) !important;
  }
  @media (hover: hover) {
    .fc-button-active:hover:not(:disabled) {
      background-color: var(--accent) !important;
      color: var(--accent-foreground) !important;
    }
  }
  .fc-button-active .fc-icon,
  .fc-button-active .fc-icon::before,
  .fc-button-active .fc-icon::after {
    color: var(--accent-foreground) !important;
    fill: var(--accent-foreground) !important;
  }
  .fc-theme-standard td,
  .fc-theme-standard th {
    border-color: var(--border) !important;
  }
  .fc-col-header-cell {
    background-color: color-mix(in oklab, var(--muted) 50%, transparent);
    padding: 0.5rem !important;
  }
  .fc-col-header-cell-cushion {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--muted-foreground);
    font-family: inherit;
  }
  .fc-daygrid-day {
    background-color: var(--background);
  }
  .fc-daygrid-day-top {
    font-size: var(--text-2xs);
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    font-family: inherit;
    padding: 0.5rem !important;
  }
  .fc-daygrid-day-number {
    font-size: var(--text-2xs);
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    font-family: inherit;
  }
  .fc-day-today {
    background-color: color-mix(in oklab, var(--accent) 50%, transparent) !important;
  }
  .fc-day-today .fc-daygrid-day-number {
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
  }
  .fc-event:not(.fc-list-event) {
    border-radius: calc(var(--radius) - 2px);
    border-width: 0;
    padding: 0.25rem 0.5rem !important;
    margin: 0.125rem !important;
    cursor: pointer;
  }
  .fc-event:not(.fc-list-event):hover {
    opacity: 0.9;
  }
  .fc-event-title {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    color: inherit;
    padding: 0 !important;
  }
  .fc-h-event .fc-event-title {
    font-size: 0.7rem;
  }
  .fc-event-time {
    font-size: var(--text-xs);
    color: inherit;
    padding: 0 !important;
  }
  .fc-popover {
    border: 1px solid var(--border) !important;
    background-color: var(--background) !important;
    border-radius: var(--radius-md) !important;
  }
  .fc-popover-header {
    background-color: color-mix(in oklab, var(--muted) 50%, transparent);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    font-family: inherit;
    padding: 0.5rem !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .fc-popover-body {
    font-size: var(--text-sm);
    color: var(--foreground);
    font-family: inherit;
    padding: 0.5rem !important;
  }
  .fc-more-link {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    font-family: inherit;
  }
  .fc-daygrid-event {
    border-radius: calc(var(--radius) - 2px);
  }
  .fc-timegrid-slot,
  .fc-timegrid-col {
    border-color: var(--border) !important;
  }
  .fc-timegrid-slot-label-cushion,
  .fc-timegrid-axis-cushion,
  .fc-timegrid-axis-frame {
    font-size: var(--text-2xs);
    color: var(--muted-foreground);
    font-family: inherit;
  }
  .fc-list tbody tr {
    background-color: var(--background) !important;
  }
  .fc-list tbody tr:hover {
    background-color: var(--accent) !important;
  }
  .fc-list tbody tr td {
    background-color: var(--background) !important;
    color: var(--foreground) !important;
  }
  .fc-list tbody tr:hover td {
    background-color: var(--accent) !important;
    color: var(--accent-foreground) !important;
  }
  .fc-list-event-title {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    font-family: inherit;
    color: var(--foreground) !important;
  }
  .fc-list-event-time {
    font-size: var(--text-xs);
    font-family: inherit;
    color: var(--muted-foreground) !important;
  }
  .fc-list tbody tr:hover .fc-list-event-time {
    color: var(--accent-foreground) !important;
  }
  .fc-list .fc-list-event-dot {
    background-color: var(--muted-foreground) !important;
  }

/* KT Select — tags compacts */
.kt-select-tag {
    padding-inline: calc(var(--spacing) * 1.5);
    padding-block: calc(var(--spacing) * 0.5);
    overflow: visible;
    max-width: none;
    font-size: var(--text-xs);
}