/* ========================================
   CLASSIFICAÇÃO PAGE
   ======================================== */

/* === CLASSIFICATION HEADER === */
.classificacao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.classificacao-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* === CLASSIFICATION CONTAINER === */
.classificacao-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* === CLASSIFICATION TABS === */
.classificacao-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.classificacao-tab {
    flex: 1;
    padding: 16px 24px;
    background: #f9fafb;
    border: none;
    border-right: 1px solid #e5e7eb;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.classificacao-tab:last-child {
    border-right: none;
}

.classificacao-tab:hover {
    background: #f3f4f6;
    color: #111827;
}

.classificacao-tab.active {
    background: #ffffff;
    color: #0068ab;
    font-weight: 600;
}

/* === TREE CONTAINER === */
.tree-container {
    padding: 16px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

/* === TREE ITEM === */
.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tree-item[data-level="1"] {
    padding-left: 12px;
}

.tree-item[data-level="2"] {
    padding-left: 36px;
}

.tree-item[data-level="3"] {
    padding-left: 60px;
}

.tree-item:hover {
    background: #f9fafb;
}

.tree-item.active {
    background: #e0f2fe;
    color: #0068ab;
}

.tree-item.active .tree-label {
    font-weight: 600;
}

/* === TREE TOGGLE === */
.tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tree-toggle:hover {
    background: #e5e7eb;
}

.tree-toggle i {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease;
}

.tree-toggle.expanded i {
    transform: rotate(90deg);
}

/* === TREE SPACER === */
.tree-spacer {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* === TREE ICON === */
.tree-icon {
    width: 18px !important;
    height: 18px !important;
    color: #6b7280;
    flex-shrink: 0;
}

.tree-item.active .tree-icon {
    color: #0068ab;
}

/* === TREE LABEL === */
.tree-label {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    line-height: 20px;
    user-select: none;
}

/* === TREE CHILDREN === */
.tree-children {
    display: none;
}

.tree-children.expanded {
    display: block;
}

/* === CUSTOM SCROLLBAR === */
.tree-container::-webkit-scrollbar {
    width: 8px;
}

.tree-container::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 4px;
}

.tree-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.tree-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .classificacao-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .classificacao-actions {
        width: 100%;
    }

    .classificacao-actions button {
        flex: 1;
    }

    .classificacao-tabs {
        flex-direction: column;
    }

    .classificacao-tab {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .classificacao-tab:last-child {
        border-bottom: none;
    }
}
