/* AnimaÃ§Ãµes suaves */
* {
    transition: all 0.2s ease-in-out;
}

/* Melhorar aparÃªncia do drag & drop */
.kanban-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.kanban-card:hover {
    transform: translateY(-2px);
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* Scrollbar horizontal mais grossa para o Kanban */
#kanban-container::-webkit-scrollbar {
    height: 16px;
}

#kanban-container::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

#kanban-container::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

#kanban-container::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
    border-color: #d1d5db;
}

#kanban-container::-webkit-scrollbar-thumb:active {
    background: #1d4ed8;
}
/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Cards no Kanban com cores sutis */
.kanban-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 4px 0 0 4px;
}

/* Responsividade do menu lateral */
@media (max-width: 640px) {
    .sm\:ml-64 {
        margin-left: 0;
    }
}

/* ============================================
   WordPress-Style Table Improvements
   ============================================ */

/* Zebra striping para linhas da tabela */
.wp-list-table tbody tr:nth-child(even) {
    background-color: #f6f7f7;
}

.wp-list-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.wp-list-table tbody tr:hover {
    background-color: #f0f0f1 !important;
}

/* Sticky header - ajustado para funcionar corretamente */
.wp-list-table thead {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #f6f7f7;
}

.wp-list-table thead th {
    background-color: #f6f7f7 !important;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Grid lines - estilo Excel */
.wp-list-table th,
.wp-list-table td {
    border: 1px solid #ddd;
    border-width: 0 1px 1px 0;
}

.wp-list-table th:first-child,
.wp-list-table td:first-child {
    border-left-width: 1px;
}

.wp-list-table thead tr:first-child th {
    border-top-width: 1px;
}

/* Container da tabela - permitir scroll vertical */
.table-container {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

/* Tablenav - barra de navegaÃ§Ã£o/filtros */
.tablenav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
    border-bottom: none;
    min-height: 3rem;
}

.tablenav.bottom {
    border-top: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
    border-bottom: none;
}

.tablenav .alignleft {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* PaginaÃ§Ã£o estilo WordPress */
.tablenav-pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.displaying-num {
    color: #6b7280;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.pagination-links {
    display: flex;
    gap: 0.25rem;
}

.pagination-links a,
.pagination-links span.page-numbers {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    min-width: 2rem;
    text-align: center;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #2563eb;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.pagination-links a:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.pagination-links .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    font-weight: 600;
}

.pagination-links .disabled {
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.paging-input {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.paging-input input {
    width: 3rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Search box externa (fora do card) */
.search-box-external {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-box-external input[type="search"],
.search-box-external input[type="text"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    min-width: 200px;
}

.search-box-external button,
.search-box-external a {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.search-box-external button:hover,
.search-box-external a:hover {
    background: #1d4ed8;
}

.search-box-external a.clear-btn {
    background: #6b7280;
}

.search-box-external a.clear-btn:hover {
    background: #4b5563;
}

/* Per page selector */
.per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.per-page-selector select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .tablenav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .tablenav-pages {
        width: 100%;
        justify-content: center;
    }

    .search-box-external {
        flex-direction: column;
        width: 100%;
    }

    .search-box-external input[type="search"],
    .search-box-external input[type="text"] {
        width: 100%;
    }
}

/* ============================================
   Kanban Sticky Header
   ============================================ */

/* Cabeçalho fixo do Kanban */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: white;
    padding-bottom: 1rem;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Scrollbar horizontal mais grossa para os cabeçalhos */
#kanban-headers-container::-webkit-scrollbar {
    height: 16px;
}

#kanban-headers-container::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

#kanban-headers-container::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

#kanban-headers-container::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
    border-color: #d1d5db;
}

#kanban-headers-container::-webkit-scrollbar-thumb:active {
    background: #1d4ed8;
}

/* Scrollbar para o conteúdo (mais discreta) */
#kanban-content-container::-webkit-scrollbar {
    height: 8px;
}

#kanban-content-container::-webkit-scrollbar-track {
    background: transparent;
}

#kanban-content-container::-webkit-scrollbar-thumb {
    background: transparent;
}