/* Neue Montreal Font Family */
@font-face {
    font-family: 'Neue Montreal';
    src: url('../assets/fonts/PPNeueMontreal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Inter Font Family */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Fira Mono Font Family */
@font-face {
    font-family: 'Fira Mono';
    src: url('../assets/fonts/FiraMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Mono';
    src: url('../assets/fonts/FiraMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Mono';
    src: url('../assets/fonts/FiraMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    background: #efefef;
    font-family: 'Neue Montreal', sans-serif;
    color: #333333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.header {
    padding-top: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.30);
}

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

.title-section {
    display: flex;
    gap: 10px;
}

.main-title {
    color: #1a1a18;
    font-family: 'Neue Montreal', sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    /* 64px */
    line-height: 100%;
    letter-spacing: -0.64px;
}

.subtitle {
    color: #1a1a18;
    font-family: 'Neue Montreal', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    /* 28px */
    line-height: 140%;
    text-decoration: none;
}

.subtitle a {
    text-decoration: none;
    color: #1a1a18;
}

.subtitle a:visited {
    color: #1a1a18;
}

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

.bl-logo {
    width: 48.14px;
    height: 46.526px;
    aspect-ratio: 48.14/46.53;
}

.content {
    display: flex;
    margin-top: 20px;
    gap: 20px;
    min-height: 600px;
}

.chart-section {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.chart-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    flex: 1;
}

#chart {
    min-height: 700px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.log-section {
    flex: 1;
    min-height: 50vh;
}

.log-section h3 {
    color: #1a1a18;
    font-family: 'Neue Montreal', monospace;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    gap: 15px;
}

.event-log {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.log-header {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 60px;
}

.log-content {
    flex: 1;
    overflow-y: auto;
    font-family: 'Neue Montreal', monospace;
    font-size: 12px;
    line-height: 1.3;
    min-height: 20vh;
    max-height: 53vh;
    height: auto;
}

.log-entry:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.30);
    padding-top: 20px;
}

.log-entry {
    color: #333333;
    margin-top: 20px;
    padding-left: 6px;
    padding-right: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.30);
    color: #000000;
    font-family: "Fira Mono";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    /* 16.8px */
}

.instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.instructions h3 {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    color: #666666;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
    font-size: 12px;
}

.instructions li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .content {
        flex-direction: column;
        padding: 15px;
    }

    .chart-section {
        flex: none;
    }

    .header {
        padding: 30px 20px 20px 20px;
    }

    .main-title {
        font-size: 36px;
    }

    .bl-logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 15px 15px 15px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 12px;
    }

    .bl-logo {
        width: 48.14px;
        height: 46.526px;
        aspect-ratio: 48.14/46.53;
    }

    .content {
        padding: 8px;
        gap: 15px;
    }

    .chart-container,
    .event-log {
        padding: 8px;
    }
}

/* Requirements Section Styles - Clean Minimalist Design */
.requirements-section {
    background: #ffffff;
    margin: 20px 0;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.requirement-card-header {
    margin-bottom: 40px;
}

.requirements-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.requirement-card {
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
    transition: box-shadow 0.2s ease;
}

.requirement-card ul {
    list-style-type: none;
    list-style: none;
}

.requirement-card li {
    border-top: 1px solid rgba(0, 0, 0, 0.30);
    margin-top: 10px;
    padding-top: 10px;
    margin-bottom: 20px;
    color: #000000;
    font-family: "Neue Montreal";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.requirement-card h3 {
    color: #1a1a18;
    font-family: 'Neue Montreal', monospace;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    /* 33px */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.h3-arrow {
    width: 26px;
    height: 26px;
}

.requirement-card h4 {
    color: #666666;
    font-size: 13px;
    font-weight: 500;
    margin: 12px 0 6px 0;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-card strong {
    color: #333333;
    font-weight: 600;
}

.requirement-card a {
    color: #1f79ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.requirement-card a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.install-method {
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-methods code {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px 10px;
    width: 100%;
    color: #000000;
    font-family: "Fira Mono";
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    font-size: 11px;
    display: block;
    margin: 6px 0;
}

.usage-example h3 {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-example pre {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    overflow-x: auto;
    margin: 0;
    border: 1px solid #e9ecef;
}

.usage-example code {
    color: #495057;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
}

/* Responsive adjustments for requirements section */
@media (max-width: 768px) {
    .requirements-section {
        padding: 15px;
        margin: 15px 0;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .requirement-card {
        padding: 12px;
    }

    .requirements-content h2 {
        font-size: 18px;
    }
}

/* BuySell form CSS */
.highcharts-buysell-modal {
    display: flex;
    flex-direction: column;
    font-family:
        'Lucida Grande', 'Lucida Sans Unicode', Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.buysell-header {
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.buysell-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.buysell-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666666;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buysell-close:hover {
    color: #333333;
}

.buysell-tabs {
    display: flex;
    flex-shrink: 0;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.buysell-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.buysell-tab.active {
    background-color: #ffffff;
    border-bottom: 2px solid #007bff;
    font-weight: bold;
}

.buysell-tab:hover:not(.active) {
    background-color: #e8e8e8;
}

.buysell-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.buysell-field {
    margin-bottom: 15px;
}

.buysell-field.hidden {
    display: none;
}

.buysell-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333333;
}

.buysell-field select,
.buysell-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

.buysell-field select {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 32px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.buysell-field select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.buysell-field label:has(input[type='radio']) {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.buysell-field input[type='radio'] {
    width: auto;
    height: auto;
    margin-right: 5px;
}

.buysell-field label:has(input[type='checkbox']) {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.buysell-field input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    margin-left: 0;
    vertical-align: middle;
}

.buysell-field input[type="checkbox"] + label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.buysell-field input[type='text'] {
    cursor: text;
}

.buysell-field input[type='number'] {
    cursor: text;
    appearance: auto;
    -webkit-appearance: auto;
}

.buysell-field input[type='number']::-webkit-outer-spin-button,
.buysell-field input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: auto;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
}

.buysell-field input[type='number']::-webkit-outer-spin-button:hover,
.buysell-field input[type='number']::-webkit-inner-spin-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.buysell-field select:focus,
.buysell-field input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.buysell-field select:hover,
.buysell-field input:hover {
    border-color: #999999;
}

.buysell-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.buysell-submit,
.buysell-cancel {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buysell-cancel {
    background-color: #6c757d;
    color: #ffffff;
}

.buysell-cancel:hover {
    background-color: #5a6268;
}

.buysell-submit {
    background-color: #28a745;
    color: #ffffff;
}

.buysell-submit:hover {
    background-color: #218838;
}

.buysell-tab.active[data-tab='sell'] ~ .buysell-content .buysell-submit {
    background-color: #dc3545;
    color: #ffffff;
}

.buysell-tab.active[data-tab='sell'] ~ .buysell-content .buysell-submit:hover {
    background-color: #c82333;
}
