/* ==================== QA LAB LAYOUT ==================== */
.qa-lab-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.qa-sidebar {
    width: 200px;
    flex-shrink: 0;
    padding-right: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.qa-sidebar h3 {
    font-size: 1.2rem;
    color: #bb86fc;
    margin-bottom: 1rem;
}

.qa-content {
    flex: 1;
    min-width: 1px;
}

/* ==================== QA SECTIONS ==================== */
.qa-section {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid #bb86fc;
    margin-bottom: 2rem;
}

.qa-intro {
    background-color: #252525;
    border-top: 3px solid #03dac6;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.qa-intro p {
    margin-bottom: 0.8rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

.qa-intro a {
    color: #bb86fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.qa-intro a:hover {
    color: #c49cff;
}

/* ==================== ELEMENT GROUPS ==================== */
.element-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background-color: #bb86fc;
    color: #121212;
}

.btn-primary:hover:not(:disabled) {
    background-color: #c49cff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c7380;
    color: #e0e0e0;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #7a8189;
}

.btn-success {
    background-color: #03dac6;
    color: #121212;
}

.btn-success:hover:not(:disabled) {
    background-color: #1dd7b0;
}

.btn-danger {
    background-color: #ff6b6b;
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background-color: #ff8787;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* ==================== FORMS ==================== */
.qa-form {
    background-color: #252525;
    padding: 1.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #bb86fc;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
    padding: 0.7rem;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #bb86fc;
    box-shadow: 0 0 5px rgba(187, 134, 252, 0.3);
}

/* Checkboxes and Radio buttons */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

input[type="range"] {
    width: 100%;
    margin: 1rem 0;
}

/* ==================== TABLES ==================== */
.qa-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.qa-table thead {
    background-color: #252525;
}

.qa-table th {
    padding: 1rem;
    text-align: left;
    color: #bb86fc;
    border-bottom: 2px solid #bb86fc;
}

.qa-table td {
    padding: 1rem;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.qa-table tbody tr:hover {
    background-color: #252525;
}

.status {
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status.active {
    background-color: #03dac6;
    color: #121212;
}

.status.inactive {
    background-color: #ff6b6b;
    color: #fff;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #1b5e20;
    border-left-color: #03dac6;
    color: #03dac6;
}

.alert-warning {
    background-color: #663c00;
    border-left-color: #ffb300;
    color: #ffb300;
}

.alert-error {
    background-color: #5f1f1f;
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

.alert-info {
    background-color: #0d3a5c;
    border-left-color: #03dac6;
    color: #03dac6;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #bb86fc;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #bb86fc;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #c49cff;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content button {
    margin-right: 0.5rem;
    margin-top: 1rem;
}

/* ==================== RESPONSIVE QA LAB ==================== */
@media (max-width: 768px) {
    .qa-lab-layout {
        flex-direction: column;
        padding: 6rem 2rem 2rem;
    }

    .qa-sidebar {
        width: 100%;
        padding-right: 0;
        position: static;
        margin-bottom: 1.5rem;
    }

    .element-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
