/* GB Reg client area, loaded after the Blesta theme. Colours match theme 31. */

/* Logo and menu stay in view on long pages */
@media (min-width: 768px) {
    .gbreg-sticky {
        position: sticky;
        top: 0;
        z-index: 1030;
        background: #fff;
        box-shadow: 0 1px 4px rgba(22, 28, 45, 0.12);
    }
    html {
        scroll-padding-top: 100px;
    }
}

/* Full-width pages */
@media (min-width: 992px) {
    .container-md {
        max-width: 96%;
    }
}

/* Service page: tabs across the top instead of the left menu */
.gbreg-service-tabs {
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.gbreg-service-tabs .list-group-item {
    color: #161c2d;
    font-weight: 500;
}

/* The theme forces a pale highlight on selected list items, which made their white text unreadable */
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
    color: #1d1d1d;
    font-weight: 600;
    background-color: #fb8004 !important;
    border-color: #fb8004;
}

/* Service page banner: same layout and colours as the WHMCS product page */
.gbreg-service-tabs {
    justify-content: center;
}
.gbreg-service-card {
    padding: 2rem 1rem 1.25rem;
    text-align: center;
    background: #efefef;
    border-radius: 0.75rem 0.75rem 0 0;
}
.gbreg-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    margin: 0 auto 0.75rem;
    color: #fff;
    font-size: 72px;
    background: #555b6b;
    border-radius: 50%;
}
.gbreg-service-card h4,
.gbreg-service-card h5 {
    color: #161c2d;
    font-weight: 600;
}
.gbreg-service-card h5 {
    margin-bottom: 0;
    font-size: 1.1rem;
}
.gbreg-service-status {
    padding: 0.4rem;
    margin-bottom: 0.6rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    border-radius: 0 0 0.75rem 0.75rem;
}
.gbreg-service-button,
.gbreg-service-button:hover,
.gbreg-service-button:focus {
    margin-bottom: 0.5rem;
    color: #1d1d1d;
    font-weight: 600;
    border-radius: 0.5rem;
}
.gbreg-service-button {
    background-color: #fb8004;
    border-color: #fb8004;
}
.gbreg-service-button:hover,
.gbreg-service-button:focus {
    background-color: #d96d00;
    border-color: #d96d00;
}
.gbreg-service-details {
    padding-top: 0.5rem;
    text-align: center;
}
.gbreg-service-details h5 {
    margin-bottom: 0.2rem;
    color: #161c2d;
    font-weight: 600;
}
.gbreg-service-details p {
    margin-bottom: 0.75rem;
    color: #555b6b;
}

/* Orange buttons */
.btn-outline-primary,
.btn-outline-secondary {
    color: #fff;
    background-color: #fb8004;
    border-color: #fb8004;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #fff;
    background-color: #d96d00;
    border-color: #d96d00;
}

/* Spacing classes the Lightsail Server tab uses that aren't in this Bootstrap version */
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.text-end { text-align: right; }

/* Logo and menu on one white row, as on the WHMCS client area */
@media (min-width: 992px) {
    .gbreg-sticky {
        display: flex;
        align-items: center;
        padding: 0 2%;
    }
    .gbreg-sticky .header {
        flex: 0 0 auto;
        width: auto;
        padding-bottom: 0;
        background: none;
    }
    .gbreg-sticky .header .container-md {
        width: auto;
        max-width: none;
        padding: 0;
    }
    .gbreg-sticky .logo {
        width: auto;
        margin: 10px 30px 10px 0;
    }
    .gbreg-sticky .logo img {
        display: block;
        height: 50px;
        width: auto;
    }
    .gbreg-sticky .nav-content {
        flex: 1 1 auto;
        min-width: 0;
    }
    .gbreg-sticky .nav-content nav.navbar {
        background: none;
    }
    .gbreg-sticky .nav-content .navbar .container-md {
        max-width: none;
        padding: 0;
    }
    .gbreg-sticky .nav-content nav.navbar .navbar-nav > li > a.nav-link {
        padding: 8px 12px;
        color: #161c2d !important;
        font-size: 16px;
        font-weight: 500;
    }
    .gbreg-sticky .nav-content nav.navbar .navbar-nav > li > a.nav-link > i {
        display: none;
    }
    .gbreg-sticky .nav-content nav.navbar .navbar-nav > li.active > a.nav-link,
    .gbreg-sticky .nav-content nav.navbar .navbar-nav > li > a.nav-link:hover,
    .gbreg-sticky .nav-content nav.navbar .navbar-nav > li > a.nav-link:focus {
        color: #fb8004 !important;
    }
}

/* Black bar above the logo and menu; it scrolls away, the logo and menu stay */
.gbreg-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 2%;
    background: #000;
}
.gbreg-topbar-links a {
    margin-right: 1.25rem;
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}
.gbreg-topbar a:hover {
    color: #fb8004;
    text-decoration: none;
}
.gbreg-topbar .gbreg-topbar-kb,
.gbreg-topbar .gbreg-topbar-kb:hover {
    padding: 0.3rem 0.9rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    background: #5a3fd8;
    border-radius: 0.4rem;
}

/* Cart, bell and greeting on the right of the menu */
.gbreg-sticky .nav-content nav.navbar .navbar-nav > li > a.nav-link.gbreg-nav-icon > i {
    display: inline-block;
    font-size: 1.15rem;
}
.gbreg-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-right: 0.35rem;
    color: #fff;
    font-size: 0.85rem;
    background: #1d4ed8;
    border-radius: 50%;
}
@media (min-width: 768px) {
    .gbreg-sticky .navbar-nav {
        align-items: center;
    }
}

