body {
    background-color: #0b0f19;
    color: #ffffff;
}

.navbar {
    background-color: #11131a;
}

.navbar-brand,
.nav-link {
    color: #60a5fa !important;
}

.nav-link:hover {
    color: #2563eb !important;
}

.navbar-toggler {
    border-color: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 30px;
    height: 22px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon div {
    content: '';
    background-color: #60a5fa;
    height: 4px;
    width: 100%;
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon div {
    top: 9px;
}

.navbar-toggler-icon::after {
    bottom: 0;
}

.card {
    background-color: #11131a;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    color: azure !important;
}

.card-header {
    background-color: #1e293b;
    color: #60a5fa;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-body label,
.card-body p {
    font-weight: 500;
    color: #ffffff;
}

.btn-edit {
    background-color: #2563eb;
    color: white;
}

.btn-edit:hover {
    background-color: #1d4ed8;
}

.qr-code {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 20px auto;
    padding: 10px;
    background-color: #f5f5ff;
}

.form-control {
    background-color: #111827;
    border: 1px solid #1f2937;
    color: white;
}

.form-control:focus {
    background-color: #111827;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.4);
}

.btn-blue {
    background-color: #2563eb;
    color: white;
}

.btn-blue:hover {
    background-color: #1d4ed8;
    color: white;
}

.scanner-box {
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin: 20px auto;
    background-color: #1e293b;
    border: 2px dashed #3b82f6;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #60a5fa;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
}

.result {
    margin-top: 10px;
    color: #60a5fa;
    font-size: 18px;
}


/* Layout */
.layout-container {
    max-width: 600px;
    width: 100%;
    margin: 30px auto;
    /* make it centre aligned */
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .layout-container {
        padding: 4%;
    }
}

.layout-h2 {
    color: #60a5fa;
    margin-bottom: 20px;
}

.room {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    width: 100%;
}

.cell {
    aspect-ratio: 1 / 1;
    /* keeps perfect square */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(9px, 2.5vw, 13px);
    font-weight: bold;
    color: white;
    user-select: none;
    position: relative;
}

.box-path {
    background: transparent;
}

.box-empty-nlaptop {
    background: #27d668;
    cursor: pointer;
}

.box-filled {
    background: #ef4444;
}

.box-assigned {
    background: #3b82f6;
}

.box-empty-laptop {
    background: #199547;
}

.box-empty-nlaptop:hover {
    outline: 2px solid #a7f3d0;
}
.box-empty-laptop:hover{
    outline: 2px solid #a7f3d0;
}

.box-filled:hover{
    outline: 2px solid #fca5a5;
}


/* POPUP */
.seat-popup {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: #11131a;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 8px;
    width: 160px;
    font-size: 12px;
    display: none;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.seat-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #11131a transparent transparent transparent;
}

.seat-popup button {
    margin-top: 6px;
    background: #2563eb;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.seat-popup button:hover {
    background: #1d4ed8;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}