/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Layout */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.sidebar {
    width: 250px;
    background-color: #1f2937;
    color: white;
    padding: 20px;
}

.sidebar h1 {
    font-size: 24px;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 6px;
}

.sidebar a:hover {
    background-color: #374151;
}

.sidebar-logo {

    width: 180px;
    display: block;
    margin: 0 auto 30px;

}

/* Main Content */

.main-content {
    flex: 1;
    padding: 30px;
}

.page-title {
    margin-bottom: 25px;
}

/* Dashboard Cards */

.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.card h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.card p {
    font-size: 32px;
    font-weight: bold;
}

/* Tables */

.table-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

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

th {
    text-align: left;
    background-color: #f4f6f9;
    padding: 12px;
}

td {
    padding: 12px;
    border-top: 1px solid #ddd;
}

/* Buttons */

.btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn:hover {
    background-color: #1d4ed8;
}

.active-link {
    background-color: #374151;
}

pre {
    background-color: #0d1117;
    color: #63c387;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    max-height: 600px;

    font-family: Consolas, Monaco, monospace;
    border: 1px solid #30363d;
}

#endpoint-select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    margin-right: 10px;
}

.terminal-header {
    background-color: #161b22;
    color: #f8fafc;
    padding: 10px 15px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid #30363d;
    border-bottom: none;
    font-size: 14px;
}

/* Search Boxes */

input[type="text"] {
    width: 350px;
    padding: 10px 14px;
    margin-bottom: 20px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    font-size: 14px;
    background-color: white;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Detail Pages */

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.detail-card h2 {
    margin-bottom: 15px;
}

.detail-card p {
    margin-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* API Explorer */

.api-layout {

    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;

}

.api-docs {

    background: white;
    padding: 20px;
    border-radius: 10px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, .1);

}

.api-docs h2 {

    margin-bottom: 20px;

}

.api-docs h3 {

    margin-top: 20px;
    margin-bottom: 10px;

}

.api-docs ul {

    padding-left: 20px;

}

.api-docs li {

    margin-bottom: 6px;

}

.api-explorer {

    background: white;
    padding: 20px;
    border-radius: 10px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, .1);

}

#endpoint-input {

    width: 100%;

}

#request-body {

    width: 100%;
    padding: 12px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    font-family:
        Consolas,
        Monaco,
        monospace;

}

#request-url {

    background: #f4f6f9;
    padding: 10px;

    border-radius: 6px;

    font-family:
        Consolas,
        Monaco,
        monospace;

    border:
        1px solid #d1d5db;

}

#response-meta {

    background: #f4f6f9;
    padding: 10px;

    border-radius: 6px;

    border:
        1px solid #d1d5db;

}

/* API Method Colors */

#method-select {

    padding: 10px;
    border-radius: 6px;
    border: none;

    font-weight: bold;

}

.method-get {

    background-color: #16a34a;
    color: white;

}

.method-post {

    background-color: #2563eb;
    color: white;

}

.method-patch {

    background-color: #ea580c;
    color: white;

}

.method-delete {

    background-color: #dc2626;
    color: white;

}

.api-endpoint {

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px;
    margin-bottom: 6px;

    border-radius: 6px;

    cursor: pointer;

    transition: 0.2s;

}

.api-endpoint:hover {

    background-color: #f3f4f6;

}

.badge-get,
.badge-post,
.badge-patch,
.badge-delete {

    color: white;

    font-size: 12px;
    font-weight: bold;

    padding: 4px 8px;

    border-radius: 4px;

    min-width: 60px;

    text-align: center;

}

.badge-get {

    background-color: #16a34a;

}

.badge-post {

    background-color: #2563eb;

}

.badge-patch {

    background-color: #ea580c;

}

.badge-delete {

    background-color: #dc2626;

}