body {
    background-color: #121212;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    border: none;
    margin-bottom: 15px;
    background-color: #1e1e1e;
}

.card-header {
    background-color: #26d0ce;
    padding: 6px 10px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.card-header h2 {
    font-size: 1.3rem;
    margin: 0;
    color: #121212;
    font-weight: 600;
}

.card-body {
    padding: 10px;
}

.journey-leg {
    background-color: #2d2d2d;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
    border: 1px solid #383838;
}

.journey-leg h4 {
    margin-bottom: 5px;
    color: #26d0ce;
    font-size: 15px;
    font-weight: 600;
}

.form-label {
    margin-bottom: 2px;
    font-size: 12px;
    color: #b0b0b0;
}

.row {
    margin-bottom: 6px;
}

/* Basic form styles */
.form-select, .form-control {
    border-radius: 4px;
    border: 1px solid #444;
    padding: 4px 6px;
    font-size: 12px;
    height: 30px;
    background-color: #333;
    color: #e0e0e0;
    appearance: auto; /* Fix for Firefox */
}

/* For placeholder text in select elements */
select option:first-child {
    color: #888;
}

/* Select dropdown appearance */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23aaa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px 12px;
}

/* Disabled select elements */
.form-select:disabled, 
.form-select[disabled] {
    background-color: #252525;
    color: #777;
    border-color: #333;
    opacity: 0.8;
}

/* Select focus state */
.form-select:focus, .form-control:focus {
    box-shadow: 0 0 0 0.15rem rgba(38, 208, 206, 0.25);
    border-color: #26d0ce;
    background-color: #3a3a3a;
    outline: none;
}

.btn {
    padding: 4px 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 1px 5px;
    font-size: 11px;
}

.btn-primary {
    background-color: #26d0ce;
    border-color: #26d0ce;
    font-weight: 500;
    color: #121212;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #20b0ae;
    border-color: #20b0ae;
    color: #121212;
}

.btn-secondary {
    background-color: #444;
    border-color: #444;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #555;
    border-color: #555;
}

.btn-outline-danger {
    color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 11px;
    background-color: #444;
    color: #e0e0e0;
    border: none;
    z-index: 10;
    border-radius: 3px;
}

.btn-copy:hover {
    background-color: #555;
}

.mt-4 {
    margin-top: 8px !important;
}

.mt-3 {
    margin-top: 6px !important;
}

.mt-2 {
    margin-top: 4px !important;
}

.mb-3 {
    margin-bottom: 6px !important;
}

.mb-2 {
    margin-bottom: 4px !important;
}

.alert-success {
    background-color: #1e2f23;
    border-color: #264d33;
    color: #79de9e;
    padding: 6px;
    margin-top: 6px;
    position: relative;
}

#resultText {
    font-family: 'Consolas', 'Courier New', monospace;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 12px;
    margin-bottom: 5px;
    color: #26d0ce;
}

/* Styling for the add leg button */
#addLegButton {
    margin-bottom: 8px;
    background-color: #333;
    border-color: #444;
}

#addLegButton:hover {
    background-color: #444;
    border-color: #555;
}

#generateButton {
    background-color: #26d0ce;
    border: none;
    position: relative;
    overflow: hidden;
}

#generateButton::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Compact styles for smaller screens */
@media (max-width: 768px) {
    .row .col-md-3 {
        margin-bottom: 6px;
    }
    .g-2 {
        --bs-gutter-y: 0.25rem;
    }
} 