/*
 * The primary stylesheet for Number Line Reprise
 */

:root {
    --body-font-size:             12px;
    --color-active:               #ffffbc;
    --color-active-border:        #facd5c;
    --color-donut-orange:         #d75f32;
    --color-navy-blue:            #000080;
    --color-ice-blue:             #a6e8ff;
    --color-light-ice-blue:       #c6f8ff;
    --color-hover-row:            #c6f8ff;
    --color-primary-text:         #1a2a3a;
    --color-success:              #b3e26f;
    --color-error:                #f7b6b6;
    --color-warning:              #f7b66d;
    --color-gnar:                 #9b59b6;
    --color-light-grey:           #efefef;
    --color-dark-grey:            #4b4b4b;
    --color-first:                #c9fbc6; /* green */
    --color-last:                 #a6e8ff; /* blue */
    --color-only:                 #efcfff; /* purple */
    --border-radius:              3px;
    --header-height:              35px;
    --header-font-size:           24px;
    --header-reprise-font-size:   20px;
    --info-panel-width:           400px;
    --setlist-font-size:          12px;
    --show-info-label-font-size:  10px;
    --all-show-info-label-width:  100px;
    --show-info-label-width:      70px;
    --show-info-link-font-size:   10px;
    --song-info-label-width:      100px;
    --pad-size:                   8px;
}

body {
    font-family: monospace, 'Chivo Mono', 'Courier New';
    font-size:var(--body-font-size);
}

.user-name-input {
    width: 120px;
    margin: 0px 4px;
}

.jah-hide {
    display: none;
}

.jah-ellipsify {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jah-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jah-head {
    font-family: 'Baloo 2', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-navy-blue);
    color: var(--color-donut-orange);
    height: var(--header-height);
    font-size: var(--header-font-size);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    padding: 0px var(--pad-size);
}

.jah-head .rip-rollings {
    color: white;
    font-size: 12px;
}

.jah-body {
    padding: 0px var(--pad-size) var(--pad-size) var(--pad-size);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border: 2px solid var(--color-navy-blue);
    height: calc(100vh - var(--header-height) - 28px);
    overflow: auto;
}

.jah-login {
    display: flex;
    align-items: center;
    padding: 4px 0px;
}

.jah-body .summary-data {
    padding: 4px 16px;
}

.jah-body .summary-data .count-label {
    display: inline-flex;
    width: 86px;
    justify-content: flex-end;
}

.show-list-row,
.song-history-row.data-row,
.setlist-row.data-row {
    border: 1px solid transparent;
}

.jah-songs .song-list-row.active-song,
.active-song .setlist-song,
.active-show {
    background-color: var(--color-active);
    border-radius: 4px;
}

.jah-song-hist .song-history-row.active-show:hover {
    background-color: var(--color-active);
    border: 1px solid var(--color-active-border);
}

.jah-songs,
.jah-song-hist,
.jah-shows {
    padding: 0px;
    font-size: 12px;
}

.jah-song-hist .show-header,
.jah-shows .show-header {
    font-weight: bold;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--color-donut-orange);
}

