.widget {
    display: flex;
    margin-bottom: 30px;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.widget .widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    padding: 20px;
    font-size: 2.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px 0 0 4px;
    transition: background-color 0.5s;
}

.widget .widget-content {
    position: relative;
    flex: 1;
    align-self: center;
    padding-left: 20px;
    margin: 0;
}

.widget .widget-content h2,
.widget .widget-content h4 {
    margin: 0 0 5px;
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
}

.widget .widget-content h3 {
    font-weight: 300;
}

.widget .widget-content p {
    margin: 0;
    font-size: 16px;
}

.widget .widget-content span.badge {
    position: absolute;
    top: -15px;
    right: -5px;
    font-size: 1rem;
}

.widget-link {
    text-decoration: none;
}

.widget-link:hover .widget-icon {
    background-color: transparent;
}

/* --- Bootstrap 5 theme colors --- */
.widget-primary {
    background-color: #0d6efd;
}
.widget-secondary {
    background-color: #6c757d;
}
.widget-success {
    background-color: #198754;
}
.widget-danger {
    background-color: #dc3545;
}
.widget-warning {
    background-color: #ffc107;
    color: #000;
}
.widget-info {
    background-color: #0dcaf0;
}
.widget-light {
    background-color: #f8f9fa;
    color: #000;
}
.widget-dark {
    background-color: #212529;
}

/* Optional: icon inside colored widget with contrast */
.widget-primary .icon,
.widget-secondary .icon,
.widget-success .icon,
.widget-danger .icon,
.widget-warning .icon,
.widget-info .icon,
.widget-light .icon,
.widget-dark .icon {
    color: #fff;
}

.widget-light .icon,
.widget-warning .icon {
    color: #000;
}
