/*
 * Cyber Garage US
 * Technician Application — Professional Blue Theme
 */

:root {
    --cgus-blue-950: #020b15;
    --cgus-blue-900: #061727;
    --cgus-blue-850: #0a2035;
    --cgus-blue-800: #0d2944;
    --cgus-blue-700: #11446c;
    --cgus-blue-600: #1268a8;
    --cgus-blue-500: #168cff;
    --cgus-blue-400: #54bfff;
    --cgus-blue-100: #dcefff;
    --cgus-panel: #10243a;
    --cgus-panel-soft: #142d47;
    --cgus-field: #081928;
    --cgus-text: #f4f9fd;
    --cgus-muted: #a9bed0;
    --cgus-border: rgba(84, 191, 255, 0.34);
}

html {
    min-height: 100%;
    background: var(--cgus-blue-950) !important;
}

body.cg-us-tech-login,
body:has(.cg-us-tech-header) {
    min-height: 100vh;
    color: var(--cgus-text) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(22, 140, 255, 0.18), transparent 32%),
        linear-gradient(145deg, #071a2b, #020b15) !important;
    background-attachment: fixed !important;
}

/* Login */
body.cg-us-tech-login .app-content,
body.cg-us-tech-login .content-wrapper,
body.cg-us-tech-login .content-body {
    background: transparent !important;
}

body.cg-us-tech-login .auth-wrapper {
    min-height: 100vh;
    padding: 28px 16px !important;
}

body.cg-us-tech-login .auth-inner {
    width: 100%;
    max-width: 520px !important;
}

body.cg-us-tech-login .card {
    overflow: hidden;
    border: 1px solid var(--cgus-border) !important;
    border-radius: 20px !important;
    background:
        linear-gradient(145deg, rgba(18, 43, 68, 0.98), rgba(7, 23, 38, 0.99)) !important;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38) !important;
}

body.cg-us-tech-login .card-body {
    padding: 34px 38px !important;
}

body.cg-us-tech-login .brand-logo {
    display: flex !important;
    justify-content: center;
}

body.cg-us-tech-login .brand-logo img {
    display: block;
    width: auto;
    max-width: 290px !important;
    max-height: 150px;
    margin: 0 auto;
    object-fit: contain;
}

body.cg-us-tech-login h3 {
    margin: 8px 0 26px !important;
    color: var(--cgus-text) !important;
    font-size: 27px;
    font-weight: 700;
}

