@import url("//fonts.googleapis.com/css?family=Overpass:300,400,600,700&display=swap");

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

body {
    font-family: 'Overpass', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    background: #131722;
    font-weight: 400;
    min-height: 100vh;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.container {
    max-width: 1400px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.header p {
    font-size: 16px;
    color: #c5cbce;
}

.controls {
    background: #1e222d;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 0 10px 0 #131722;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
    border: 1px solid #2a2e39;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
}

.form-group input,
.form-group select {
    padding: 9px 12px;
    border: 1px solid #2a2e39;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Overpass', sans-serif;
    background: #2a2e39;
    color: #ffffff;
    height: 45px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #049cce;
    box-shadow: none;
}

.form-group input::placeholder,
.form-group select option {
    color: #69727a;
}

.btn-update {
    background: #049cce;
    color: white;
    border: 1px solid #049cce;
    padding: 9px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 15px 0px rgba(4, 156, 206, 0.3);
}

.btn-update:hover:not(:disabled) {
    background: #0385b3;
    transform: translateY(-2px);
    box-shadow: 0px 0px 15px 0px rgba(4, 156, 206, 0.5);
}

.btn-update:active:not(:disabled) {
    transform: translateY(0);
}

.btn-update:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a2e39;
    border-color: #2a2e39;
}

.chart-container {
    background: #1e222d;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px 0 #131722;
    min-height: 600px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #2a2e39;
    margin-bottom: 20px;
}

#kline-container {
    flex: 1;
    flex-grow: 1;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 34, 45, 0.85);
    border-radius: 5px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border: 1px solid #2a2e39;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: #1e222d;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    border: 1px solid #2a2e39;
}

.loading-content p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #2a2e39;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: #049cce;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    font-size: 13px;
    color: #4f5966;
    margin-top: 10px;
}

.error-message {
    color: #ff231f;
    background: #1e222d;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #ff231f;
    display: none;
    border: 1px solid #2a2e39;
    position: fixed;
    top: 10px;
    left: 10px;
    box-shadow: 0 0 10px 0 #131722;
}

.error-message.active {
    display: block;
}

.info-text {
    color: #4f5966;
    font-size: 13px;
    margin-top: 8px;
}

.chart-info {
    padding-top: 15px;
    padding-bottom: 10px;
    border-top: 1px solid #2a2e39;
    color: #c5cbce;
    font-size: 13px;
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 24px;
    }
}

.buttons-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: end;
    width: 100%;
}

#load-more-btn {
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
    box-shadow: 0px 0px 15px 0px rgba(0, 123, 255, 0.3);
}

#load-more-btn:hover:not(:disabled) {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0px 0px 15px 0px rgba(0, 123, 255, 0.5);
}

#load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a2e39;
    border-color: #2a2e39;
}

a {
    color: #049cce;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #007bff;
}

.suggestions-dropdown {
    scroll-behavior: smooth;
    position: absolute;
    width: 100%;
    background: #1e222d;
    border: 1px solid #2a2e39;
    border-radius: 5px;
    margin-top: 75px;
    z-index: 1000;
    display: none;
    box-shadow: 0 0 10px 0 #131722;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 9px 16px;
    cursor: pointer;
    border-bottom: 1px solid #2a2e39;
    transition: all 0.2s ease;
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background: #2a2e39;
    color: #049cce;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestions-dropdown::-webkit-scrollbar {
    width: 3px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.07);
    border: solid rgba(88, 88, 88, 0.12) 2px;
    border-radius: 5px;
}

.bitshares-logo {
    position: fixed;
    bottom: 30px;
    left: 20px;
}

.nav-container {
    background: #1e222d;
    border-radius: 5px;
    box-shadow: 0 0 10px 0 #131722;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    position: relative;
    border: 1px solid #2a2e39;
}

.btn-nav {
    text-align: center;
    text-decoration: none;
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
    padding: 9px 25px;
    margin: 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 15px 0px rgba(0, 123, 255, 0.3);
}

.btn-nav:hover {
    background: #0069d9;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
