body {
    background-color: #f8f9fa;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.card-title {
    font-weight: bold;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-danger:hover {
    background-color: #c8002b;
    border-color: #c8002b;
}

.sim-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease-in-out;
}

.sim-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* CSS cho kết quả dạng danh sách */
.sim-list-item {
    padding: 1rem 1.5rem;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    border-bottom: 1px solid #eee;
}

.sim-list-item:hover {
    background-color: #e7f1ff;
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.sim-number {
    font-size: 1.8rem; /* Tăng kích thước số điện thoại */
    color: #0d6efd;
    letter-spacing: 1px;
    font-weight: 500;
}

.sim-commitment {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.sim-price {
    font-size: 1.5rem; /* Tăng kích thước giá tiền */
    color: #0b5ed7; /* Đổi màu giá tiền cho đồng bộ */
    font-weight: bold; /* Làm đậm giá tiền */
}

/* CSS cho Modal gói cước */
.package-group-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

.package-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.package-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.package-item.selected {
    background-color: #e7f1ff;
    border-color: #0d6efd;
}

/* Tối ưu hóa cho giao diện Mobile */
@media (max-width: 767.98px) {
    .sim-number {
        font-size: 1.3rem; /* Giảm kích thước số điện thoại */
        font-weight: bold;
        text-align: center;
        width: 100%;
    }

    .sim-price {
        font-size: 1.2rem; /* Giảm kích thước giá tiền */
        min-width: auto; /* Bỏ chiều rộng tối thiểu */
        text-align: center;
    }

    .sim-commitment {
        text-align: center;
    }

    .sim-list-item .row > div {
        width: 100%;
    }
}

/* CSS cho logo nhà mạng */
.network-logo-label {
    cursor: pointer;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    height: 58px; /* Đảm bảo chiều cao bằng các nút khác */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Cho phép các label co giãn bằng nhau */
}

.network-logo-label img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.btn-check:checked + .network-logo-label {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.btn-check:disabled + .network-logo-label {
    filter: grayscale(100%);
    opacity: 0.5;
    cursor: not-allowed;
}

.network-logo {
    max-width: 100%; /* Giới hạn chiều rộng tối đa của logo */
    height: 40px;
    object-fit: contain; /* Đảm bảo logo không bị méo */
}