body.cg-us-tech-login h3::before {
    content: "Technician Portal";
    display: block;
    margin-bottom: 6px;
    color: var(--cgus-blue-400);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.cg-us-tech-login label {
    color: #cfe4f4 !important;
    font-weight: 600;
}

body.cg-us-tech-login .form-control {
    min-height: 49px;
    color: var(--cgus-text) !important;
    border: 1px solid #315673 !important;
    border-radius: 10px !important;
    background: var(--cgus-field) !important;
}

body.cg-us-tech-login .form-control:focus {
    border-color: var(--cgus-blue-400) !important;
    box-shadow: 0 0 0 3px rgba(22, 140, 255, 0.17) !important;
}

body.cg-us-tech-login form > .btn-primary {
    width: 100%;
    min-height: 49px;
    margin-top: 10px;
}

body.cg-us-tech-login .btn-primary {
    color: #fff !important;
    border: 1px solid var(--cgus-blue-400) !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0e5f9e, #168cff) !important;
    box-shadow: 0 8px 19px rgba(22, 140, 255, 0.22);
    font-weight: 700;
}

body.cg-us-tech-login .btn-primary:hover {
    background: linear-gradient(135deg, #168cff, #54bfff) !important;
}

/* Shared authenticated header */
.cg-us-tech-header,
.header-navbar.cg-us-tech-header,
.cg-us-tech-header .navbar-container {
    color: #fff !important;
    border: 1px solid rgba(84, 191, 255, 0.44) !important;
    background:
        linear-gradient(110deg, #061a2b 0%, #0c4771 58%, #1268a8 100%) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26) !important;
}

.cg-us-tech-header .nav-link,
.cg-us-tech-header .user-name,
.cg-us-tech-header .user-status,
.cg-us-tech-header svg {
    color: #fff !important;
    stroke: currentColor !important;
}

.cg-us-tech-header .dropdown-menu-header,
.cg-us-tech-header .dropdown-header {
    color: #fff !important;
    background: linear-gradient(110deg, #092a45, #1268a8) !important;
}

.cg-us-tech-header .notification-title {
    color: #fff !important;
}

/* Left navigation */
.cg-us-tech-menu {
    border-right: 1px solid rgba(84, 191, 255, 0.27) !important;
    background:
        linear-gradient(180deg, #081d30 0%, #04111e 100%) !important;
}

.cg-us-tech-menu .navbar-header {
    border-bottom: 1px solid rgba(84, 191, 255, 0.24);
    background: linear-gradient(135deg, #0b2a45, #0e4f7e) !important;
}

.cg-us-tech-menu .brand-text {
    color: #fff !important;
}

.cg-us-tech-menu .navigation > li > a {
    margin: 3px 10px !important;
    color: #bad2e5 !important;
    border-radius: 9px !important;
}

.cg-us-tech-menu .navigation > li > a:hover,
.cg-us-tech-menu .navigation > li.active > a,
.cg-us-tech-menu .navigation > li.open > a {
    color: #fff !important;
    background: linear-gradient(135deg, #0e4f7e, #168cff) !important;
    box-shadow: 0 7px 16px rgba(22, 140, 255, 0.19);
}

.cg-us-tech-menu .navigation > li > a i,
.cg-us-tech-menu .navigation > li > a svg {
    color: var(--cgus-blue-400) !important;
}

.cg-us-tech-menu .navigation > li > a:hover i,
.cg-us-tech-menu .navigation > li > a:hover svg,
.cg-us-tech-menu .navigation > li.active > a i,
.cg-us-tech-menu .navigation > li.active > a svg {
    color: #fff !important;
}

/* Tables and content headers */
body:has(.cg-us-tech-header) .card {
    border-color: rgba(84, 191, 255, 0.27) !important;
}

body:has(.cg-us-tech-header) .card-header,
body:has(.cg-us-tech-header) .modal-header,
body:has(.cg-us-tech-header) table thead th {
    color: #fff !important;
    border-color: rgba(84, 191, 255, 0.42) !important;
    background: linear-gradient(110deg, #08263f, #0f6099) !important;
}

body:has(.cg-us-tech-header) .card-title,
body:has(.cg-us-tech-header) .modal-title,
body:has(.cg-us-tech-header) table thead th {
    color: #fff !important;
}

.cg-us-exit-button {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    color: #fff !important;
    border: 1px solid var(--cgus-blue-400);
    border-radius: 9px;
    background: linear-gradient(135deg, #0e5f9e, #168cff);
    font-weight: 700;
}

@media (max-width: 575.98px) {
    body.cg-us-tech-login .card-body {
        padding: 27px 22px !important;
    }

    body.cg-us-tech-login .brand-logo img {
        max-width: 230px !important;
    }
}

/* Technician Login — professional table redesign v2 */
body.cg-us-tech-login .auth-inner {
    max-width: 540px !important;
}

body.cg-us-tech-login .card {
    position: relative;
    border-color: rgba(84, 191, 255, 0.48) !important;
}

body.cg-us-tech-login .card::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(
        90deg,
        #0b3f68 0%,
        #168cff 52%,
        #54bfff 100%
    );
}

body.cg-us-tech-login .card-body {
    padding: 30px 42px 38px !important;
}

body.cg-us-tech-login .brand-logo {
    min-height: 128px;
    margin-bottom: 18px !important;
    padding: 8px 20px 18px;
    border-bottom: 1px solid rgba(84, 191, 255, 0.18);
}

body.cg-us-tech-login .brand-logo img {
    max-width: 300px !important;
    max-height: 126px;
}

body.cg-us-tech-login .cg-tech-login-heading {
    margin: 0 -42px 27px;
    padding: 20px 42px 21px;
    border-top: 1px solid rgba(84, 191, 255, 0.16);
    border-bottom: 1px solid rgba(84, 191, 255, 0.34);
    background:
        linear-gradient(
            110deg,
            rgba(7, 38, 63, 0.98),
            rgba(14, 95, 158, 0.94)
        );
}

body.cg-us-tech-login .cg-tech-login-heading > span {
    display: block;
    margin-bottom: 4px;
    color: #8ed4ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

body.cg-us-tech-login .cg-tech-login-heading h1 {
    margin: 0 0 5px !important;
    color: #fff !important;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

body.cg-us-tech-login .cg-tech-login-heading p {
    margin: 0 !important;
    color: #c7e6fa !important;
    font-size: 13px;
    line-height: 1.55;
}

body.cg-us-tech-login .cg-tech-login-form .form-group {
    margin-bottom: 18px;
}

body.cg-us-tech-login .cg-tech-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #d7eaf8 !important;
    font-size: 13px;
    font-weight: 700;
}

body.cg-us-tech-login .cg-tech-login-form .form-control {
    min-height: 52px;
    padding: 12px 15px;
    border-color: rgba(84, 191, 255, 0.38) !important;
    background:
        linear-gradient(
            145deg,
            rgba(5, 20, 34, 0.98),
            rgba(10, 34, 55, 0.98)
        ) !important;
    font-size: 15px;
}

body.cg-us-tech-login .cg-tech-login-form .form-control::placeholder {
    color: #7793aa !important;
}

body.cg-us-tech-login .cg-tech-login-form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-right: 7px;
    accent-color: #168cff;
    vertical-align: middle;
}

body.cg-us-tech-login .cg-tech-login-form input[type="checkbox"] + label {
    display: inline;
    color: #b9cee0 !important;
    font-weight: 500;
    vertical-align: middle;
}

body.cg-us-tech-login .cg-tech-signin-button {
    min-height: 52px !important;
    margin-top: 4px !important;
    font-size: 15px;
    letter-spacing: 0.02em;
}

body.cg-us-tech-login .cg-other-apps-heading {
    margin: 29px 0 13px;
    padding-top: 22px;
    border-top: 1px solid rgba(84, 191, 255, 0.20);
}

body.cg-us-tech-login .cg-other-apps-heading span {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

body.cg-us-tech-login .cg-other-apps-heading small {
    display: block;
    margin-top: 3px;
    color: var(--cgus-muted);
    font-size: 11px;
}

body.cg-us-tech-login .cg-other-apps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.cg-us-tech-login .cg-other-apps::before,
body.cg-us-tech-login .cg-other-apps::after {
    display: none !important;
}

body.cg-us-tech-login .cg-other-app-button {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    min-height: 66px;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    text-align: left;
}

body.cg-us-tech-login .cg-other-app-button span {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

body.cg-us-tech-login .cg-other-app-button small {
    display: block;
    margin-top: 2px;
    color: #d1ebfb !important;
    font-size: 10px;
    font-weight: 500;
}

body.cg-us-tech-login .alert {
    width: min(500px, calc(100% - 24px));
    margin: 15px auto;
    border-radius: 10px;
}

@media (max-width: 575.98px) {
    body.cg-us-tech-login .auth-wrapper {
        padding: 14px 10px !important;
    }

    body.cg-us-tech-login .card-body {
        padding: 25px 22px 28px !important;
    }

    body.cg-us-tech-login .brand-logo {
        min-height: 104px;
        margin-bottom: 14px !important;
        padding-bottom: 14px;
    }

    body.cg-us-tech-login .brand-logo img {
        max-width: 235px !important;
        max-height: 100px;
    }

    body.cg-us-tech-login .cg-tech-login-heading {
        margin-right: -22px;
        margin-left: -22px;
        padding: 18px 22px;
    }

    body.cg-us-tech-login .cg-tech-login-heading h1 {
        font-size: 23px;
    }

    body.cg-us-tech-login .cg-other-apps {
        grid-template-columns: 1fr;
    }

    body.cg-us-tech-login .cg-other-app-button {
        min-height: 59px;
    }
}

/* Visible Technician top-header Exit button */
.cg-us-tech-header .cg-us-tech-top-exit-item {
    display: flex;
    align-items: center;
    margin-right: 13px;
}

.cg-us-tech-header .cg-us-tech-top-exit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 15px !important;
    color: #fff !important;
    border: 1px solid #72caff !important;
    border-radius: 9px;
    background:
        linear-gradient(135deg, #0b4f83, #168cff) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cg-us-tech-header .cg-us-tech-top-exit:hover,
.cg-us-tech-header .cg-us-tech-top-exit:focus {
    color: #fff !important;
    background:
        linear-gradient(135deg, #168cff, #54bfff) !important;
    box-shadow: 0 8px 19px rgba(22, 140, 255, 0.31);
    transform: translateY(-1px);
}

.cg-us-tech-header .cg-us-tech-top-exit svg {
    width: 16px !important;
    height: 16px !important;
    color: #fff !important;
    stroke: #fff !important;
}

@media (max-width: 575.98px) {
    .cg-us-tech-header .cg-us-tech-top-exit-item {
        margin-right: 5px;
    }

    .cg-us-tech-header .cg-us-tech-top-exit {
        min-width: 39px;
        padding: 8px 10px !important;
    }

    .cg-us-tech-header .cg-us-tech-top-exit span {
        display: none;
    }
}

/* Technician dashboard visible toolbar and Exit button */
.cg-tech-dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 0 0 22px;
    padding: 15px 18px;
    border: 1px solid rgba(84, 191, 255, 0.45);
    border-radius: 12px;
    background:
        linear-gradient(
            110deg,
            #061d31 0%,
            #0c4771 58%,
            #1268a8 100%
        );
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
}

.cg-tech-dashboard-toolbar-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cg-tech-dashboard-toolbar-title span {
    color: #8ed4ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cg-tech-dashboard-toolbar-title strong {
    margin-top: 3px;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-tech-dashboard-exit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 17px;
    color: #fff !important;
    border: 1px solid #8bd5ff;
    border-radius: 9px;
    background:
        linear-gradient(135deg, #0d5d99, #168cff);
    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.22);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cg-tech-dashboard-exit:hover,
.cg-tech-dashboard-exit:focus {
    color: #fff !important;
    background:
        linear-gradient(135deg, #168cff, #54bfff);
    box-shadow: 0 9px 20px rgba(22, 140, 255, 0.30);
    transform: translateY(-1px);
}

.cg-tech-dashboard-exit svg {
    width: 17px;
    height: 17px;
    color: #fff;
    stroke: #fff;
}

@media (max-width: 575.98px) {
    .cg-tech-dashboard-toolbar {
        margin-bottom: 15px;
        padding: 12px 13px;
    }

    .cg-tech-dashboard-toolbar-title strong {
        font-size: 15px;
    }

    .cg-tech-dashboard-exit {
        min-width: 43px;
        padding: 9px 12px;
    }

    .cg-tech-dashboard-exit span {
        display: none;
    }
}


/* Technician login-table Exit button */
body.cg-us-tech-login .card-body {
    position: relative;
}

body.cg-us-tech-login .cg-tech-login-exit {
    position: absolute;
    z-index: 10;
    top: 17px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 13px;
    color: #fff !important;
    border: 1px solid rgba(139, 213, 255, 0.86);
    border-radius: 9px;
    background:
        linear-gradient(
            135deg,
            rgba(8, 65, 106, 0.96),
            rgba(22, 140, 255, 0.98)
        );
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.25);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.cg-us-tech-login .cg-tech-login-exit:hover,
body.cg-us-tech-login .cg-tech-login-exit:focus {
    color: #fff !important;
    background:
        linear-gradient(
            135deg,
            #168cff,
            #54bfff
        );
    box-shadow: 0 9px 21px rgba(22, 140, 255, 0.30);
    transform: translateY(-1px);
}

body.cg-us-tech-login .cg-tech-login-exit svg {
    width: 15px;
    height: 15px;
    color: #fff;
    stroke: #fff;
}

@media (max-width: 575.98px) {
    body.cg-us-tech-login .cg-tech-login-exit {
        top: 13px;
        right: 13px;
        min-width: 38px;
        padding: 8px 10px;
    }

    body.cg-us-tech-login .cg-tech-login-exit span {
        display: none;
    }
}

/* Mobile top-header Exit text correction */
@media (max-width: 575.98px) {
    .cg-us-tech-header .cg-us-tech-top-exit {
        min-width: 62px !important;
        padding: 9px 12px !important;
    }

    .cg-us-tech-header .cg-us-tech-top-exit span {
        display: inline-block !important;
        color: #fff !important;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
    }
}

/* Login Exit text-only mobile correction */
body.cg-us-tech-login .cg-tech-login-exit {
    min-width: 63px !important;
    min-height: 40px !important;
    padding: 9px 13px !important;
}

body.cg-us-tech-login .cg-tech-login-exit span {
    display: inline-block !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 575.98px) {
    body.cg-us-tech-login .cg-tech-login-exit {
        top: 13px;
        right: 13px;
        min-width: 63px !important;
        padding: 9px 12px !important;
    }

    body.cg-us-tech-login .cg-tech-login-exit span {
        display: inline-block !important;
    }
}
