body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    background: #ffffff;
    color: #000000;
}

header {
    background: #000000;
    padding: 16px 0;
    text-align: center;
}

.logo {
    height: 48px;
}

main {
    max-width: 1000px;
    margin: 40px auto;
    background: #FFF;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(74, 74, 74, 0.08);
}

h1 {
    color: #000000;
    margin-top: 0;
}

.info-box {
    background: #f5f5f5;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0 24px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.main-link, button {
    display: block;
    width: 100%;
    background: #02abf0;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 1.2em;
    margin-top: 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

button:hover, .main-link:hover {
    background: #0288cc;
    color: #FFFFFF;
}

footer {
    text-align: center;
    margin: 48px 0 0 0;
    color: #4a4a4a;
    font-size: 0.95em;
}

.builder-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.builder-actions button {
    flex: 1;
    margin-top: 0;
}

.profile-builder-container {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

.stage-editor {
    flex: 1;
    min-width: 300px;
}

.profile-visualizer {
    flex: 1;
    min-width: 300px;
}

.stage-editor h3, .profile-visualizer h3 {
    color: #000000;
    margin: 0 0 16px 0;
    font-size: 1.1em;
    border-bottom: 2px solid #02abf0;
    padding-bottom: 8px;
}

#current-stage-editor .ascent-level {
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    margin-bottom: 16px;
}

.stage-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.stage-navigation button {
    background: #02abf0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 0;
    width: auto;
}

.stage-navigation button:disabled {
    background: #4a4a4a;
    cursor: not-allowed;
}

.stage-navigation button:hover:not(:disabled) {
    background: #0288cc;
}

#stage-indicator {
    font-weight: bold;
    color: #000000;
}

#profile-table {
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    overflow: hidden;
}

.checkpoint {
    padding: 12px;
    border-bottom: 1px solid #4a4a4a;
    background: #ffffff;
}

.checkpoint:last-child {
    border-bottom: none;
}

.checkpoint-header {
    font-weight: bold;
    color: #000000;
    margin-bottom: 4px;
}

.checkpoint-detail {
    font-size: 0.9em;
    color: #4a4a4a;
}

.transition {
    padding: 8px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #4a4a4a;
    font-size: 0.85em;
    color: #4a4a4a;
    font-style: italic;
}

.transition:last-child {
    border-bottom: none;
}

.charts-container {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-section {
    background: #ffffff;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    padding: 16px;
}

.chart-section h4 {
    color: #000000;
    margin: 0 0 12px 0;
    font-size: 1em;
    font-weight: bold;
}

.chart-section canvas {
    max-height: 300px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    main {
        max-width: 95%;
        padding: 20px 16px;
    }
    
    .profile-builder-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .stage-editor, .profile-visualizer {
        min-width: auto;
    }
    
    .stage-navigation {
        flex-direction: column;
        gap: 8px;
    }
    
    .stage-navigation button {
        width: 100%;
    }
    
    #current-upper {
        width: 100px !important;
    }
    
    #current-rate {
        width: 70px !important;
    }
    
    .chart-section canvas {
        max-height: 250px;
    }
}

form > .ascent-level {
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 18px;
    background: #ffffff;
}

.ascent-level p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    font-size: 1.1em;
}

.level-label {
    font-weight: bold;
    color: #000000;
    margin-bottom: 12px;
}

input, select {
    margin: 0 0 12px 0;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #4a4a4a;
    width: 100%;
    font-size: 1em;
    box-sizing: border-box;
}

input:disabled {
    background: #f5f5f5;
    color: #4a4a4a;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: normal;
    color: #000000;
}

label input[type="radio"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.remove-btn {
    background: #02abf0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    width: auto;
    margin-top: 8px;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #0288cc;
}

#csv-download {
    margin-top: 16px;
    text-align: center;
}

#csv-download a {
    display: inline-block;
    background: #02abf0;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#csv-download a:hover {
    background: #0288cc;
}

/* Error styling */
.error-message {
    color: #000000;
    font-size: 0.9em;
    margin-top: 4px;
    margin-bottom: 12px;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
}

input.error {
    border-color: #000000;
    background-color: #f5f5f5;
}

input.error:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(74, 74, 74, 0.2);
} 

.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
} 

.form-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #02abf0;
}
.form-row label {
    cursor: pointer;
    font-weight: 600;
    user-select: none;
} 

.hidden {
    display: none !important;
} 