.device-card {
    border: 3px solid #0f8f7c;
    border-radius: 25px;
    /* background: #f2f2f2; */
}

.device-card-offline {
    border: 3px solid #c1c1c1;
    border-radius: 25px;
    /* background: #f2f2f2; */
}

.device-checkbox {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 10;
}

/* Custom Premium Checkbox */
.form-check-input {
    border: 3px solid #0f8f7c !important;
    width: 25px !important;
    height: 25px !important;
    border-radius: 8px !important;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
    margin-top: 0 !important;
}

.form-check-input:checked {
    background-color: #0f8f7c !important;
    border-color: #0f8f7c !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 143, 124, 0.25);
    border-color: #0f8f7c;
}

.device-icon-wrapper {
    position: relative;
    display: inline-block;
}

.device-icon-exelent {
    font-size: 130px;
    color: #1f6f54;
    line-height: 1;
}

.device-icon-good {
    font-size: 130px;
    color: #78ae64;
    line-height: 1;
}

.device-icon-poor {
    font-size: 130px;
    color: #d18862;
    line-height: 1;
}

.device-icon-bad {
    font-size: 130px;
    color: #fe1f26;
    line-height: 1;
}

.device-icon-offline {
    font-size: 130px;
    color: #c1c1c1;
    line-height: 1;
}

.device-icon-waiting {
    font-size: 130px;
    color: #0f8f7c;
    line-height: 1;
}

.device-number {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 55px;
    font-weight: 800;
    color: #000;
}

.list-card {
    border: 3px solid #0f8f7c;
    border-radius: 10px;
    /* background: #f2f2f2; */
}

.label-box {
    background: #0f8f7c;
    color: #fff;
    padding: 10px 14px;
    border-radius: 15px;
    width: 100%;
    text-align: left;
}

.label-box-offline {
    background: #c1c1c1;
    color: #fff;
    padding: 10px 14px;
    border-radius: 15px;
    width: 100%;
    text-align: left;
}

.label-title {
    font-size: 18px;
    font-weight: 700;
}

.label-sub {
    font-size: 13px;
    opacity: 0.9;
}

.btn-approve {
    background: #0f8f7c;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background: #0d7a6a;
    color: #fff;
    transform: translateY(-2px);
}

.btn-reject {
    background: #b30000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: #8e0000;
    color: #fff;
    transform: translateY(-2px);
}

.btn-icon-large {
    font-size: 28px;
    margin-bottom: -5px;
}

.btn-text-small {
    font-size: 12px;
    font-weight: 700;
}

.device-name {
    font-size: 20px;
    font-weight: 500;
    color: #0f8f7c;
}

.device-name-offline {
    font-size: 20px;
    font-weight: 500;
    color: #c1c1c1;
}

.loadmore-button {
    border: 3px solid #0f8f7c;
    width: 30%;
    font-size: 20px;
    padding-top: 0;
    padding-bottom: 0;
}

.loadmore-button-2 {
    border: 3px solid #0f8f7c;
    width: 100%;
    font-size: 20px;
    padding-top: 0;
    padding-bottom: 0;
}

.code-list {
    max-height: 600px;
    overflow-y: auto;
}

.code-item {
    transition: background-color 0.3s;
}

.code-item:hover {
    background-color: #f8f9fa;
}

.code-text {
    font-size: 16px;
    color: #333;
}

