/**
 * Badges Component
 * Reusable badge/label styling for status, types, categories
 */

/* Base Badge */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

/* Status Badge Variants */
.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

.badge-primary {
    background: rgba(222, 84, 153, 0.15);
    color: #c14284;
}

.badge-dark {
    background: #d6d8db;
    color: #1b1e21;
}

/* Badge Sizes */
.badge-sm {
    padding: 2px 8px;
    font-size: 0.65rem;
}

.badge-lg {
    padding: 6px 16px;
    font-size: 0.875rem;
}

/* Badge with Icons */
.badge i {
    margin-right: 4px;
    font-size: 0.85em;
}

/* Status Badge (for transaction status, withdrawal status, etc.) */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge i {
    font-size: 0.9em;
}

.status-badge.status-completed,
.status-badge.status-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-pending,
.status-badge.status-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.status-failed,
.status-badge.status-danger,
.status-badge.status-rejected {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.status-processing,
.status-badge.status-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.status-cancelled,
.status-badge.status-secondary {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-badge.status-read,
.status-badge.status-delivered {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Message Type Badge */
.message-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.message-type-badge.type-welcome {
    background: #d4edda;
    color: #155724;
}

.message-type-badge.type-notification {
    background: #d1ecf1;
    color: #0c5460;
}

.message-type-badge.type-announcement {
    background: #fff3cd;
    color: #856404;
}

.message-type-badge.type-reminder {
    background: rgba(222, 84, 153, 0.15);
    color: #c14284;
}

.message-type-badge.type-promotion {
    background: #d4edda;
    color: #155724;
}

.message-type-badge.type-personal {
    background: #e7e8ea;
    color: #495057;
}

.message-type-badge.type-support {
    background: #d1ecf1;
    color: #0c5460;
}

.message-type-badge.type-warning {
    background: #f8d7da;
    color: #721c24;
}

.message-type-badge.type-congratulation {
    background: #d4edda;
    color: #155724;
}

.message-type-badge.type-information {
    background: #d1ecf1;
    color: #0c5460;
}

/* Priority Badge */
.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.priority-badge.priority-normal {
    background: #e2e3e5;
    color: #383d41;
}

.priority-badge.priority-high {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.priority-urgent {
    background: #f8d7da;
    color: #721c24;
}

/* Role Badge */
.role-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, #DE5499, #c14284);
    color: white;
}

.role-badge.role-super-admin {
    background: linear-gradient(135deg, #264143, #1a2e30);
    color: white;
}

.role-badge.role-user {
    background: #e2e3e5;
    color: #383d41;
}

/* Pill Badge (rounded fully) */
.badge-pill {
    border-radius: 50px;
}

/* Badge with Dot Indicator */
.badge-dot {
    position: relative;
    padding-left: 20px;
}

.badge-dot::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .badge-lg {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}