/* Dashboard: Contacts, Shortcuts and Your Info bar replaces the page title */
body:has(.gbreg-dash-bar) .title {
    display: none;
}
.gbreg-dash-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 0.75rem 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.gbreg-dash-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}
.gbreg-dash-group strong {
    color: #161c2d;
    font-weight: 600;
}
.gbreg-dash-group a {
    color: #555b6b;
}
.gbreg-dash-group a:hover {
    color: #fb8004;
    text-decoration: none;
}
.gbreg-dash-group a.gbreg-pill,
.gbreg-dash-group a.gbreg-pill:hover {
    padding: 0.3rem 0.8rem;
    color: #fff;
    font-weight: 500;
    background: #fb8004;
    border-radius: 999px;
}
.gbreg-dash-group a.gbreg-pill:hover {
    background: #d96d00;
}

/* Dashboard: welcome text */
.gbreg-welcome {
    margin-bottom: 1.5rem;
}
.gbreg-welcome h2 {
    color: #161c2d;
    font-size: 1.75rem;
    font-weight: 600;
}
.gbreg-welcome p {
    color: #555b6b;
    margin-bottom: 0;
}
.gbreg-welcome-update,
.gbreg-welcome-update:hover {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin-left: 0.25rem;
    color: #fff;
    font-size: 0.95rem;
    vertical-align: middle;
    background: #000;
    border-radius: 0.25rem;
    text-decoration: none;
}

/* Dashboard: four cards in the WHMCS order */
.gbreg-order-1 { order: 1; }
.gbreg-order-2 { order: 2; }
.gbreg-order-3 { order: 3; }
.gbreg-order-4 { order: 4; }
.gbreg-order-5 { order: 5; }
.gbreg-card-col > a,
.gbreg-card-col > a:hover {
    display: block;
    text-decoration: none;
}
.gbreg-card {
    height: calc(100% - 1.5rem);
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 6px rgba(22, 28, 45, 0.1);
}
.gbreg-card-col > a:hover .gbreg-card {
    box-shadow: 0 3px 12px rgba(22, 28, 45, 0.2);
}
.gbreg-card-icon {
    position: relative;
    width: 92px;
    height: 84px;
    margin: 0 auto 1rem;
}
.gbreg-card-hex {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #4fb5b5;
    font-size: 2rem;
    background: #bdeeee;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.gbreg-card-count {
    position: absolute;
    top: -6px;
    left: -8px;
    min-width: 30px;
    height: 30px;
    padding: 0 0.3rem;
    color: #161c2d;
    font-weight: 600;
    line-height: 30px;
    background: #f5e26b;
    border-radius: 999px;
}
.gbreg-card-label {
    color: #161c2d;
    font-size: 1.15rem;
    font-weight: 600;
}
.gbreg-card-text {
    color: #6b7280;
}

/* Dashboard sidebar: plain headings and links */
.gbreg-sidebar.card {
    background: none;
    border: 0;
    box-shadow: none;
}
.gbreg-sidebar .card-header {
    padding: 0 0 0.5rem;
    color: #161c2d;
    font-size: 1.25rem;
    font-weight: 600;
    background: none;
    border: 0;
}
.gbreg-sidebar .card-body {
    padding: 0;
}
.gbreg-sidebar .list-group-item {
    padding: 0.3rem 0;
    color: #555b6b;
    background: none;
    border: 0;
}
.gbreg-sidebar .list-group-item:hover {
    color: #fb8004;
}
.gbreg-sidebar .list-group-item i {
    display: none;
}

/* Active box border: the same light purple as WHMCS */
.form-control:focus {
    border-color: #b6b1f9;
    box-shadow: 0 0 0 0.2rem rgba(71, 59, 240, 0.25);
}

/* Login pages: one centred box with the logo above, as on WHMCS */
.row.login {
    padding-top: 3rem;
}
.gbreg-login {
    max-width: 480px;
    margin: 0 auto 2rem;
}
.gbreg-login-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}
.gbreg-login-logo img {
    max-width: 200px;
    height: auto;
}
.gbreg-login h2 {
    margin-bottom: 0.5rem;
    color: #161c2d;
    font-weight: 700;
    text-align: center;
}
.gbreg-login-text {
    margin-bottom: 1.5rem;
    color: #555b6b;
    text-align: center;
}
.gbreg-login .panel-body {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}
.gbreg-login label {
    color: #161c2d;
    font-weight: 600;
}
.gbreg-login .checkbox label {
    font-weight: 400;
}
.gbreg-login-forgot {
    float: right;
    font-size: 0.9rem;
}
.gbreg-login-submit,
.gbreg-login-submit:hover,
.gbreg-login-submit:focus {
    color: #1d1d1d;
    font-weight: 600;
    background-color: #fb8004;
    border-color: #fb8004;
    border-radius: 0;
}
.gbreg-login-submit:hover,
.gbreg-login-submit:focus {
    background-color: #d96d00;
    border-color: #d96d00;
}
.gbreg-login-register {
    margin: 1rem 0 0;
    color: #555b6b;
    text-align: center;
}

/* Ticket page: keep the avatar small rather than filling its column */
.ticket-reply .replier img.img-thumbnail { max-width: 100px; display: block; margin: 0 auto 8px; }
