/* ===== GLOBAL UI REFINEMENTS ===== */
/* Applied to all modules for consistent, modern design */

/* ===== TAB NAVIGATION STYLES ===== */
.nav-tabs .nav-link {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
}

.nav-tabs .nav-link.active i {
    color: #fff !important;
}



/* ===== BUTTON STYLES ===== */
.btn-outline-secondary {
    font-size: 18px !important;
}

/* ===== ICON SIZES ===== */
.ti {
    font-size: 1.25rem;
}

.card-header .ti,
.card-footer .ti,
.btn .ti {
    font-size: 1.15rem;
}

/* ===== CARD EFFECTS ===== */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card.opacity-50 {
    opacity: 0.6;
}

.card.opacity-50:hover {
    opacity: 0.8;
}

/* ===== UTILITY CLASSES ===== */
.user-select-none {
    user-select: none;
}

/* ===== INLINE SECTIONS (VARIANTS, OPTIONS) ===== */
.variants-inline-section,
.options-inline-section {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 6px;
}

.variants-inline-section h6,
.options-inline-section h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.border-l {
    border: 2px solid var(--bs-primary);
}


#v-pills-tab .nav-link {
    justify-content: start;
    padding: 15px;
    border: 1px solid var(--bs-primary);
    margin: 5px 0;
}

.p-20 {
    padding: 0 0 20px 0
}

.bg-danger-subtle {
    background-color: #f4f4f4 !important;
    border-bottom: 1px solid #ccc;
}

.bg-danger-subtle .text-danger {
    color: #000;
}

.color-preview {
    background-color: rgb(25, 135, 84);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    border-radius: 5px;
}

.border-danger .edit-mode-hide {
    display: none;
}

#detail-sections-container {
    padding-top: 30px;
}

/* Tooltip Styles */
.tqk-tooltip {
    position: absolute;
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid var(--bs-primary);
    font-size: 14px;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    word-wrap: break-word;
    transform: translateY(-5px);
}

.tqk-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Tam giác chỉ xuống (ở dưới tooltip) */
.tqk-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--bs-primary);
}

/* Tam giác trắng bên trong */
.tqk-tooltip::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid white;
    z-index: 1;
}