body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main title styling */
h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}

/* Title container with bottom border */
.title-container {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Subtitle styling */
.lead.subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Form styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #6c757d;
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.card-header h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.card-body {
    padding: 1.5rem;
}

/* Map container */
#map {
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

/* Journey stats */
.journey-stats {
    background-color: #f8f9fa;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.journey-stats .card-header {
    background-color: #e9ecef;
}

.journey-stats .card-body {
    padding: 1rem;
}

.journey-stats p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.journey-stats strong {
    color: #495057;
}

/* Position list and items */
.position-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.position-item {
    background-color: #fff;
    transition: transform 0.2s ease-in-out;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.position-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.position-item h5 {
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.position-actions {
    display: flex;
    gap: 0.5rem;
}

/* Emoji selector styling */
.emoji-selector-container {
    position: relative;
    margin-bottom: 1rem;
}

.selected-display-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.selected-display-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #495057;
    min-width: 70px;
}

.selected-emojis {
    flex: 1;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.selected-emojis .placeholder {
    color: #6c757d;
}

.picker-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.picker-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #495057;
    min-width: 70px;
}

.emoji-picker {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emoji-option {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.emoji-option:hover {
    background-color: #f8f9fa;
}

.position-item .emojis {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 0.375rem 1rem;
    }

    .emoji-option {
        font-size: 1.25rem;
    }
}
