/* Custom styles for data_preparation page */

/* Style for active tree item */
.tree-item.active > div {
    background-color: #e0f2fe; /* Tailwind's sky-100 */
    color: #0ea5e9; /* Tailwind's sky-500 */
    font-weight: 600;
}

.tree-item > div:hover {
    background-color: #f0f9ff; /* Tailwind's sky-50 */
}

/* Subtle folder/file icons */
.tree-icon {
    margin-right: 0.5rem;
    color: #9ca3af; /* Tailwind's gray-400 */
}

.tree-item.active .tree-icon {
    color: #0ea5e9; /* Tailwind's sky-500 */
}

/* Minimalist table styling */
table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background-color: #f9fafb; /* gray-50 */
    border-bottom: 2px solid #e5e7eb; /* gray-200 */
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151; /* gray-700 */
}

tbody td {
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    padding: 0.75rem 1rem;
    color: #4b5563; /* gray-600 */
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f9fafb; /* gray-50 */
}

/* Button styling (complementing Tailwind) */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background-color: #3b82f6; /* blue-500 */
    color: white;
}
.btn-primary:hover {
    background-color: #2563eb; /* blue-600 */
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
}
.btn-secondary:hover {
    background-color: #d1d5db; /* gray-300 */
    transform: translateY(-1px);
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Yellow folder icons */
.tree-icon.fa-folder,
.tree-icon.fa-folder-open {
    color: #FFD700; /* Gold color */
}

/* Reference Object Item Styling */
.ref-item {
    background-color: #f3f4f6; /* gray-100 */
    color: #4b5563; /* gray-600 */
    padding: 2px 6px;
    border-radius: 0.25rem; /* rounded */
    border: 1px solid #d1d5db; /* border-gray-300 */
    font-size: 0.75rem; /* text-xs */
    line-height: 1.25;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    position: relative;
    padding-left: 14px; /* Make space for the dot */
}

.ref-item:hover {
    border-color: #60a5fa; /* blue-400 */
    color: #1f2937; /* gray-800 */
}

.ref-item.selected {
    background-color: #dbeafe; /* blue-100 */
    border-color: #3b82f6; /* blue-500 */
    color: #1e40af; /* blue-800 */
    font-weight: 500;
}

/* Data marker dot */
.ref-item[data-has-data="true"]::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #22c55e; /* green-500 */
    border-radius: 50%;
}

.ref-item.selected[data-has-data="true"]::before {
    background-color: #1e40af; /* blue-800 */
}
