/* Estilos personalizados para o painel Kanban */

/* Variáveis de cores */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --background: #f9fafb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --transition: transform 0.2s ease;
}

/* Layout principal */
.main-kanban {
    display: flex;
    width: 100%;
    height: calc(100vh - 160px);
    overflow: hidden;
}

/* Estilização da barra de rolagem horizontal */
.scales-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    /* height: 100%; */
    scroll-behavior: smooth;
    padding: 0;
}

.kanban-board {
    display: flex;
    flex-wrap: nowrap;
    min-width: min-content;
    height: 100%;
    padding: 0px 0px;
    gap: 16px;
}

.scales-container::-webkit-scrollbar {
    height: 0;
    width: 0;
    display: none;
}

.scales-container::-webkit-scrollbar-track {
    background: transparent;
}

.scales-container::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/* Estilização da barra de rolagem vertical nas colunas */
.kanban-column-content, .members-column {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: auto;
    list-style-type: none;
}

.kanban-column-content::-webkit-scrollbar, .members-column::-webkit-scrollbar, .week-container::-webkit-scrollbar {
    width: 0;
    display: none;
}

.kanban-column-content::-webkit-scrollbar-track, .members-column::-webkit-scrollbar-track, .week-container::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-column-content::-webkit-scrollbar-thumb, .members-column::-webkit-scrollbar-thumb, .week-container::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/* Botões de navegação horizontal */
.navigation-btn {
    transition: all 0.3s ease;
    z-index: 20;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    opacity: 0.8;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navigation-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.navigation-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.navigation-btn-left {
    left: 5px;
}

.navigation-btn-right {
    right: 5px;
}

.navigation-btn.opacity-50 {
    /* cursor: default; */
    pointer-events: none;
    opacity: 0.3;
}

/* Estilização das colunas de escala */
.escala-column, .kanban-column {
    min-width: 240px;
    max-width: 240px;
    height: 100%;
    /* display: flex; */
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
}

/* Filtro de integrantes */
#filtroIntegrantes {
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.integrante-filtrado {
    display: none;
}

/* Botões e inputs estilizados */
button, input[type="submit"] {
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

input[type="text"], input[type="date"] {
    transition: var(--transition);
    border-radius: var(--radius-sm);
}


/* Animação para o botão de adicionar */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

#addColumnBtn {
    position: relative;
    overflow: hidden;
}

#addColumnBtn:hover {
    animation: pulse 1.5s infinite;
}

/* Estilização dos containers de função */
.funcao-container {
    list-style-type: none;
    min-height: 24px;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-kanban {
        flex-direction: column;
    }

    .kanban-column, .escala-column {
        width: 100%;
        max-width: 100%;
        height: auto;
        /* max-height: 40vh; */
    }

    .members-column {
        max-height: 30vh;
    }

    .scales-container {
        /* max-height: 60vh; */
        padding: 0;
    }

    .escala-column {
      min-width: 240px;
      max-width: 240px;
      height: 100%;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      overflow: hidden;
      transition: var(--transition);
      position: relative;
      margin-left: 0px !important;
    }

    .navigation-btn {
        width: 24px;
        height: 24px;
    }

    .navigation-btn-left {
        left: 2px;
    }

    .navigation-btn-right {
        right: 2px;
    }
}
