.app-header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container {
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
    color: #B9000E;
    font-weight: bold;
}

.brand-name-des {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* Custom Styles cho trang Quản lý Tiêu chí */
.status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-criteria {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-criteria:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tree-item {
    border-left: 3px solid #e9ecef;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    transition: border-color 0.3s ease;
}

.tree-item:hover {
    border-left: 3px solid #0d6efd;
}

.tree-item-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tree-item-header:hover {
    background: linear-gradient(135deg, #e7f1ff 0%, #f8f9fa 100%);
    border-color: #0d6efd;
}

.criteria-level-1 {
    border-left: 3px solid #0d6efd;
    border-radius: 6px;
    background: #f8f9ff;
}

.criteria-level-2 {
    border-left: 3px solid #0d6efd;
    border-radius: 6px;
    background: #f8f7ff;
}

.criteria-level-3 {
    border-left: 3px solid #0d6efd;
    background: #f8f9fa;
}

.action-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.criteria-content {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid #e9ecef;
}

.criteria-detail {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #0d6efd;
}

.criteria-detail-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.criteria-detail-content {
    color: #6c757d;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-state i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.filter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.feedback-badge {
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
}

/* ========================================
   TENANT MANAGEMENT - LICENSE DISPLAY
   ======================================== */

/* Badge cho trạng thái license */
.license-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.license-status.active {
    background-color: #28a745;
    color: white;
}

.license-status.warning {
    background-color: #ffc107;
    color: #212529;
}

.license-status.expired {
    background-color: #dc3545;
    color: white;
}

.license-status.inherited {
    background-color: #17a2b8;
    color: white;
    border: 2px dashed #0c5460;
}

/* Alert cho license kế thừa */
.alert-inherited-license {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196F3;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.alert-inherited-license i {
    color: #1976D2;
    margin-right: 5px;
}

/* Tooltip cho license info */
.license-tooltip {
    position: relative;
    cursor: help;
}

.license-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    font-size: 0.85rem;
}

/* Card cho thông tin chuyển đổi tenant */
.convert-tenant-card {
    border: 2px solid #ffc107;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.convert-tenant-card .card-header {
    background: linear-gradient(135deg, #fff3cd 0%, #ffc107 100%);
    border-bottom: 2px solid #ffc107;
}

/* Icon animation cho license kế thừa */
@keyframes pulse-inherit {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.license-inherited-icon {
    animation: pulse-inherit 2s infinite;
    color: #17a2b8;
}

/* Highlight tenant trong cây phân cấp */
.tenant-tree-item {
    padding: 8px;
    margin: 4px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tenant-tree-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.tenant-tree-item.has-inherited-license {
    border-left: 3px solid #17a2b8;
    background-color: #e3f2fd;
}

/* Badge cho khả năng chuyển đổi */
.can-convert-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

/* Warning box cho chuyển đổi tenant */
.convert-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.convert-warning h5 {
    color: #856404;
    margin-bottom: 12px;
}

.convert-warning ul li {
    color: #856404;
    margin-bottom: 8px;
}

/* Comparison table cho before/after */
.comparison-table {
    border: 1px solid #dee2e6;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

.comparison-table td {
    vertical-align: middle;
}

.comparison-table .before-state {
    background-color: #fff3cd;
}

.comparison-table .after-state {
    background-color: #d4edda;
}

/* Button cho chuyển đổi tenant */
.btn-convert-tenant {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-convert-tenant:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    color: white;
}

/* License inheritance chain visualization */
.license-chain {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 8px;
}

.license-chain-item {
    padding: 4px 8px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.85rem;
}

.license-chain-arrow {
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .license-chain {
        flex-direction: column;
        align-items: flex-start;
    }

    .license-chain-arrow {
        transform: rotate(90deg);
    }
}

body.body-area.app-loaded{
    background-image: url(/src/assets/img/twd_bglogin.jpg);
    background-color: #aa0003;
}

.app-content-area {
    margin-bottom: 30px;
}

