@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
    overflow: scroll;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 0; 
    background: transparent; 
}


:root{
    --primary-color: #4179ff;
}

body {
    font-family: 'Inter', sans-serif;
}

.fs-14 {
    font-size: 14px;
}

.fs-13 {
    font-size: 13px;
}

.fs-12 {
    font-size: 12px;
}

.fs-10 {
    font-size: 10px;
}

.list-disc{
    list-style-type: disc;
}
.fade {
    transition: opacity .15s linear;
}
.tab-content>.tab-pane{
    display: none;
}
.tab-content>.tab-pane.active.show{
    display: block;
}
.f-center{
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.text-green{
    color: #4ade80;
}

.h-12{
    height: 48px;
}

.bg-light{
    background-color: #f0f0f0 !important;
}
.btn-primary:focus{
    background-color: #4179ff !important;
}
.btn-primary:focus-visible{
    box-shadow: 0 0 0 .25rem rgba(65, 121, 255, 0.3) !important;
}

.alignLeft-fixed {
    height: calc(100vh - 80px);
    transition: transform 0.3s ease-in-out;
}

/* Mobile Toggle Button */
/* Rotation animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-icon {
    animation: spin 2s linear infinite;
    transform-origin: center;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 85px;
    right: 15px;
    z-index: 1001;
    background: #e9ecef;
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
    transition: transform 0.3s ease;
}

.sidebar-toggle svg {
    animation: spin 2s linear infinite;
}

/* Mobile styles */
@media (max-width: 991px) {
    .sidebar-toggle {
        display: block;
    }
    
    .alignLeft-fixed {
        position: fixed;
        top: 78px;
        left: 0;
        z-index: 1000;
        background: white;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        overflow-y: auto;
        height: 100vh !important;
        width: 280px;
    }
    
    .alignLeft-fixed.show {
        transform: translateX(0);
    }
    
    .tab-content {
        padding-top: 20px;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar .nav-pills .nav-link{
    border-radius: 4px;
    cursor: pointer;
    /* border: 1px solid #e9ecef;
    border-bottom: none; */
}
.sidebar .nav-link svg path, 
.sidebar .nav-link svg circle { 
    stroke: #000;  
}

.sidebar .nav-pills .nav-link.active,
.sidebar .nav-pills .nav-link:hover{
   background-color: var(--primary-color);
   color: #fff !important;
}

.sidebar .nav-pills .nav-link:hover svg path,
.sidebar .nav-pills .nav-link:hover svg circle {
    stroke: #fff !important;
}

.sidebar .nav-link.active svg path, 
.sidebar .nav-link.active svg circle {
    stroke: #fff; 
}

.codeExampleTab .nav.nav-tabs{
    background: #f5f5f4; 
    padding: 4px;
    border-radius: 3px 3px 0px 0px;    
}

.codeExampleTab .nav.nav-tabs .nav-link{
    background: transparent; 
    font-size: 12px; 
    font-weight: 500; 
    margin:0; 
    line-height: 16px; 
    padding: 6px; 
    border-radius: 4px; 
    transition: all 0.3s ease-in-out; 
    cursor: pointer; 
    color: #000; 
    border:none; 
    min-width: 76px;
    text-align: center;
}

.codeExampleTab .nav.nav-tabs .nav-link.active{
    background: var(--primary-color); 
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); 
    color: white;
}



.tab-pane-auth {
    height: calc(100vh - 80px); 
    overflow-y: auto;
}

.getTryOutApiInfo .leftAlign{
    width: 75%; 
    height: 100vh; 
    overflow: auto;
}

.getTryOutApiInfo .rightAlign{
    width: 25%;
}
 
pre, code {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    display: inline !important;
    word-wrap: break-word !important;
    width: 100%;
    white-space: break-spaces;
}

.form-control:focus {
    color: inherit !important;
    background-color: inherit !important;
    box-shadow: none !important;
    border-color: inherit !important;
    outline: none !important;
}

.getTryOutApiInfo{
    padding-left: 24px;
}

::-webkit-scrollbar {
    width: 5px; 
    height: 5px; 
    border-radius: 0px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover { 
    background: #555; 
}

pre {
    overflow: unset !important;
}

#customAlertSection {
    width: 200px;
    position: fixed;
    top: 0;
    right: 0;
    background: #fff; 
    color: #000;
    padding: 12px 18px;
    border-radius: 0px; 
    border: 1px solid #0f0;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 9999;
}

#customAlertSection.show {
    opacity: 1; 
    pointer-events: auto;
    transform: translateY(0);
}

#tryItOutApiCallLoaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tryItOutApiCallLoader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.copy-btn.btn{
    width: 32px;
    height: 32px;
    top: 7px;
    right: 8px;
    border-radius: 3px;
}

.copy-btn.btn svg{
    width: 20px;
    height: 20px;
    margin: 0;
    fill: transparent;
}

.copy-btn:hover svg {
    right: 0px;
}

.sidebar .nav-pills .nav-link.btn-dark{
    background-color: #2B2B2B;
    color: #fff !important;
}

.overflow-div{
   display: inline-block;
   max-width: 100%;
   overflow: auto;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@media screen and (max-width: 1440px) {
    .caption-bottom p{
        font-size: 12px;
    }

    .sidebar .nav-pills .nav-link{
        font-size: 14px;
    }

    .sidebar .nav-pills .nav-link.btn-dark{
        font-size: 13px;
    }

    .auth{
        font-size: 13px;
    }
}

@media screen and (max-width: 1199px) {
    .sidebar.alignLeft-fixed span {
        font-size: 14px;
    }

    .sidebar .nav-pills .nav-link {
        font-size: 12px;
    }

    .getTryOutApiInfo .leftAlign .caption-bottom td{
        font-size: 12px;
    }

    .list-disc{
        font-size: 12px;
    }

    .apiDoc p{
        font-size: 14px;
    }

    .apiDoc select, 
    .apiDoc textarea, 
    .apiDoc input {
        font-size: 12px;
    }
}

@media screen and (max-width: 991px) {
    .getTryOutApiInfo .leftAlign,
    .getTryOutApiInfo .rightAlign{
        width: 100%;
    }

    .getTryOutApiInfo {
        display: block !important;
    }

    .getTryOutApiInfo .rightAlign{
        height: auto !important;
        margin-top: 30px;
    }

    .alignLeft-fixed{
        height: auto !important;
    }
}

@media screen and (max-width: 767px) {    
    .getTryOutApiInfo .rightAlign{
        border-left: none !important;
    }

    .getTryOutApiInfo {
        padding-left: 0;
    }

    .getTryOutApiInfo .leftAlign{
        padding-left: 15px;
    } 
    
    .base-url span{
        word-wrap: break-word !important;
        width: 100%;
        white-space: break-spaces;
    }
}


