/* Song Parts Selection Component Styles */

/* Container for parts selection sections */
.song-parts-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
}

.song-parts-container:last-child {
    margin-bottom: 0;
}

/* Label badges attached to left border */
.parts-label {
    display: inline-block;
    background-color: #444;
    color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 2px 0 0 2px;
    font-size: 9px;
    font-weight: bold;
    margin-bottom: 4px;
    border: 1px solid #555;
    border-left: none;
}

/* Content containers for parts buttons and selected parts */
.parts-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 2px;
    padding-left: 8px;
    width: 100%;
}

.selected-parts-content {
    min-height: 20px;
}

/* Available parts buttons */
.part-button {
    font-size: 8px;
    padding: 1px 4px;
    margin: 0;
    line-height: 1.2;
    background-color: transparent;
    border-color: #6c757d;
    color: #f8f9fa;
}

/* Selected part badges */
.selected-part-badge {
    display: inline-flex;
    align-items: center;
    position: relative;
    background-color: #fff;
    color: #1a1a1a;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 8px;
    margin: 1px;
    cursor: pointer;
    line-height: 1.2;
    border: 1px solid #6c757d;
}

/* Empty state message */
.no-selection-message {
    color: #666;
    font-style: italic;
    font-size: 8px;
}

/* Count span in song button */
.song-parts-count {
    font-size: 8px;
    color: #aaa;
    margin-left: 8px;
    margin-right: 8px;
}

/* Parts selection section container */
.parts-selection-section {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px;
    border-radius: 3px;
    font-size: 11px;
    max-width: 320px;
}

/* Parts selection header button */
.parts-selection-header {
    color: #f8f9fa;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    display: inline-block;
    padding: 3px 8px;
    background-color: #333;
    border-radius: 3px;
    border: 1px solid #555;
    min-width: 160px;
}

/* Parts selection content container */
.parts-selection-content {
    color: #f8f9fa;
}

/* Song row container */
.song-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 6px;
}

/* Song number badge */
.song-number-badge {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 7px;
    font-weight: bold;
    min-width: 14px;
    text-align: center;
}

/* Song button (collapsible) */
.song-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    padding: 3px 8px;
    background-color: #333;
    color: #f8f9fa;
    border: 1px solid #555;
    border-radius: 3px;
    cursor: pointer;
    text-align: left;
}

.song-button span:first-child {
    flex: 1;
}

/* Song parts container (collapsible) */
.song-parts-div {
    margin-bottom: 8px;
    margin-left: 20px;
    padding: 0;
    background-color: #222;
    border-radius: 2px;
    border: 1px solid #444;
}

/* Song details container */
.song-details-container {
    margin-bottom: 8px;
}

/* Detail row (Worship Leader/Comment) */
.detail-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.detail-row.worship-leader-row {
    margin-bottom: 4px;
}

/* Detail label (overrides parts-label for inline layout) */
.detail-row .parts-label {
    flex: 0 0 auto;
    min-width: 80px;
    margin-bottom: 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

/* Detail input fields */
.detail-input {
    flex: 1;
    min-width: 0;
    padding: 2px 6px;
    font-size: 9px;
    line-height: 1.2;
    box-sizing: border-box;
    background-color: #333 !important;
    color: #f8f9fa !important;
    border: 1px solid #555 !important;
    border-radius: 2px;
    height: auto;
}

.detail-input::placeholder {
    color: #999 !important;
}

.detail-input:focus {
    background-color: #333 !important;
    color: #f8f9fa !important;
    border-color: #555 !important;
    outline: none;
}

/* Song comment styling (subtle) */
.song-comment {
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 4px 6px;
    font-size: 10px;
    color: #888;
    font-style: italic;
}

.song-comment::before {
    content: '💬';
    margin-right: 6px;
    opacity: 0.6;
    font-style: normal;
}