.jah-songs .song-list-row,
.jah-song-hist .song-history-row,
.jah-shows .show-list-row {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.jah-song-hist .song-history-row:hover,
.jah-songs .song-list-row:hover,
.jah-shows .show-list-row:hover {
    background-color: var(--color-hover-row);
}

.jah-songs span,
.jah-song-hist span,
.jah-shows span {
    margin: 0px 4px;
}

.show-song-count,
.song-list-row .times-played,
.song-history-num,
.show-num {
    display: inline-block;
    width: 30px;
    text-align: center;
}

.song-history-row .show-num {
    display: inline-block;
    width: 50px;
    text-align: center;
}

.show-date {
    display: inline-block;
    width: 80px;
}

.show-rating {
    display: inline-block;
    width: 50px;
}

.show-venue {
    display: inline-block;
    width: 250px;
}

.show-city {
    display: inline-block;
    width: 220px;
}

.all-show-info-panel,
.song-info-panel,
.show-info-panel {
    width: var(--info-panel-width);
    background: var(--color-light-grey);
    padding: 8px;
    border: 1px solid var(--color-dark-grey);
    border-radius: 4px;
    font-size: var(--show-info-label-font-size);
}

.all-show-info-panel div,
.show-info-panel div {
    height: 14px;
}

.song-info-panel div.bold-info,
.show-info-panel div.bold-info {
    font-weight: bold;
    margin-bottom: 2px;
}

.all-show-info-panel span,
.song-info-panel,
.show-info-panel span {
    display: inline-block;
}

.song-info-panel span.label {
    display: inline-block;
    width: var(--song-info-label-width);
}

.show-info-panel span.label {
    width: var(--show-info-label-width);
}

.all-show-info-panel span.label {
    width: var(--all-show-info-label-width);
}

.show-info-panel .nav-links {
    margin-left: 6px;
}

.show-info-panel .nav-links .nav-button {
    display: inline-flex;
    align-items: center;
    width: 32px;
}

.show-info-panel .nav-links .nav-button a.link-button {
    display: inline-flex;
    justify-content: center;
    width: 20px;
    margin: 0px 2px;
}

.show-info-panel a.link-button {
    font-size: 8px;
    display: inline-block;
    padding: 0px 3px;
    margin: 0px -1px;
    border: 1px solid var(--color-donut-orange);
    border-radius: 2px;
    background-color: white;
    color: var(--color-navy-blue);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

a.link-button:hover {
    background-color: #007BFF;
    color: white;
}

.show-info-panel a.audio-button {
    margin-right: 2px;
}

.show-info-panel a.dot-net-button {
    margin-left: 2px;
}

.info-setlist-head {
    padding: 12px 4px;
    font-size: 13px;
    font-weight: bold;
}

.jah-setlist {
    font-size: var(--setlist-font-size);
}

.jah-setlist .setlist-show {
    font-size: 16px;
    padding-bottom: 16px;
}

.jah-setlist .setlist-row {
    cursor: pointer;
    display: block;
    white-space: nowrap;
}

.jah-setlist .setlist-row span {
    display: inline-flex;
}

.jah-setlist .setlist-row.first-played .setlist-times-played,
.jah-setlist .setlist-row.first-played.active-song .setlist-times-played {
    background-color: var(--color-first);
}

.jah-setlist .setlist-row.last-played .setlist-times-played,
.jah-setlist .setlist-row.last-played.active-song .setlist-times-played {
    background-color: var(--color-last);
}

.jah-setlist .setlist-row.only-played .setlist-times-played,
.jah-setlist .setlist-row.only-played.active-song .setlist-times-played {
    background-color: var(--color-only);
}

/*
 * Add a border radius for the active song if it's colored
 */
.jah-setlist .setlist-row.first-played.active-song .setlist-times-played,
.jah-setlist .setlist-row.last-played.active-song .setlist-times-played,
.jah-setlist .setlist-row.only-played.active-song .setlist-times-played {
    border-color: transparent;
}

.jah-songs .header-row span,
.jah-song-hist .header-row span,
.jah-shows .header-row span {
    font-weight: bold;
    margin: 6px 4px;
}

.jah-setlist .header-row {
    font-weight: bold;
}

.jah-song-hist .header-row {
    margin-top: 8px;
}

.jah-setlist .setlist-times-played {
    width: 90px;
    white-space: pre;
    justify-content: center;
}

.jah-setlist .set-label .setlist-times-played {
    text-decoration: underline;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 4px;
    justify-content: center;
}

.jah-setlist .setlist-song {
    width: 300px;
}

.jah-setlist .setlist-duration {
    width: 60px;
}

.jah-setlist .setlist-gap {
    width: 60px;
    justify-content: center;
}

.jah-setlist .setlist-user-gaps {
    width: 80px;
    justify-content: center;
}

.jah-setlist .setlist-notes {
    display: inline-block;
    width: 440px;
    padding: 8px 16px;
}

.jah-setlist .setlist-notes p {
    margin: 2px;
}

.jah-setlist .setlist-notes-label {
    display: block;
    font-weight: bold;
    text-decoration: underline;
    padding: 24px 16px 8px 16px;
}

.jah-songs .song-list-row span {
    display: inline-block;
}

.jah-songs .song-name {
    width: 300px;
}

.jah-songs .times-played {
    width: 45px;
}

.jah-songs .last-time,
.jah-songs .first-time {
    width: 100px;
}

.reprise-text {
    color: var(--color-ice-blue);
    padding-left: 8px;
    font-family: Copperplate, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: var(--header-reprise-font-size);
}

.jah-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80px;
    width: 250px;
    border: 2px solid var(--color-navy-blue);
    border-radius: var(--border-radius);
    background-color: var(--color-light-ice-blue);
    z-index: 9999;
}
