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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #fafafa !important;
    color: #3b4151 !important;
    line-height: 1.6 !important;
}
p {
    color: #3b4151;
    font-size: 14px;
}

.swagger-header {
    background: #005cb8;
    color: white;
    /* padding: 15px 0; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.swagger-header .container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.swagger-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swagger-logo img {
    height: 40px;
    width: auto;
}

.swagger-logo-text {
    display: flex;
    flex-direction: column;
}

.swagger-logo-text .main-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.swagger-logo-text .sub-text {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: -2px;
}

.api-info-container {
    margin: 50px 0;
}

.swagger-content {
    max-width: 1460px;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 0 20px;
    /* background: white; */
    min-height: calc(100vh - 80px);
}

.api-title {
    font-size: 36px;
    font-weight: 600;
    color: #3b4151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.api-version-tags {
    display: flex;
    gap: 8px;
}

.version-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.version-tag.gray {
    background: #7d8492;
    color: white;
}

.version-tag.green {
    background: #89bf04;
    color: white;
}

.api-description {
    /* font-size: 16px; */
    color: black;
    margin-bottom: 24px;
    /* line-height: 1.6; */
}

.api-links {
    margin-bottom: 32px;
}

.api-links a {
    color: #4990e2;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.api-links a:hover {
    text-decoration: underline;
}

.authorize-btn {
    background: #49cc90;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.authorize-btn:hover {
    background: #3fb877;
}

.section-header {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-bottom: none;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.section-header:hover {
    background: #f0f2f5;
}

.section-header .chevron {
    transition: transform 0.2s;
}

.section-header.expanded .chevron {
    transform: rotate(180deg);
}

.section-content {
    border: 1px solid #e1e5e9;
    border-top: none;
    background: white;
}

.endpoint-item {
    border-bottom: 1px solid #e1e5e9;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.endpoint-item:hover {
    background: #f8f9fa;
}

.endpoint-item.active {
    background: #e8f4fd;
    border-left: 4px solid #4990e2;
}

.method-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.method-btn.get {
    background: #61affe;
    color: white;
}

.method-btn.post {
    background: #49cc90;
    color: white;
}

.method-btn.put {
    background: #fca130;
    color: white;
}

.method-btn.delete {
    background: #f93e3e;
    color: white;
}

.endpoint-path {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: black;
    font-weight: 500;
}

.endpoint-description {
    color: #666;
    font-size: 14px;
    flex: 1;
}

.endpoint-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.endpoint-icons .icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.code-block {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    padding: 20px !important;
    border-radius: 4px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    overflow-x: auto !important;
    margin: 16px 0 !important;
    border: none !important;
}

.info-card {
    background: #e8f4fd;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
}

.info-card h3 {
    color: #1f4e79;
    margin-bottom: 8px;
    font-size: 16px;
}

.info-card p {
    margin-bottom: 8px;
    font-size: 14px;
}

.info-card code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.collapsible {
    display: none;
}

.collapsible.expanded {
    display: block;
}

.list-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #e1e5e9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
}

.list-item:last-child {
    border-bottom: none !important;
}

.list-item code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

/* Bootstrap Accordion Overrides for Swagger UI Look */
.accordion {
    border: none !important;
    --bs-accordion-border-width: 0 !important;
    --bs-accordion-border-radius: 0 !important;
}

.accordion-item {
    border: 1px solid #e1e5e9 !important;
    border-bottom: none !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

.accordion-item:last-child {
    border-bottom: 1px solid #e1e5e9 !important;
}

.accordion-button {
    background-color: #f8f9fa !important;
    border: none !important;
    padding: 16px 20px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #3b4151 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa !important;
    color: #3b4151 !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    border-color: transparent !important;
    box-shadow: none !important;
}

.accordion-button::after {
    background-image: none !important;
    content: "▼" !important;
    font-size: 12px !important;
    color: #3b4151 !important;
    transform: none !important;
    transition: transform 0.2s !important;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg) !important;
}

.accordion-body {
    padding: 20px !important;
    background-color: white !important;
    border-top: 1px solid #e1e5e9 !important;
}

/* Override Bootstrap's default accordion styling */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa !important;
}

.accordion-button:hover {
    background-color: #f0f2f5 !important;
}

/* Ensure proper spacing and layout */
.swagger-content .accordion {
    margin-top: 0 !important;
}

/* Fix the API info container */
.api-info-container {
    margin: 50px 0 !important;
    background: white !important;
    padding: 20px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Accordion button content layout */
.accordion-button strong {
    margin-right: 8px !important;
}

.accordion-button span {
    color: #666 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
}

/* Ensure chevron is positioned correctly */
.accordion-button::after {
    margin-left: auto !important;
    order: 2 !important;
    flex-shrink: 0 !important;
}
