.inter-text {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

html, body {
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    margin-left: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #13151a;
}

.SideBar {
    background-color: #16181d;
    width: 200px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;

    border-right: 1px solid rgba(128, 128, 128, 0.123);
    box-shadow: 0px 3px 15px 1px rgba(0, 0, 0, 0.432);
}

.SideBar_Title {
    color: white;
    font-size: 29px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
    width: auto;
    padding-bottom: 16px;
    padding-left: 30px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #31363f;
}

.SideBar_Title:hover {
    cursor: pointer;
}

.SideBar_List {
    text-decoration: none;
    list-style: none;
    height: 60%;
    padding: 0;
    margin: 0;
}

.SideBar_Category_Title {
    color: #86909a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px 8px 20px;
    margin-top: 10px;
    margin-bottom: 5px;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}

.SideBar_Category_Title:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 5px;
}

.SideBar_List_ListItem {
    display: flex;
    align-items: center;
    padding-left: 20px;
    margin-bottom: 0;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 9px;
    width: 160px;
    height: 37px;
    transition: 350ms;
}

.SideBar_List_ListItem:hover {
    background-color: #31363f;
    cursor: pointer;
}

.SideBar_List_ListItem:hover p {
    color: white;
}

.SideBar_List_ListItem:hover svg {
    color: white;
}

.selected-item {
    background-color: #00ff99;
}

.selected-item p {
    color: black;
}

.selected-item svg {
    color: black;
}

.SideBar_List_ListItem_Text {
    color: rgb(177, 177, 177);
    font-size: 14px;
    font-weight: 500;
}

.SideBar_icon {
    width: 20px;
    height: 17px;
    margin-left: 0;
    margin-right: 7px;
    color: rgb(177, 177, 177);
}

.anchor {
    text-decoration: none;
}

.MainFrame {
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
    scrollbar-color: rgb(14, 12, 12) transparent;
}

.MainFrame_HeadFrame {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
}

#bar-icon {
    color: white;
    display: none;
    padding-left: 2.3%;
}

#bar-icon:hover {
    cursor: pointer;
}

.MainFrame_Title {
    font-size: 35px;
    font-weight: 700;
    color: white;
    width: 68%;
    padding-left: 2.3%;
    margin-top: 0;
    margin-bottom: 0;
}

.MainFrame_Frame {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    height: auto;
    padding: 20px 2.3%;
    box-sizing: border-box;
}

/* Backtesting Configuration Panel */
.backtest-config-panel {
    background-color: #191d23e7;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 128, 128, 0.123);
    box-shadow: 0px 3px 15px 1px rgba(0, 0, 0, 0.432);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.config-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.config-input {
    padding: 10px 15px;
    background-color: #16181d;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    transition: border-color 0.2s;
}

.config-input:focus {
    outline: none;
    border-color: #00ff99;
}

.config-button {
    padding: 10px 25px;
    background-color: #00ff99;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 250ms;
}

.config-button:hover {
    transform: scale(1.02);
    box-shadow: 0px 3px 20px -5px #00ff99;
}

.config-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 800px;
    min-height: 800px;
    max-height: 800px;
    background-color: #191d23e7;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 128, 128, 0.123);
    box-shadow: 0px 3px 15px 1px rgba(0, 0, 0, 0.432);
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* Price Indicators */
.price-indicators {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(22, 24, 29, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.indicator-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-label {
    color: #86909a;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.indicator-value {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    min-width: 80px;
}

.indicator-high {
    color: #00ff99;
}

.indicator-low {
    color: #ff4747;
}

#replay-chart {
    width: 100%;
    height: 720px; 
    min-height: 730px;
    max-height: 730px;
}

/* Playback Controls */
.playback-controls {
    background-color: #191d23e7;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 128, 128, 0.123);
    box-shadow: 0px 3px 15px 1px rgba(0, 0, 0, 0.432);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.playback-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.playback-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.playback-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.playback-button {
    padding: 12px 20px;
    background-color: #16181d;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 250ms;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playback-button:hover:not(:disabled) {
    background-color: #31363f;
    transform: scale(1.05);
}

.playback-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.playback-button-primary {
    background-color: #00ff99;
    color: black;
    border: none;
}

.playback-button-primary:hover:not(:disabled) {
    background-color: #00cc7a;
    transform: scale(1.05);
}

.playback-speed {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.speed-slider {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #16181d;
    outline: none;
    -webkit-appearance: none;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff99;
    cursor: pointer;
}

.speed-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff99;
    cursor: pointer;
    border: none;
}

#speed-display {
    color: white;
    font-size: 15px;
    font-weight: 600;
    min-width: 40px;
}

@media (max-width: 1100px) {
    body {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        overflow-y: auto;
    }

    .SideBar {
        display: none;
        position: fixed;
        z-index: 1;
        width: 100%;
        height: 100vh;
    }

    .SideBar_List_ListItem {
        width: 88%;
    }

    .MainFrame {
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
    }

    #bar-icon {
        display: block;
    }

    .MainFrame_Title {
        font-size: 24px;
    }

    .backtest-config-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .config-group {
        min-width: 100%;
    }

    .chart-container {
        height: 800px;
        min-height: 800px;
        max-height: 800px;
        padding: 8px;
    }
    
    #replay-chart {
        height: calc(100% - 25px);
    }
    
    .price-indicators {
        padding: 10px;
        gap: 10px;
    }
    
    .indicator-group {
        gap: 5px;
    }
    
    .indicator-label {
        font-size: 11px;
    }
    
    .indicator-value {
        font-size: 12px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 500px;
        min-height: 500px;
        max-height: 500px;
        padding: 5px;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    
    #replay-chart {
        height: 430px;
        min-height: 430px;
        max-height: 430px;
    }
    
    .price-indicators {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .indicator-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .indicator-label {
        font-size: 11px;
    }
    
    .indicator-value {
        font-size: 12px;
        min-width: auto;
    }
    
    .playback-controls {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .playback-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .playback-button {
        font-size: 12px;
        padding: 8px 12px;
        min-width: auto;
    }
    
    .playback-info {
        text-align: center;
    }
    
    .playback-text {
        font-size: 12px;
    }
}


.mainframe-loading {
    width: 100%;
    max-width: 360px;
    min-width: 200px;
    height: 55px;
    background-color: #121212;
    border-radius: 15px;
    border: 1px solid #252525 ;

    right: 0;
    bottom: 0;


    display: none;
    transform: translateY(200px);
    transition: 750ms;
    margin-bottom: 15px;
    margin-right: 30px;
    position: fixed;
    z-index: 5;

    align-content: center;
}

.spin-icon {
    width: 16px;
    height: 16px;

    color: rgb(253, 253, 253);
    animation: spinicon 3s infinite;
}

.done-icon {
    width: 16px;
    height: 16px;

    color: rgb(253, 253, 253);
    background-color: #00ff993f;
    border-radius: 100%;
    color: #00ff99;
}

#load-frame {
    display: none;
}

.load-text {
    font-size: 15px;
    font-weight: 600;
    color: white;

    margin-left: 14px;
}

.loading-frame {
    display: flex;



    align-items: center;

    margin-left: 20px;
}

@keyframes spinicon {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .playback-buttons {
        flex-direction: column;
    }

    .playback-button {
        width: 100%;
        justify-content: center;
    }

}

