body {
    font-family: sans-serif;
    background: #0b1120; /* Very dark night-sky blue */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
    color: #e0e6f0; /* Light text for contrast */
}

.logo-image {
    width: 95%;
    max-width: 320px; /* Limit logo width */
    margin: 0 auto 10px;
    display: block;
    border-radius: 12px;
    border: 5px dotted #dbdbfb;
}

.container {
    background: #1c2535; /* Slightly lighter dark blue for contrast */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4); /* Stronger shadow for dark theme */
    text-align: center;
    max-width: 540px;
    width: 80%;
    margin: 0 auto; /* Always center container */
}

input[type="url"] {
    width: 100%;
    padding: 0.6rem;
    margin: 1rem 0;
    background-color: #2a3445;
    border: 1px solid #3f4e65;
    color: #e0e6f0;
    border-radius: 6px;
}

    input[type="url"]::placeholder {
        color: #a0acc0;
    }

button {
    all: unset; /* Resets nearly all inherited/default styles */
}

/* Each trail-view-container is stacked vertically (flex-column). */
.trail-view-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 95%;
    background-color: #111827;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Each line: label on the left (fixed), text in the middle (flex), button on the right (fixed). */
.trail-view-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Label pinned to the left with fixed width. */
.trail-view-label {
    width: 60px;
    font-size: 0.75rem;
    color: #a0acc0;
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
}

/* Text in the middle, flexible. Use min-width:0 so ellipsis can occur on narrow screens. */
.trail-view-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 0.95rem;
    color: #e0e6f0;
}

/* Button pinned on the right with fixed width. */
.crumb-go-btn, .playlist-go-btn, .trail-ellipsis-btn, .crumb-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    width: 60px;
    height: 100%;
    padding: 2px;
}

.trail-ellipsis-btn {
    width: 90px;
    background-color: none;
    border: 3px solid rgba(200, 200, 255, 0.3);
    opacity: 0.7;
}

    .trail-ellipsis-btn:hover {
        border: 3px solid rgba(200, 200, 255, 0.4);
        box-shadow: 0 0 10px rgba(200, 200, 255, 0.2);
        opacity: 0.9;
    }

.crumb-add-btn {
    width: 25px;
    background-color: none;
    border: 3px solid rgba(200, 200, 255, 0.3);
    opacity: 0.7;
}

    .crumb-add-btn:hover {
        border: 3px solid rgba(200, 200, 255, 0.4);
        box-shadow: 0 0 10px rgba(200, 200, 255, 0.2);
        opacity: 0.9;
    }

.crumb-go-btn {
    width: 96px;
    background-color: #ff8c42;
}

    .crumb-go-btn:hover {
        background-color: #fb9c34;
        box-shadow: 0 0 10px rgba(251, 156, 52, 0.8);
    }
        /* Playlist-specific button styling */
.playlist-go-btn {
    width: 96px;
    background-color: #52a050;
}

    .playlist-go-btn:hover {
        background-color: #6fb25a;
        box-shadow: 0 0 10px rgba(111, 178, 90, 0.8);
    }

.trail-add-btn {
}

    .trail-add-btn:hover {
        box-shadow: 0 0 10px rgba(200, 200, 255, 0.1);
    }

.dragging {
    background-color: rgba(200, 200, 255, 0.1);
    border-color: #66f;
}
