@import url('https://fonts.googleapis.com/css?family=Lato');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1em;
}

html {
    overflow-y:overlay;
}

body {
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #1a73e8;
    border-radius: 15px;
  }
  
  ::-webkit-scrollbar-track {
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
  }

/* Header Styles */
header {
    background-color: #1a73e8;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    min-height: 100px; /* Ensure header has enough height for centering */
}

.command {
    background-color: #cecece79;
    color: #000000;
    padding: 4px;
    border-radius: 15px;
    font-family: "JetBrains Mono", serif;
    font-size: 0.7em;
}

.header-content {
    display: flex;
    align-items: center;
}

.logo-container {
    margin-right: 20px;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    vertical-align: middle;
}

header h1 {
    font-size: 3em;
    margin: 0;
}

h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
}
h3 {
    font-size: 1.2em;
}

.message {
    padding: 10px;
    height: 30px;
}

.btn {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn2 {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8em;
    text-align: left;
    width: 100%;
}
.btn2:hover {
    background-color: #051c3b7d;
    color: white;
}

.apioutput {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #1a73e8;
    border-radius: 5px;
    width: 100%;
    background-color: #f4f4f4;
    min-height: 500px;
}

.apioutput textarea {
    padding: 5px;
    border: 0px;
    width: 100%;
    font-size: 1em;
    background-color: transparent;
    overflow-y:scroll;
    font-family: "JetBrains Mono", serif;

}

.dontshow {
    display: none;
}

.normalsize {
    min-height: 500px;
}
.smallsize {
    margin-top: 10px;
    min-height: 390px;
}
.smallsize2 {
    margin-top: 10px;
    min-height: 430px;
}
.ltxt {
    display: inline-block;
    padding: 5px;
    border-radius: 5px;
    width: 50%;
    float: left;
    font-size: 1em;
    font-weight: bold;
}

.txt {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #1a73e8;
    border-radius: 5px;
    width: 90%;
    font-size: 1em;
    background-color: #f4f4f4;
}

.txt2 {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #1a73e8;
    border-radius: 5px;
    width: 49%;
    margin-bottom: 4px;
    font-size: 1em;
    background-color: #f4f4f4;
}



.infobox {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #1a73e81a;
    border-radius: 5px;
    width: 500px;
    font-size: 1em;
    background-color: #f4f4f4;
    float: right;
    cursor: pointer;
    color: #00000089;
}

.infobox2 {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #1a73e81a;
    border-radius: 5px;
    width: calc( 100% - 34px );
    font-size: 1em;
    background-color: #f4f4f477;
    color: #0000005c;
}

.infobox3 {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #1a73e86f;
    width: 100%;
    font-size: 1em;
    background-color: #f4f4f477;
    color: #0000005c;
}

.infobox4 {
    padding: 5px;
    font-size: 1em;
    color: #000000a3;
}

.addnew {
    font-weight: bold;
    text-decoration: none;
}

.infoboxwithloader {
    width: calc( 500px - 34px );
    margin-right: 3px;
}

.infobox5 {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #1a73e86f;
    width: calc( 100% - 34px );
    font-size: 1em;
    background-color: #f4f4f477;
    color: #0000005c;
}

#msg {
    display: none;
}
#msg2 {
    display: none;
}

/* Flat Menu Styles */
.tab-menu {
    background-color: #333;
    text-align: center;
    position: relative;
    padding: 6px 0;
}

.tab {
    display: inline-block;
    background-color: #333;
    color: white;
    cursor: pointer;
    width: 120px;
    height: 25px;
    background-color:rgba(115, 114, 114, 0.33);
    border-radius: 5px;
}

.menu-item {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    margin-top: 3px;
    text-decoration: none !important;
}

.tab:hover {
    background-color:rgba(255, 255, 255, 0.33);
}

