body {
    --bs-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-weight: 700;
    font: 1rem/1.5 var(--bs-font-sans-serif);
}

h1 {
    margin-bottom: 0;
}

h4 {
    color: #77797C;
}

.navbar-brand {
    font-weight: 800;
    font-size: 2rem;
}

.navbar {
    margin-bottom: 1rem;
}

.small-font-table {
    font-size: .8rem;
}

.card {
    margin-bottom: 1rem;
}

th.no-sort {
    pointer-events: none;
}

.no-underline {
    text-decoration: none;
}

.modal-dialog {
    max-width: 80%;
    /* Adjust modal width here */
}

.json-key,
.json-value {
    font-family: 'Courier New', monospace;
}

.json-key {
    font-weight: bold;
}

.json-value {
    white-space: pre-wrap;
}

.production {
    background-color: #466CD9;
    color: #fcfcfc;
}

.development {
    background-color: #EEDD88;
    color: #212427;
}

.code-freeze {
    background-color: #88CCEE;
    color: #fcfcfc;
}

.testing {
    background-color: #78b1b1;
    color: #fcfcfc;
}

.btn-outline-primary {
    color: #466CD9;
    border-color: #466CD9;
}

.btn-outline-primary:hover {
    background-color: #466CD9;
    border-color: #466CD9;
}

.device-selector-card {
    min-height: 200px;
    max-width: 200px;
    padding: 1.1rem 0.7rem 1.2rem 0.7rem;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f0f0 80%, #e0e0e0 100%);
    border: 1.5px solid #dde1e7;
    border-radius: 0.85rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.device-selector-card .card-title {
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #2d3748;
}

.device-selector-card .card-title .bi {
    color: #0d6efd;
    font-size: 1.2rem;
}

.device-selector-card .btn {
    font-size: 1rem;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.22rem;
    height: 2.1rem;
    border-radius: 0.45rem;
    background: #2f2f2f;
    border-width: 2px;
    font-weight: 500;
    transition: background 0.18s, color 0.18s, border 0.18s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.device-selector-card .btn.active, 
.device-selector-card .btn:focus, 
.device-selector-card .btn:hover {
    background: #2f2f2f;
    color: #ffffff;
    border-color: #2f2f2f;
}

.device-selector-card .btn i {
    font-size: 1.08rem;
    margin-right: 0.18rem;
}

.device-selector-card .btn:last-child {
    margin-bottom: 0;
}

.selector-instructions {
    font-size: 0.93rem;
    color: #6c757d;
    margin-top: 0.7rem;
    margin-bottom: 0.1rem;
    text-align: left;
    border-left: 3px solid #dde1e7;
    padding-left: 0.7rem;
    background: #f1f3f7;
    border-radius: 0.3rem;
}

.scroll-table-container {
    max-height: 500px;
    overflow-y: auto;
    background: #f0f0f0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
}

.table thead th {
    position: sticky;
    top: 0;
    background: #e8e8e8;
    z-index: 2;
}

.right-panel {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    min-width: 260px;
    max-width: 350px;
}

.logs-card {
    background: #f0f0f0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    min-height: 200px;
    margin-top: 1.5rem;
    font-size: 0.98rem;
}

@media (min-height: 700px) {
    .scroll-table-container {
        max-height: 65vh;
    }
}

.code-freeze-option {
    color: gray;
    opacity: 0.6;
}

.code-freeze-option:disabled {
    cursor: not-allowed;
}

.code-freeze-row {
    background-color: #f0f0f0;
    opacity: 0.7;
}

.code-freeze-row td {
    color: #6c757d;
    font-style: italic;
}

.robot-search-container {
    width: 25%;
}

.diff-old {
    background: #f8d7da;
    color: #721c24;
    padding: 0 2px;
    border-radius: 2px;
}

.diff-new {
    background: #d4edda;
    color: #155724;
    padding: 0 2px;
    border-radius: 2px;
}

/* Jump to Top Button */
.jump-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #466CD9;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(70, 108, 217, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jump-to-top-btn:hover {
    background-color: #3558b8;
    box-shadow: 0 6px 16px rgba(70, 108, 217, 0.4);
}

.jump-to-top-btn:active {
    transform: scale(0.95);
}

.jump-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.jump-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile responsiveness for Jump to Top Button */
@media (max-width: 768px) {
    .jump-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .jump-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .jump-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .jump-to-top-btn svg {
        width: 18px;
        height: 18px;
    }
}
