:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7f9;
    color: #333;
    overflow-x: hidden;
}

.sidebar {
    background-color: var(--secondary-color);
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 60px;
    width: 250px;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 4px 0;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 80px;
    transition: all 0.3s;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.api-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
}

.api-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.get-method {
    border-left-color: #28a745;
}

.post-method {
    border-left-color: #ffc107;
}

.put-method {
    border-left-color: #17a2b8;
}

.delete-method {
    border-left-color: #dc3545;
}

.method-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.badge-get {
    background-color: #28a745;
    color: white;
}

.badge-post {
    background-color: #ffc107;
    color: black;
}

.badge-put {
    background-color: #17a2b8;
    color: white;
}

.badge-delete {
    background-color: #dc3545;
    color: white;
}

.api-test-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.param-table {
    width: 100%;
    border-collapse: collapse;
}

.param-table th, .param-table td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

.param-table th {
    background-color: #f8f9fa;
}

.response-area {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Consolas', monospace;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.category-header {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.search-box {
    max-width: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.api-detail-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.json-editor-btn {
    margin-top: 10px;
}

.test-tab-content {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.history-item {
    border-left: 3px solid var(--primary-color);
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.collapsible {
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    outline: none;
    transition: 0.3s;
}

.collapsible-content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

#sidebarCollapse {
    display: none;
}

@media (max-width: 992px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.active {
        margin-left: 250px;
    }
    
    #sidebarCollapse {
        display: block;
    }
}