/* Main Content Styles - Two Columns */
main {
    width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    gap: 50px;
    min-height: calc( 100vh - 230px );
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.main-content {
    flex: 3;
    padding: 15px;
}

.main-content p {
    margin-bottom: 1em;
}

.main-content h2 {
    margin-bottom: 1em;
}

.main-content ul {
    margin-left: 3em;
}

.sidebar ul {
    margin-top: 0.6em;
    margin-left: 1.4em;
}

/* Footer Styles */
footer {
    background-color: #1a73e8;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
}

code {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

.sitename {
    font-size: 3.5em;
    font-weight: bold;
    color: #ffffff;
    z-index: 999;
    text-shadow:
            1px 1px 2px rgba(0, 0, 0, 0.144),
            0 0 0.5em #0a3a7893,
            0 0 0.3em rgba(0, 0, 0, 0.246);
}

.statusbox {
    width: 32px;
    height: 30px;
    padding: 2px;
    border-radius: 5px;
    border: 1px solid #1a73e81a;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f4f4f477;
    color: #0000005c;
    float: right;
}

.bouncing-dots {
    display: flex;
    justify-content: space-between;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #1a73e89a;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

    @keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(+15px);
    }
}
.activity {
    padding-bottom: 2px;
}
textarea {
    resize: none;
  }

.dot2 {
    height: 24px;
    width: 26px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

#statusLoading {
    display: none;
}
#statusSuccess {
    display: none;
    background-color: rgba(12, 140, 12, 0.8);
}
#statusFailed {
    display: none;
    background-color: rgba(189, 29, 29, 0.8);
}
#statusUnknown {
    display: block;
    background-color: rgba(234, 233, 233, 0.8);
}

.sendmessage {
    display: none;
}

.options {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
    border: 1px solid #1a73e8;
}

.options select {
    margin-top: 5px;
    margin-bottom: 5px;
}

.oplabel {
    font-weight: bold;
}

.sendmessage {
    padding: 10px;
}
#message {
    height: 280px;
    border: 1px solid #1a73e81a;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f4f4f477;
    color: #0000005c;
}

.lds-circle {
    /* change color here */
    color: #1a73e8;
  }
  .lds-circle,
  .lds-circle div {
    box-sizing: border-box;
  }
  .lds-circle {
    display: inline-block;
    transform: translateZ(1px);
  }
  .lds-circle > div {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: currentColor;
    border-radius: 50%;
    animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  }
  @keyframes lds-circle {
    0%, 100% {
      animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
    }
    0% {
      transform: rotateY(0deg);
    }
    50% {
      transform: rotateY(1800deg);
      animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
    }
    100% {
      transform: rotateY(3600deg);
    }
  }
  .popup {
    position: absolute;
    width: 1160px;
    min-height: 300px;
    z-index: 100;
    margin: auto 0;
    border: 3px solid #1a73e8;
    background-color: #f4f4f4;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: none;
}
.popup-content {
    position: absolute;
    top: 50px;
    left: 20px;
    width: calc( 100% - 40px );
    height: calc( 100% - 70px );
    overflow-y:overlay;
}
#grayout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
    display: none;
}

.title {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc( 100% - 55px );
    height: 30px;
    font-size: 1.4em;
    font-weight: bold;
    color: #00000039;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.153);
    border-radius: 5px;
    padding-left: 10px;
}
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 2em;
    text-align: center;
    line-height: 24px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.153);
    border: 2px solid #1a73e8;
    border-radius: 5px;
}

#infotext {
    font-size: 0.8em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    html,body {
            -ms-overflow-style: none;  /* Internet Explorer 10+ */
            scrollbar-width: none;  /* Firefox */
    }
    * {
        font-family: "Lato", Arial, sans-serif;
    }
    .sitename {
        font-size: 2.5em;
        font-weight: bold;
        color: #ffffff;
        z-index: 999;
        text-shadow:
            1px 1px 2px rgb(0, 0, 0),
            0 0 1em #0a3a78,
            0 0 0.6em rgb(0, 0, 0);
    }
    header {
        min-height: 80px;
        padding: 10px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        text-decoration: underline;
    }

    .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .logo-container img {
        max-width: 150px;
        position: absolute;
        top: 0;
        left: 0;
    }

    header h1 {
        font-size: 1.5em;
    }

    .apioutput {
        font-size: 0.7em;
    }

    .tab-menu {
        background-color: #333;
        text-align: center;
        position: relative;
        padding: 6px 10px 10px 10px;
    }

    .tab {
        display: block;
        background-color: #333;
        color: white;
        cursor: pointer;
        width: 100%;
        height: 26px;
        background-color:rgba(115, 114, 114, 0.33);
        border-radius: 5px;
        padding-top: 2px;
        margin-top: 4px;
    }

    .menu-item {
        display: block;
        text-decoration: none;
        color: white;
        width: 100%;
        height: 100%;
        border-radius: 5px;
        margin-top: 2px;
        text-decoration: none !important;
    }

    .tab:hover {
        background-color:rgba(255, 255, 255, 0.33);
    }

    main {
        width:fit-content;
        max-width: 1200px;
        margin: 10px;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .popup {
        position: absolute;
        width: calc( 100% - 50px );
        max-width: 1200px;
        min-height: 400px;
    }

    .sidebar, .main-content {
        flex: 1;
        min-width: 100%;
    }

    footer {
        position: static;
        font-size: 0.5em;
    }
}
