/* Lab Page Styles */
.lab-page {
    position: absolute;
    top: 100px;
    left: 200px;
    width: 120vh;
    background: #181717;
    height: 80vh;
    border-radius: 10px;
    overflow: scroll;
    box-shadow: 0 0 7px black;
    padding-bottom: 60px;
    display: none;
}

.lab-hero-page {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.lab-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    padding: 2rem;
}

.tool-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px solid #333;
}

.tool-card:hover {
    transform: translateY(-2px);
}

.tool-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tool-desc {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.4;
}

.tool-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* API Tester Styles */
.api-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.method-select {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    min-width: 80px;
}

.url-input {
    flex: 1;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.test-btn, .run-btn {
    background: #2ea043;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.test-btn:hover, .run-btn:hover {
    opacity: 0.8;
}

.headers-section, .body-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.headers-section h4, .body-section h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.headers-input, .body-input {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 60px;
}

.api-response {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-response h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.response-status {
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.response-status.success {
    background: #2ea043;
    color: white;
}

.response-status.error {
    background: #d73a49;
    color: white;
}

.response-body {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

/* Code Runner Styles */
.code-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-select {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    min-width: 120px;
}

.clear-btn {
    background: #d73a49;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.clear-btn:hover {
    opacity: 0.8;
}

.code-input {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 200px;
    line-height: 1.4;
}

.code-output {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.code-output h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.code-result {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.4;
}

.code-result.error {
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lab-page {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .tool-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .method-select, .url-input, .test-btn {
        width: 100%;
    }

    .editor-header {
        flex-wrap: wrap;
    }

    .language-select, .run-btn, .clear-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .lab-hero-page {
        padding: 10px;
    }

    .lab-section {
        padding: 1rem;
    }

    .tool-header, .tool-content {
        padding: 1rem;
    }

    .tool-title {
        font-size: 1.3rem;
    }

    .tool-desc {
        font-size: 0.85rem;
    }
}