/* =========================================================   GLOBAL CRT THEME   ========================================================= */body {    background: #000;    color: #0aff0a;    font-family: Consolas, monospace;    padding: 20px;}/* Softer glow */* {    text-shadow: 0 0 3px #0aff0a;}/* Inputs */input, textarea {    background: #000;    color: #0aff0a;    border: 1px solid #0aff0a;}/* =========================================================   NAVBAR   ========================================================= */.crt-navbar {    background: #000;    border-bottom: 2px solid #0aff0a;    box-shadow: 0 0 10px #0aff0a;    padding: 10px 20px;}.crt-brand {    color: #0aff0a !important;    font-weight: bold;    text-shadow: 0 0 5px #0aff0a;}.crt-link {    color: #0aff0a !important;    font-weight: bold;    text-shadow: 0 0 5px #0aff0a;}.crt-link:hover {    color: #ffffff !important;    text-shadow: 0 0 10px #0aff0a;}.nav-link {    background: transparent !important;}/* =========================================================   BUTTONS   ========================================================= */.btn-crt {    border: 1px solid #0aff0a;    background: #001900;    color: #0aff0a;}.btn-crt:hover {    background: #003000;}/* EDIT BUTTON — yellow glow */.btn-edit-crt {    background: #000 !important;    color: #0aff0a !important;    border: 2px solid #ffcc00 !important;    box-shadow: 0 0 10px #ffcc00;    padding: 6px 12px !important;    border-radius: 6px !important;    display: inline-block;}.btn-edit-crt:hover {    box-shadow: 0 0 16px #ffcc00;    transform: scale(1.05);}/* DELETE BUTTON — red glow */.btn-delete-crt {    background: #000 !important;    color: #0aff0a !important;    border: 2px solid #ff0000 !important;    box-shadow: 0 0 10px #ff0000;    padding: 6px 12px !important;    border-radius: 6px !important;    display: inline-block;}.btn-delete-crt:hover {    box-shadow: 0 0 16px #ff0000;    transform: scale(1.05);}/* =========================================================   TABLES — FULL CRT OVERRIDE   ========================================================= */.table {    background-color: #000 !important;    color: #0aff0a !important;    border: 2px solid #0aff0a !important;    box-shadow: 0 0 15px #0aff0a;    border-radius: 8px;}.table th {    background-color: #001400 !important;    color: #0aff0a !important;    border-color: #0aff0a !important;}.table td {    background-color: #000 !important;    color: #0aff0a !important;    border-color: #0aff0a !important;}.table tbody tr:hover {    background-color: #002800 !important;    box-shadow: inset 0 0 10px #0aff0a;}/* Striping */.table-striped tbody tr:nth-of-type(odd) {    background-color: #001400 !important;}.table-striped tbody tr:nth-of-type(even) {    background-color: #000 !important;}/* List group items */.list-group-item {    background: #000 !important;    color: #0aff0a !important;    border: 1px solid #0aff0a !important;}/* =========================================================   SEARCH BAR   ========================================================= */.crt-input {    background: #000 !important;    color: #0aff0a !important;    border: 2px solid #0aff0a !important;    box-shadow: 0 0 10px #0aff0a;    padding: 10px;    border-radius: 6px;}.crt-input::placeholder {    color: #0aff0a;    opacity: 0.6;}.crt-input:focus {    outline: none !important;    box-shadow: 0 0 15px #0aff0a;}.crt-search {    padding: 15px;    border: 2px solid #0aff0a;    box-shadow: 0 0 12px #0aff0a;    border-radius: 10px;}/* Highlight for live search */.crt-highlight {    color: #000;    background: #0aff0a;    padding: 1px 3px;    border-radius: 3px;    box-shadow: 0 0 6px #0aff0a;}/* =========================================================   LOG WINDOW   ========================================================= */.crt-log-window {    background: #000;    border: 2px solid #0aff0a;    box-shadow: 0 0 15px #0aff0a;    padding: 20px;    border-radius: 10px;    max-height: 500px;    overflow-y: auto;    color: #0aff0a;    font-family: "Courier New", monospace;    white-space: pre-wrap;}.crt-divider {    border: 0;    height: 2px;    background: #0aff0a;    box-shadow: 0 0 10px #0aff0a;}/* =========================================================   DASHBOARD CARDS — CRT STYLE   ========================================================= */.crt-card {    background: #000;    border: 2px solid #0aff0a;    box-shadow: 0 0 12px #0aff0a;    padding: 25px;    border-radius: 10px;    text-align: center;    transition: 0.2s ease;}.crt-card h3 {    color: #0aff0a;    margin-bottom: 10px;    text-shadow: 0 0 5px #0aff0a;}.crt-card p {    color: #0aff0a;    opacity: 0.8;}.crt-card:hover {    box-shadow: 0 0 20px #0aff0a;    transform: scale(1.05);}.crt-card-link {    text-decoration: none;}/* =========================================================   EQUAL HEIGHT FIX   ========================================================= */.row.g-4 > .col-md-4 {    display: flex;}.crt-card-link {    display: flex;    flex: 1;    height: 100%;}.crt-card {    flex: 1;    display: flex;    flex-direction: column;    justify-content: space-between;    height: 100%;}/* =========================================================   LOGIN PAGE FIXES   ========================================================= */body.login-page {    display: flex;    justify-content: center;    align-items: center;    height: 100vh;    padding: 0 !important; /* override global padding */}/* Correct login box */.login-box-small {    width: 320px;    padding: 25px;    margin: 0 auto;    transform: none !important;}.login-box-small:hover {    transform: none !important;}.login-box-small h2 {    text-align: center;    margin-bottom: 25px;    text-shadow: 0 0 10px #0aff0a;}/* Login error box */.error-box {    background: #330000;    border: 2px solid #ff0000;    color: #ff5555;    padding: 10px;    margin-bottom: 15px;    text-align: center;    box-shadow: 0 0 10px #ff0000;}/* LOGIN BOX OVERRIDES */.crt-card.login-box-small {    width: 800px !important;    padding: 210px !important;    height: auto !important;    flex: none !important;    display: block !important;}.crt-btn {    width: 100%;    background: #0aff0a;    color: #000;    font-weight: bold;    border: none;    padding: 10px;    height: 45px; /* MATCH INPUT HEIGHT */    margin-top: 20px; /* LOWER THE BUTTON */    box-shadow: 0 0 10px #0aff0a;}/* CRT Table */.crt-table {    background-color: #0a0a0a;    color: #0aff0a;    border: 1px solid #0aff0a;    box-shadow: 0 0 10px #0aff0a;}.crt-thead th {    background-color: #000;    color: #0aff0a;    border-bottom: 2px solid #0aff0a;    text-transform: uppercase;    letter-spacing: 1px;}.crt-row:hover {    background-color: rgba(0, 255, 0, 0.1);    transition: 0.2s;}/* Buttons */.btn-edit-crt {    background-color: #0044ff;    color: #fff;    border: 1px solid #0044ff;    padding: 4px 10px;    text-decoration: none;    border-radius: 4px;    box-shadow: 0 0 6px #0044ff;}.btn-edit-crt:hover {    background-color: #0033cc;    box-shadow: 0 0 10px #0033cc;}.btn-delete-crt {    background-color: #ff0033;    color: #fff;    border: 1px solid #ff0033;    padding: 4px 10px;    text-decoration: none;    border-radius: 4px;    box-shadow: 0 0 6px #ff0033;}.btn-delete-crt:hover {    background-color: #cc0028;    box-shadow: 0 0 10px #cc0028;}/* CRT Card */.crt-card {    background-color: #0a0a0a;    border: 1px solid #0aff0a;    padding: 20px;    box-shadow: 0 0 12px #0aff0a;    border-radius: 6px;}/* CRT Table */.crt-table {    background-color: #000;    color: #0aff0a;    border: 1px solid #0aff0a;    box-shadow: 0 0 10px #0aff0a;}.crt-thead th {    background-color: #000;    color: #0aff0a;    border-bottom: 2px solid #0aff0a;    text-transform: uppercase;    letter-spacing: 1px;}/* Buttons */.btn-edit-crt {    background-color: #0044ff;    color: #fff;    border: 1px solid #0044ff;    padding: 4px 10px;    text-decoration: none;    border-radius: 4px;    box-shadow: 0 0 6px #0044ff;}.btn-edit-crt:hover {    background-color: #0033cc;    box-shadow: 0 0 10px #0033cc;}.btn-delete-crt {    background-color: #ff0033;    color: #fff;    border: 1px solid #ff0033;    padding: 4px 10px;    text-decoration: none;    border-radius: 4px;    box-shadow: 0 0 6px #ff0033;}.btn-delete-crt:hover {    background-color: #cc0028;    box-shadow: 0 0 10px #cc0028;}/* Disabled text */.crt-disabled {    color: #777;    font-size: 0.85rem;}/* =========================================================   CRT SCROLL-DOWN LOADING EFFECT   ========================================================= */.crt-reveal {    opacity: 0;    transform: translateY(-10px);    animation: crtDrop 0.4s ease-out forwards;}@keyframes crtDrop {    from {        opacity: 0;        transform: translateY(-20px);    }    to {        opacity: 1;        transform: translateY(0);    }}/* Delay each line slightly */.crt-delay-1 { animation-delay: 0.1s; }.crt-delay-2 { animation-delay: 0.3s; }.crt-delay-3 { animation-delay: 0.5s; }.crt-delay-4 { animation-delay: 0.7s; }.crt-delay-5 { animation-delay: 0.9s; }.crt-delay-6 { animation-delay: 1.0s; }.crt-delay-7 { animation-delay: 1.2s; }.crt-delay-8 { animation-delay: 1.4s; }.crt-delay-9 { animation-delay: 2.6s; }.crt-delay-10 { animation-delay: 1.8s; }/* =========================================================   CRT BOOT-UP SEQUENCE   ========================================================= */.crt-boot {    background: #000;    color: #00ff00;    font-family: Consolas, monospace;    font-size: 1.1rem;    position: fixed;    inset: 0;    display: flex;    justify-content: center;    align-items: center;    z-index: 9999;}.crt-boot-screen {    width: 90%;    max-width: 1200px;    height: 80vh;    background: #000;    border: 3px solid #00ff00;    box-shadow:        0 0 20px #00ff00,        0 0 40px #00ff00 inset;    padding: 30px;    overflow: hidden;    animation: crtMonitorPowerOn 1.2s ease-out forwards;}@keyframes crtMonitorPowerOn {    0% {        opacity: 0;        transform: scaleY(0);        filter: brightness(12);    }    20% {        opacity: 1;        transform: scaleY(0.02);        filter: brightness(10);    }    50% {        transform: scaleY(0.05);        filter: brightness(8);    }    100% {        opacity: 1;        transform: scaleY(1);        filter: brightness(1);    }}.crt-hidden {    display: none;}.crt-cursor {    animation: crtCursorBlink 0.8s infinite;}@keyframes crtCursorBlink {    0%,100% {        opacity: 1;    }    50% {        opacity: 0;    }}.crt-type {    border-right: 2px solid #0aff0a;    animation: blinkCursor 0.7s infinite;}@keyframes blinkCursor {    0% { border-color: transparent; }    50% { border-color: #0aff0a; }    100% { border-color: transparent; }}/* =========================================================   CRT BOOT-UP SEQUENCE   ========================================================= */.crt-boot {    background: #000;    color: #0aff0a;    font-family: Consolas, monospace;    padding: 40px;    border: 2px solid #0aff0a;    box-shadow: 0 0 20px #0aff0a;    width: 100%;    max-width: 800px;    margin: 40px auto;    white-space: pre-wrap;    overflow: hidden;}.crt-hidden {    display: none;}.crt-type {    border-right: 2px solid #0aff0a;    animation: blinkCursor 0.7s infinite;}@keyframes blinkCursor {    0% { border-color: transparent; }    50% { border-color: #0aff0a; }    100% { border-color: transparent; }}/* =========================================================   CARD REVEAL ANIMATION   ========================================================= */.crt-card-reveal {    opacity: 0;    transform: translateY(20px);    animation: crtCardDrop 1.0s ease-out forwards;}@keyframes crtCardDrop {    from {        opacity: 0;        transform: translateY(400px);    }    to {        opacity: 10;        transform: translateY(0);    }}/* login page CRT Power on animation */.crt-login-hidden {    display: none;}.crt-cursor {    animation: blinkCursor 0.8s steps(1) infinite;}@keyframes blinkCursor {    0%,100% { opacity: 1; }    50% { opacity: 0; }}/* Login page CRT Power On */.login-animation {    animation: crtPowerOn 0.8s ease-out forwards;    transform-origin: center center;}@keyframes crtPowerOn {    0% {        opacity: 0;        transform: scaleY(0);        filter: brightness(4);    }    50% {        opacity: 1;        transform: scaleY(0.03);        filter: brightness(3);    }    100% {        opacity: 1;        transform: scaleY(1);        filter: brightness(1);    }}    0% {        opacity: 0;        transform: scaleY(0) scaleX(1.2);        filter: brightness(4);    }    50% {        opacity: 1;        transform: scaleY(0.05) scaleX(1.1);        filter: brightness(3);    }    100% {        opacity: 1;        transform: scaleY(1) scaleX(1);        filter: brightness(1);    }}/* staggered delays */.crt-delay-1 { animation-delay: 0.4s; }.crt-delay-2 { animation-delay: 0.8s; }.crt-delay-3 { animation-delay: 1.2s; }.crt-delay-4 { animation-delay: 1.6s; }.crt-delay-5 { animation-delay: 2.0s; }.crt-delay-6 { animation-delay: 2.4s; }.crt-delay-7 { animation-delay: 2.8s; }.crt-delay-8 { animation-delay: 3.2s; }.crt-delay-9 { animation-delay: 3.6s; }/* Shutdown uses same CRT styling */#crt-shutdown-screen {    margin-top: 80px;}/* =========================================================   TERMINAL-STYLE BLINKING CURSOR FOR HEADINGS   ========================================================= */.crt-heading {    position: relative;    display: inline-block;    padding-right: 12px;}.crt-heading::after {    content: "";    position: absolute;    right: 0;    top: 0;    width: 8px;    height: 1.2em;    background: #0aff0a; /* CRT green */    animation: crtCursorBlink 0.8s steps(1) infinite;}@keyframes crtCursorBlink {    0% { opacity: 0; }    50% { opacity: 1; }    100% { opacity: 0; }}/* =========================================================   FIX: FORCE LEGEND COLOURS TO SHOW   ========================================================= */.crt-legend span {    display: inline-block;    width: 14px;    height: 14px;    margin-right: 8px;    /* CRT border + glow */    border: 2px solid #0aff0a;    box-shadow: 0 0 5px #0aff0a;    /* The important part */    background: var(--legend-color) !important;}/* Keep legend items perfectly inline */.crt-legend {    list-style: none;    padding: 0;    margin: 0;}.crt-legend li {    display: flex;    align-items: center;    gap: 6px; /* space between square and text */    margin-bottom: 6px;}.action-buttons {    display: flex;    justify-content: center;    align-items: center;    gap: 4px;    flex-wrap: nowrap;}.action-buttons a {    padding: 2px 8px !important;    font-size: 0.75rem;    min-height: 28px;    line-height: 1.2;}.action-buttons span {    display: inline-flex;    align-items: center;    justify-content: center;    height: 32px; /* consistent height */    padding: 0 12px; /* consistent width */}/* Unified CRT button style */.crt-btn-primary,.crt-btn-danger,.crt-btn-warning {    background: #000;    border: 2px solid #00ff66;    color: #00ff66;    padding: 6px 14px;    font-size: 0.9rem;    text-decoration: none;    display: inline-flex;    align-items: center;    justify-content: center;    transition: 0.2s;}.crt-btn-primary:hover,.crt-btn-danger:hover,.crt-btn-warning:hover {    box-shadow: 0 0 10px #00ff66;    color: #00ff66;}/* Danger button (red glow) */.crt-btn-danger {    border-color: #ff4444;    color: #ff4444;}/* Infomation button (red glow) */.crt-btn-info {    border-color: #27F579;    color: #ff4444;}.crt-btn-danger:hover {    box-shadow: 0 0 10px #ff4444;}/* Warning button (yellow glow) */.crt-btn-warning {    border-color: #ffee55;    color: #ffee55;}.crt-btn-warning:hover {    box-shadow: 0 0 10px #ffee55;}/* Disabled text */.crt-disabled {    color: #555;    opacity: 0.6;}/* Align all action buttons perfectly */.action-buttons {    display: flex;    justify-content: center;    align-items: center;    gap: 10px;}.action-buttons a,.action-buttons span {    height: 32px;}.crt-thumb {   border: 2px solid #00ff66;    box-shadow: 0 0 12px #00ff66;    border-radius: 6px;    padding: 4px;    background: #000;}#crt-success-banner {    opacity: 1;    transition: opacity 2s ease-in-out;    margin: 20px auto;    max-width: 600px;    text-align: center;}#crt-success-banner.fade-out {    opacity: 0;}/* Pulse highlight for new product */.crt-pulse-new {    animation: crtPulseNew 1s ease-in-out infinite alternate;}@keyframes crtPulseNew {    from { box-shadow: 0 0 6px #00ff66; }    to   { box-shadow: 0 0 20px #00ff66; }}/* Red delete pulse */.crt-delete-pulse {    animation: crtDeletePulse 0.6s ease-in-out 3;}@keyframes crtDeletePulse {    0%   { background-color: #330000; box-shadow: 0 0 4px #ff4444; }    50%  { background-color: #660000; box-shadow: 0 0 16px #ff4444; }    100% { background-color: #000000; box-shadow: 0 0 4px #ff4444; }}/* Fade + collapse */.crt-delete-collapse {    transition: opacity 0.6s ease-out, height 0.6s ease-out, margin 0.6s ease-out, padding 0.6s ease-out;    opacity: 0;    height: 0;    margin: 0;    padding: 0;    overflow: hidden;}.crt-navbar {    background-color: #000;    border-bottom: 2px solid #00ff00;}.crt-dropdown {    background-color: #000;    border: 1px solid #00ff00;}.crt-dropdown-item {    color: #00ff00 !important;}.crt-dropdown-item:hover {    background-color: #003300 !important;    color: #00ff00 !important;}/* Fix dropdown height + scrolling */.crt-dropdown {    max-height: 300px;        /* adjust as needed */    overflow-y: auto;         /* enables scrolling */    background-color: #000;    border: 1px solid #00ff00;}/* CRT dropdown items */.crt-dropdown-item {    color: #00ff00 !important;    padding: 10px 15px;}.crt-dropdown-item:hover {    background-color: #003300 !important;    color: #00ff00 !important;}/* Force dropdown to obey CRT styling and scrolling */.navbar .dropdown-menu.crt-dropdown {    max-height: 300px !important;   /* limit height */    overflow-y: auto !important;    /* enable scrolling */    background-color: #000 !important;    border: 1px solid #00ff00 !important;    padding: 0 !important;}/* CRT dropdown items */.navbar .dropdown-menu.crt-dropdown .crt-dropdown-item {    color: #00ff00 !important;    padding: 10px 15px !important;}.navbar .dropdown-menu.crt-dropdown .crt-dropdown-item:hover {    background-color: #003300 !important;    color: #00ff00 !important;}.navbar,.crt-navbar,.navbar .container-fluid {    overflow: visible !important;}.crt-dropdown {    max-height: 300px !important;    overflow-y: auto !important;}.dropdown-menu {    left: auto !important;    right: 0 !important;}.crt-title {    color: #00ff00;    font-weight: bold;    letter-spacing: 2px;    text-shadow: 0 0 8px #00ff00;    white-space: nowrap;}.audit-table td {    max-width: 250px;          /* limit column width */    white-space: wrap;       /* wrap text to the next line*/    overflow: hidden;          /* hide overflow */    text-overflow: ellipsis;   /* add ... */}.audit-table {    table-layout: fixed;       /* prevents table explosion */    width: 100%;}/* this is for images.php */.image-thumb {    width: 200px;    height: 200px;    object-fit: cover;    border-radius: 20px;    display: block;    margin: 0 auto;    box-shadow: 0 0 300px rgba(0,255,0,0.4);}}.image-grid {    display: grid;    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));    gap: 2px;}.crt-upload-box {    border: 2px solid #00ff00;    box-shadow: 0 0 12px #00ff00;    padding: 15px;    border-radius: 8px;    background: #000;    margin-bottom: 20px;}.crt-product-frame {    border: 2px solid #00ff00;    box-shadow: 0 0 12px #00ff00;    padding: 20px;    border-radius: 10px;    background: #000;    margin-bottom: 25px;}.crt-image-tile {    background: #000;    border: 2px solid #00ff66;    box-shadow: 0 0 10px #00ff66;    padding: 8px;    border-radius: 8px;    margin: 6px; /* tighten spacing */    text-align: center;}/* Permissions Editor */.perm-column {    padding: 40px;	text-align: left;	}.perm-group {    display: flex;    flex-direction: column;    gap: 12px;    text-align: left;}.perm-item {    display: flex;    align-items: center;    gap: 10px;    font-size: 1.1rem;    cursor: pointer;}/* Override Bootstrap form-check */.perm-item input[type="checkbox"] {    transform: scale(1.3);    margin: 0;}.form-check,.form-check-input,.form-check-label {    all: unset !important;}.actions-cell {    white-space: nowrap;}/* Repairs table column sizes */.crt-table th:nth-child(1),.crt-table td:nth-child(1) {    min-width: 110px;    width: 110px;    white-space: nowrap;}.crt-table th:nth-child(4),.crt-table td:nth-child(4) {    min-width: 70px;    width: 70px;    white-space: nowrap;}.crt-table th:nth-child(5),.crt-table td:nth-child(5) {    min-width: 190px;    width: 190px;}/* ==========================================   CRT STATUS BADGES   ========================================== */.status-working,.status-faulty,.status-restoration,.status-parts,.status-parts-machine,.status-restored,.status-untested {    display: inline-block;    padding: 4px 12px;    border-radius: 999px;    font-weight: bold;    font-size: 0.75rem;    border: 2px solid;    text-transform: uppercase;    letter-spacing: 0.5px;}/* Working */.status-working {    color: #00ff00 !important;    border-color: #00ff00;    box-shadow: 0 0 8px #00ff00;	background: black;}/* Faulty */.status-faulty {    color: #ff4444 !important;    border-color: #ff4444;    box-shadow: 0 0 8px #ff4444;	background: black;}/* In Restoration */.status-restoration {    color: #ffff00 !important;    border-color: #ffff00;    box-shadow: 0 0 8px #ffff00;	background: black;}/* Awaiting Parts */.status-parts {    color: #ffaa00 !important;    border-color: #ffaa00;    box-shadow: 0 0 8px #ffaa00;	background: black;}/* Parts Machine */.status-parts-machine {    color: #ff6600 !important;    border-color: #ff6600;    box-shadow: 0 0 8px #ff6600;	background: black;}/* Fully Restored */.status-restored {    color: #00ffff !important;    border-color: #00ffff;    box-shadow: 0 0 8px #00ffff;	background: black;}/* Untested */.status-untested {    color: #cccccc !important;    border-color: #cccccc;    box-shadow: 0 0 8px #cccccc;	background: black;}.password-row {    display: grid;    grid-template-columns: 170px 1fr;    align-items: center;    gap: 15px;    margin-bottom: 20px;}.password-row label {    text-align: right;    margin-bottom: 0;}.password-row input {    width: 100%;}.crt-card-icon {    font-size: 2.5rem;    color: #8F0000;    display: block;    margin-bottom: 12px;    text-shadow:        0 0 5px #00ff00,        0 0 10px #00ff00;    transition: 0.2s ease;}.crt-card:hover .crt-card-icon {    transform: scale(1.15);    text-shadow:        0 0 8px #00ff00,        0 0 16px #00ff00;}