.code-samples { 
    margin: 20px 0; 
}

.code-tabs { 
    display: flex; 
    gap: 5px; 
    border-bottom: 2px solid #e0e0e0; 
    margin-bottom: 10px; 
}

.code-tab { 
    padding: 10px 20px; 
    background: #f5f5f5; 
    border: none; 
    cursor: pointer; 
    font-weight: 500; 
    border-radius: 4px 4px 0 0; 
    transition: all 0.3s; 
}

.code-tab:hover { 
    background: #e0e0e0; 
}

.code-tab.active { 
    background: #2196F3; 
    color: white; 
}

.code-content { 
    display: none; 
    padding: 0;
    background: #f8f8f8;
    border-radius: 0 4px 4px 4px; 
    overflow-x: auto; 
}

.code-content.active { 
    display: block; 
}

.code-content pre { 
    margin: 0; 
    padding: 15px;
}

.code-content pre[class*='language-'] {
    margin: 0;
}

.code-content code[class*='language-'] {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Try It Out Modal Styles */
#try-it-out-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.try-it-out-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.try-it-out-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.try-it-out-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
}

.try-it-out-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #000;
}

.try-it-out-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.auth-section, 
.params-section, 
.body-section, 
.action-section, 
.response-section {
    margin-bottom: 20px;
}

.auth-section h4, 
.params-section h4, 
.body-section h4, 
.response-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2196F3;
    font-weight: 600;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

#request-body {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

#request-body:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.execute-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.execute-btn:hover {
    background: #45a049;
}

.execute-btn:active {
    background: #3d8b40;
}

.response-status {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

.response-status .success {
    color: #4CAF50;
}

.response-status .error {
    color: #f44336;
}

.response-status .loading {
    color: #2196F3;
}

#response-body {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    max-height: 400px;
    overflow: auto;
}

#response-body code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.try-it-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.try-it-btn:hover {
    background: #1976D2;
}

.try-it-section {
    margin-bottom: 15px;
}
