:root {
    --labtolab-primary: #278fcd;
    --labtolab-primary-dark: #1f74a8;
}

.labtolab-login-wrap {
    max-width: 380px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.labtolab-login-form h3 {
    margin-top: 0;
    text-align: center;
}
.labtolab-login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.labtolab-login-form input[type="text"],
.labtolab-login-form input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.labtolab-login-form input[type="text"]:focus,
.labtolab-login-form input[type="password"]:focus,
.labtolab-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--labtolab-primary);
    box-shadow: 0 0 0 2px rgba(39, 143, 205, 0.25);
}
.labtolab-login-form button {
    width: 100%;
    padding: 10px;
    background: var(--labtolab-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.labtolab-login-form button:hover { background: var(--labtolab-primary-dark); }
.labtolab-error {
    background: #fdecea;
    color: #b3261e;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.labtolab-portal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
}
.labtolab-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.labtolab-portal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.labtolab-current-lab {
    font-size: 14px;
    color: #444;
}
.labtolab-logout-btn {
    background: #b3261e;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
}
.labtolab-search-form {
    margin-bottom: 15px;
}
.labtolab-search-form input[type="search"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 240px;
}
.labtolab-search-form button {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--labtolab-primary);
    background: var(--labtolab-primary);
    color: #fff;
    cursor: pointer;
}
.labtolab-search-form button:hover {
    background: var(--labtolab-primary-dark);
    border-color: var(--labtolab-primary-dark);
}
#labtolab-tbody.labtolab-loading {
    opacity: 0.5;
    transition: opacity 0.1s ease;
}
.labtolab-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.labtolab-table th, .labtolab-table td {
    border: 1px solid #e2e2e2;
    padding: 10px 12px;
    text-align: left;
}
.labtolab-table thead th {
    background: var(--labtolab-primary);
    color: #fff;
}
.labtolab-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

@media (max-width: 640px) {
    .labtolab-table thead { display: none; }
    .labtolab-table, .labtolab-table tbody, .labtolab-table tr, .labtolab-table td {
        display: block; width: 100%;
    }
    .labtolab-table tr { margin-bottom: 12px; border: 1px solid #e2e2e2; }
    .labtolab-table td { border: none; border-bottom: 1px solid #eee; }
    .labtolab-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: var(--labtolab-primary);
        font-size: 12px;
        text-transform: uppercase;
    }
}