.badge.bg-success {
    background-color: #28a745 !important;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    font-size: 12px;
    padding: 4px 12px;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.btn-link {
    color: #0f8f7c;
    font-weight: 500;
}

.btn-link:hover {
    color: #0a5f4e;
}

.social-icon {
    cursor: pointer;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Scrollbar styling */
.code-list::-webkit-scrollbar {
    width: 6px;
}

.code-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.code-list::-webkit-scrollbar-thumb {
    background: #0f8f7c;
    border-radius: 10px;
}

.code-list::-webkit-scrollbar-thumb:hover {
    background: #0a5f4e;
}
.btn-mock-green {
    background-color: #0f8f7c;
    border: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
}

.btn-mock-green:hover {
    background-color: #0d7a6a;
    color: #fff;
}

.btn-mock-icon-only {
    color: #0f8f7c;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 1;
}

.sidebar-check-all {
    width: 28px !important;
    height: 28px !important;
}

.device-item-card {
    border: 3px solid #0f8f7c;
    border-radius: 25px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.device-item-checkbox {
    width: 22px !important;
    height: 22px !important;
}

.device-item-info-box {
    border: 3px solid #0f8f7c;
    border-radius: 18px;
    padding: 8px 18px;
    flex-grow: 1;
    min-width: 130px;
}

.device-item-name {
    font-size: 26px;
    font-weight: 900;
    color: #0f8f7c;
    line-height: 1;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}

.device-item-meta {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.1;
    font-weight: 500;
}

.device-action-btn-mock {
    border: 3px solid #0f8f7c;
    border-radius: 18px;
    padding: 5px;
    width: 55px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0f8f7c;
    transition: all 0.2s;
    line-height: 1;
}

.device-action-btn-mock i,
.device-action-btn-mock .icon-base {
    font-size: 32px;
    margin-bottom: 1px;
}

.device-action-btn-mock span {
    font-size: 11px;
    font-weight: 800;
}

.device-action-btn-mock:hover {
    background: #f1f8f6;
}

.loadmore-btn-mock {
    border: 3px solid #0f8f7c;
    border-radius: 20px;
    color: #0f8f7c;
    font-weight: 700;
    font-size: 20px;
    padding: 8px 30px;
    background: #fff;
    width: 100%;
    display: inline-block;
    transition: all 0.2s;
}

.loadmore-btn-mock:hover {
    background: #0f8f7c;
    color: #fff;
}

/* Colors for other states */
.device-item-card.gray {
    border-color: #abb1b0;
}
.device-item-card.gray .device-item-checkbox {
    border-color: #abb1b0 !important;
}
.device-item-card.gray .device-item-info-box {
    border-color: #abb1b0;
}
.device-item-card.gray .device-item-name {
    color: #abb1b0;
}
.device-item-card.gray .device-action-btn-mock {
    border-color: #abb1b0;
    color: #abb1b0;
}

/* Scrollbar adjustment to match */
.sidebar-scroll-body {
    padding: 15px !important;
}
.sidebar-scroll-body::-webkit-scrollbar {
    width: 8px;
}
.sidebar-scroll-body::-webkit-scrollbar-thumb {
    background: #0f8f7c;
    border-radius: 10px;
}

/* Style untuk dropdown menu yang konsisten */
.dropdown-custom-menu {
    border-width: 3px !important;
    border-radius: 15px;
    padding: 8px 0;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-custom-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 16px;
    transition: all 0.2s;
}

.dropdown-custom-menu .dropdown-item:hover {
    background-color: rgba(15, 143, 124, 0.1);
}

.dropdown-custom-menu .dropdown-divider {
    margin: 4px 0;
    opacity: 0.5;
}

/* Border top dengan ketebalan 2px */
.border-top-2 {
    border-top-width: 2px !important;
}

/* Style untuk button icon di header */
.btn-mock-icon-only {
    color: #0f8f7c;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.btn-mock-icon-only:hover {
    transform: scale(1.05);
}

.btn-mock-icon-only i {
    font-size: 55px;
    display: block;
}

/* Style untuk dropdown toggle yang tidak menunjukkan caret */
.btn-mock-icon-only.dropdown-toggle::after {
    display: none;
}

/* Style untuk button mock green konsisten */
.btn-mock-green {
    background-color: #0f8f7c;
    border: 3px solid #0f8f7c;
    color: #fff;
    border-radius: 18px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.2s;
}

.btn-mock-green:hover {
    background-color: #0d7a6a;
    border-color: #0d7a6a;
    color: #fff;
    transform: translateY(-2px);
}

/* Style untuk loadmore button konsisten */
.loadmore-btn-mock {
    border: 3px solid #0f8f7c;
    border-radius: 20px;
    color: #0f8f7c;
    font-weight: 700;
    font-size: 20px;
    padding: 8px 30px;
    background: #fff;
    width: 30%;
    display: inline-block;
    transition: all 0.2s;
}

.loadmore-btn-mock:hover {
    background: #0f8f7c;
    color: #fff;
}

/* Responsive adjustment untuk loadmore button */
@media (max-width: 1400px) {
    .loadmore-btn-mock {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .loadmore-btn-mock {
        width: 100%;
    }
}

/* Tambahan untuk responsive */
@media (max-width: 768px) {
    .device-card,
    .device-card-offline {
        padding: 1rem !important;
    }

    .device-icon-exelent,
    .device-icon-good,
    .device-icon-poor,
    .device-icon-bad,
    .device-icon-offline,
    .device-icon-waiting {
        font-size: 100px;
    }

    .device-number {
        font-size: 40px;
    }

    .btn-mock-icon-only i {
        font-size: 40px;
    }

    .btn-mock-icon-only span[style*="font-size: 55px"] {
        font-size: 40px !important;
    }

    .label-title {
        font-size: 16px;
    }

    .label-sub {
        font-size: 11px;
    }

    .device-name {
        font-size: 18px;
    }

    .btn-approve,
    .btn-reject {
        padding: 6px 10px;
    }

    .btn-icon-large {
        font-size: 24px;
    }

    /* Sidebar responsive */
    .device-item-card {
        flex-wrap: wrap;
        gap: 8px;
    }

    .device-item-info-box {
        min-width: 100%;
        order: 2;
    }

    .device-item-checkbox {
        order: 1;
    }

    .device-action-btn-mock {
        width: 45px;
        height: 55px;
        margin-left: auto;
    }

    .device-action-btn-mock i {
        font-size: 24px;
    }

    /* Dropdown menu responsive */
    .dropdown-custom-menu {
        min-width: 200px;
    }

    .dropdown-custom-menu .dropdown-item {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .device-icon-exelent,
    .device-icon-good,
    .device-icon-poor,
    .device-icon-bad,
    .device-icon-offline,
    .device-icon-waiting {
        font-size: 80px;
    }

    .device-number {
        font-size: 30px;
    }

    .btn-mock-icon-only i {
        font-size: 35px;
    }

    .btn-mock-icon-only span[style*="font-size: 55px"] {
        font-size: 35px !important;
    }

    .label-box,
    .label-box-offline {
        padding: 6px 10px;
    }

    .label-title {
        font-size: 14px;
    }

    .label-sub {
        font-size: 10px;
    }

    .device-name {
        font-size: 16px;
    }

    /* Search input responsive */
    div[style*="width: 500px"] {
        width: 100% !important;
        max-width: 300px;
    }

    /* Card header responsive */
    .card-header > div {
        flex-wrap: wrap;
        gap: 15px;
    }

    .card-header .d-flex.justify-content-between {
        flex-direction: column;
    }

    /* Load more button */
    .loadmore-button {
        width: 100% !important;
        font-size: 18px;
    }
}

/* Perbaikan untuk layout yang lebih baik */
.row.g-4 {
    margin-bottom: -1rem;
}

/* Card spacing yang lebih baik */
.device-card,
.device-card-offline {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    min-height: 300px;
}

.device-card:hover,
.device-card-offline:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(15, 143, 124, 0.1);
}

/* Perbaikan checkbox position di mobile */
@media (max-width: 768px) {
    .device-checkbox {
        top: 10px;
        left: 15px;
    }
}

/* Perbaikan untuk dropdown menu */
.dropdown-menu {
    z-index: 1050;
}

/* Sidebar scroll yang lebih baik */
.sidebar-scroll-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 1rem !important;
}

/* Responsive untuk sidebar */
@media (max-width: 1400px) {
    .col-xxl-9 {
        margin-bottom: 30px;
    }

    .col-xxl-3 .card {
        height: auto;
        max-height: 600px;
    }

    .sidebar-scroll-body {
        max-height: 450px;
    }
}

@media (max-width: 1200px) {
    .device-item-info-box {
        min-width: 100px;
    }

    .device-item-name {
        font-size: 22px;
    }
}

/* Perbaikan untuk icon wrapper */
.device-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* Perbaikan untuk spinner di waiting state */
.device-icon-wrapper .spinner-border {
    margin: 20px 0;
}

/* Style untuk form control (search) */
.form-control.text-center {
    border: 3px solid #0f8f7c;
    border-radius: 15px;
    padding: 10px 20px;
}

.form-control.text-center:focus {
    border-color: #0f8f7c;
    box-shadow: 0 0 0 0.25rem rgba(15, 143, 124, 0.25);
}

/* Perbaikan untuk button container di waiting state */
.col-5 .d-flex.flex-column.gap-2 {
    width: 100%;
}

/* Perbaikan untuk gap antar elemen */
.gap-2 {
    gap: 0.5rem !important;
}
.gap-3 {
    gap: 1rem !important;
}
.gap-4 {
    gap: 1.5rem !important;
}

/* Perbaikan untuk alignment di card */
.row.align-items-center {
    margin: 0;
    width: 100%;
}

/* Style untuk button copy dan share */
.device-action-btn-mock {
    cursor: pointer;
    border-width: 3px !important;
}

.device-action-btn-mock:active {
    transform: scale(0.95);
}

/* Perbaikan untuk dropdown toggle */
.dropdown-toggle.hide-arrow::after {
    display: none;
}

/* Style untuk device-item-card di sidebar */
.device-item-card {
    position: relative;
    transition: all 0.2s ease;
}

.device-item-card:hover {
    background-color: rgba(15, 143, 124, 0.02);
}

/* Responsive font sizes untuk meta info */
@media (max-width: 768px) {
    .device-item-meta {
        font-size: 12px;
    }
}

/* Perbaikan untuk checkbox di sidebar */
.sidebar-check-all {
    margin-right: 5px;
}

/* Perbaikan untuk button "Buat Kode" */
.btn-mock-green {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .btn-mock-green {
        font-size: 16px;
        padding: 8px 16px !important;
    }

    .btn-mock-green i {
        font-size: 20px;
    }
}

/* Perbaikan untuk scrollbar di seluruh browser */
.sidebar-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar-scroll-body::-webkit-scrollbar-thumb {
    background: #0f8f7c;
    border-radius: 10px;
}

/* Firefox scrollbar */
.sidebar-scroll-body {
    scrollbar-width: thin;
    scrollbar-color: #0f8f7c #f1f1f1;
}

/* Perbaikan untuk jarak antar card */
.row.g-4 > [class*="col-"] {
    padding-bottom: 1rem;
}

/* Perbaikan untuk device number di waiting state */
.device-number.d-flex {
    width: 100%;
    height: 130px;
}

@media (max-width: 768px) {
    .device-number.d-flex {
        height: 100px;
    }
}
