/*
=========================================================
NIGHTBOX HOSTING MANAGER 1.0
Compatible WHMCS Six / thème nightbox
=========================================================
*/

body.nbx-hosting-page .header-lined {
    margin-bottom: 18px;
}

.nbx-hosting-intro {
    padding: 26px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at 88% 18%, rgba(21,151,229,.20), transparent 32%),
        linear-gradient(135deg, #091321, #102238);
    border: 1px solid #24415f;
    border-radius: 16px;
}

.nbx-hosting-intro span {
    display: inline-block;
    margin-bottom: 8px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nbx-hosting-intro h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
}

.nbx-hosting-intro p {
    margin: 0;
    color: #cbd5e1;
}

body.nbx-hosting-page .dataTables_wrapper {
    overflow: visible;
    background: transparent;
    border: 0;
}

body.nbx-hosting-page .dataTables_wrapper > .row:first-child,
body.nbx-hosting-page .dataTables_wrapper > .row:last-child {
    padding: 12px 0;
    background: transparent;
    border: 0;
}

body.nbx-hosting-page table.dataTable thead {
    display: none;
}

body.nbx-hosting-page table.dataTable,
body.nbx-hosting-page table.dataTable tbody {
    display: block;
    width: 100% !important;
}

body.nbx-hosting-page table.dataTable tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.nbx-hosting-page table.dataTable tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 20px !important;
    background: #0f172a !important;
    border: 1px solid #22344d;
    border-radius: 14px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

body.nbx-hosting-page table.dataTable tbody tr:hover {
    transform: translateY(-2px);
    background: #111827 !important;
    border-color: #1597e5;
}

body.nbx-hosting-page table.dataTable tbody tr.child {
    display: none !important;
}

body.nbx-hosting-page table.dataTable tbody td {
    display: block;
    width: auto !important;
    min-height: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #cbd5e1 !important;
    text-align: left !important;
}

body.nbx-hosting-page table.dataTable tbody td:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
}

body.nbx-hosting-page table.dataTable tbody td:last-child {
    align-self: center;
    grid-column: 2 / 3;
    grid-row: 1 / 4;
}

body.nbx-hosting-page table.dataTable tbody td strong,
body.nbx-hosting-page table.dataTable tbody td a {
    color: #f8fafc !important;
}

body.nbx-hosting-page table.dataTable tbody td small,
body.nbx-hosting-page table.dataTable tbody td .text-muted {
    color: #94a3b8 !important;
}

body.nbx-hosting-page table.dataTable tbody td .label,
body.nbx-hosting-page table.dataTable tbody td .status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

body.nbx-hosting-page table.dataTable tbody td .btn,
body.nbx-hosting-page table.dataTable tbody td:last-child a {
    min-width: 110px;
    padding: 9px 13px;
    background: #1597e5 !important;
    border: 1px solid #1597e5 !important;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    text-align: center;
}

body.nbx-hosting-page table.dataTable tbody td .btn:hover,
body.nbx-hosting-page table.dataTable tbody td:last-child a:hover {
    background: #0b7cc0 !important;
    border-color: #0b7cc0 !important;
}

.nbx-hosting-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.nbx-hosting-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 14px;
    background: #111827;
    border: 1px solid #22344d;
    border-radius: 12px;
    color: #e5edf7 !important;
    text-decoration: none !important;
}

.nbx-hosting-tool:hover {
    border-color: #1597e5;
}

.nbx-hosting-tool i {
    color: #38bdf8;
}

@media (max-width: 991px) {
    body.nbx-hosting-page table.dataTable tbody {
        grid-template-columns: 1fr;
    }

    .nbx-hosting-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.nbx-hosting-page table.dataTable tbody tr {
        grid-template-columns: 1fr;
    }

    body.nbx-hosting-page table.dataTable tbody td:first-child,
    body.nbx-hosting-page table.dataTable tbody td:last-child {
        grid-column: auto;
        grid-row: auto;
    }

    .nbx-hosting-tools {
        grid-template-columns: 1fr;
    }

    body.nbx-hosting-page table.dataTable tbody td .btn,
    body.nbx-hosting-page table.dataTable tbody td:last-child a {
        display: block;
        width: 100%;
    }
}
