/* Add Factor Page Styles */
.card-header-custom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.avatar-md {
    height: 3rem;
    width: 3rem;
}

.alert-soft-primary {
    background-color: rgba(85, 110, 230, 0.08);
    border: 1px solid rgba(85, 110, 230, 0.2);
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.12);
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.12);
}

#searchResults .list-group-item {
    cursor: pointer;
    border: none;
    padding: 0.75rem 1rem;
}

#searchResults .list-group-item:hover {
    background-color: rgba(85, 110, 230, 0.08);
}

#searchResults .list-group-item.active {
    background-color: rgba(85, 110, 230, 0.15);
    color: #556ee6;
}

body[data-layout-mode="dark"] .card {
    background-color: #191b1a;
}

body[data-layout-mode="dark"] .card-header-custom {
    background-color: #060c17 !important;
}

/* Quick Debt List */
.quick-debt-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.quick-debt-item {
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.15);
    transition: all 0.2s ease;
}

.quick-debt-item:hover {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.25);
    transform: translateY(-1px);
}

.quick-debt-rank {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.quick-debt-name {
    font-size: 0.85rem;
    margin: 0 0.25rem;
}

.quick-debt-amount {
    font-size: 0.8rem;
    white-space: nowrap;
}

body[data-layout-mode="dark"] .quick-debt-item {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

body[data-layout-mode="dark"] .quick-debt-item:hover {
    background: rgba(220, 53, 69, 0.18);
}
