/* Quick action buttons for navigation */
.active-quickaction {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    background: #eaf3ff;
    color: #0056b3 !important;
}

.btn.btn-default {
    margin-right: 8px;
}

@import url('https://fonts.googleapis.com/css?family=Archivo&display=swap');

html {
    -webkit-font-smoothing: auto;
    /* or antialiased / subpixel-antialiased */
    -moz-osx-font-smoothing: auto;
    /* or grayscale */
}

body {
    background: #292929;
    text-align: left;
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    letter-spacing: -0.45px;
    color: #FFFFFF;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #1098f7, #0c5dd9);
    border: none;
    box-shadow: 0 10px 20px rgba(16, 152, 247, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #28a5ff, #0c6cf0);
}

.btn-danger {
    background: linear-gradient(135deg, #ff5c6a, #d7263d);
    border: none;
    box-shadow: 0 10px 20px rgba(215, 38, 61, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #1f9e55);
    border: none;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, #f5c542, #d89a00);
    border: none;
    color: #111;
    box-shadow: 0 10px 20px rgba(213, 154, 0, 0.25);
}

.btn-info {
    background: linear-gradient(135deg, #4aa3ff, #3b6dd9);
    border: none;
    box-shadow: 0 10px 20px rgba(58, 109, 217, 0.25);
}

.btn-default {
    background: #2a2a2a;
    color: #fff;
    border: none;
}

.btn-default:hover {
    background: #343434;
}

.btn-default-outline {
    background: transparent;
    color: #fff;
    border: none;
}

.btn-default-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary-outline {
    background: transparent;
    color: #1098f7;
    border: none;
}

.btn-primary-outline:hover {
    background: rgba(16, 152, 247, 0.15);
    color: #fff;
}

.login-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle at center, rgba(0, 153, 255, 0.25), rgba(0, 0, 0, 0));
    filter: blur(2px);
    z-index: 0;
}

.login-page::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    left: -140px;
    bottom: -120px;
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.18), rgba(0, 0, 0, 0));
    filter: blur(2px);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(640px, 90vw);
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 32px 36px;
    animation: loginFloatIn 0.6s ease-out;
}

.login-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.login-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1098f7, #0c5dd9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(16, 152, 247, 0.35);
}

.login-logo-container {
    flex-shrink: 0;
}

.login-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}


.block-sidebar .sidebar-logo {
    height: auto !important;
    margin: 64px 0 0 0 !important;
}

.sidebar-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-title {
    font-size: 28px;
    margin: 0;
}

.login-subtitle {
    margin: 4px 0 0;
    color: #b9b9b9;
    font-size: 15px;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8c8c8;
}

.login-input {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    height: 48px;
    border-radius: 10px;
}

.login-input:focus {
    border-color: #1098f7;
    box-shadow: 0 0 0 3px rgba(16, 152, 247, 0.25);
    background: #101010;
    color: #fff;
}

.login-button {
    margin-top: 8px;
    width: 160px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes loginFloatIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

small {
    font-size: 18px;
}

div.block-head {
    padding: 25px 0;
    height: 10vh;
}

div.block-sidebar {
    background: #4A4A4A 0% 0% no-repeat padding-box;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    overflow-x: hidden;
}

div.block-sidebar div.sidebar-div {
    padding: 10px 0 10px 20px;
}

div.block-body {
    background: #161616;
    padding: 10px;
    overflow: hidden;
    min-height: 100vh;
}

.sidebar-footer {
    position: absolute;
    bottom: 0 !important;
    height: auto !important;
    margin-bottom: 64px;
    width: 100%;
    margin-left: 0;
}

.sidebar-footer a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-section-title {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c8c8c8;
    margin: 10px 0 8px 0;
}

div.row-flex {
    display: flex;
    flex-wrap: wrap;
}

div.modal-content {
    background: #1b1b1b;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-title {
    color: #fff;
}

.modal-body label {
    color: #c8c8c8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.modal-body .form-control,
.modal-body input,
.modal-body textarea,
.modal-body select {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
}

.modal-body .form-control:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    border-color: #1098f7;
    box-shadow: 0 0 0 3px rgba(16, 152, 247, 0.25);
}

.pull-right {
    float: right;
}

ul.list-group-flush {
    margin-top: 10px;
}

ul.list-group-flush>li.list-group-item {
    background: #4A4A4A;
    font-size: 16px;
    padding: 7px 22px 2px 10px;
}

ul.list-group>li.list-group-item>ul.list-group>li.list-group-item {
    font-size: 14px;
    margin: 0 -20px;
    padding: 5px 50px;
}

ul.list-group li.list-group-item a.btn {
    font-size: 12px;
    margin-top: -7px;
    margin-left: 4px;
    margin-right: 4px;
}

ul.list-group>li.list-group-item>ul.list-group>li.list-group-item>a.btn {
    opacity: .5;
}

ul.list-group-flush li.list-group-item.ui-state-active {
    background: #3b3d50;
}

ul.list-group-flush li.list-group-item.ui-state-hover {
    background: green;
    opacity: .7;
}

ul.list-group-flush li.list-group-item {
    user-select: none;
    cursor: auto;
}

span.dot {
    height: 15px;
    width: 15px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

#dropzone {
    height: 70vh;
}

#dropzone.dz-drag-hover {
    background: #565656;
}

div.dz-processing {
    opacity: .5;
}

div.dz-success {
    opacity: 1;
}

div#previews>div.row {
    border-bottom: 1px solid #565656;
}

div#previews p {
    margin: 0;
}

div#previews>div.row>div {
    line-height: 38px;
}


div#previews>div.row>div>div.progress {
    top: 16px;
    position: relative;
}

#tagList .list-group-item.active {
    border-color: #333;
    background-color: #222 !important;
}

#tagList .list-group-item.active>ul>.list-group-item {
    border-color: #333;
    background-color: #222 !important;
}

#tagList>li>ul.list-group {
    margin-top: 10px;
}

#tagList {
    margin-right: -15px;
}

div#previews>div.row>div {
    text-align: center;
    font-weight: normal;
}

div#previews>div.row>div:nth-child(1) {
    text-align: left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

div#previews>div.row>div:nth-child(2) {
    text-align: right;
}

span.tag {
    /*font-family: monospace;*/
    font-size: 13px;
}

.playlist-media-preview,
.playlist-media-item {
    margin-bottom: 12px;
}

.playlist-preview-image {
    max-width: 200px;
    display: block;
    margin-bottom: 10px;
}

.playlist-tags-list .tag {
    margin-right: 6px;
}

.playlist-video-placeholder {
    color: #a0a0a0;
    font-size: 14px;
}

div#previews span.dot {
    display: inline-block;
    margin-bottom: -3px;
}

div#previews.busy {
    opacity: .6;
}

div#previews {}


#track-time {
    height: 12px;
    margin-bottom: 3px;
    overflow: hidden;
}

#current-time {
    float: left;
}

#track-length {
    float: right;
}

#current-time,
#track-length {
    color: transparent;
    font-size: 11px;
    /*background-color: #ffe8ee;*/
    border-radius: 10px;
    transition: 0.3s ease all;
}

ul.list-subTags {
    transition: 0.3s ease all;
}

ul.list-subTags.d-none {
    opacity: 0;
}

#track-time.active #current-time,
#track-time.active #track-length {
    color: #343a40;
    background-color: transparent;
}

#s-area,
#seek-bar {
    position: relative;
    height: 8px;
    border-radius: 4px;
}

#s-area {
    background-color: #ffe8ee;
    cursor: pointer;
    margin-bottom: 5px;
}

#ins-time {
    position: absolute;
    top: -29px;
    color: #fff;
    font-size: 12px;
    white-space: pre;
    padding: 5px 6px;
    border-radius: 4px;
    display: none;
}

#s-hover {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    z-index: 2;
}

#ins-time,
#s-hover {
    background-color: #3b3d50;
}

#seek-bar {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: #fd6d94;
    transition: 0.2s ease width;
    z-index: 1;
}

#searchclear {
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    height: 14px;
    margin: auto;
    font-size: 14px;
    cursor: pointer;
    color: #ccc;
    opacity: 0;
    transition: opacity .5s;
}

#tagList a[data-deleteTag],
#tagList a[data-editTag] {
    visibility: hidden;
    display: none;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

#tagList.edit-mode a[data-deleteTag],
#tagList.edit-mode a[data-editTag] {
    visibility: visible;
    display: inline-block;
    opacity: 1;
}

div.block-sidebar,
div.block-body {
    transition: all .4s;
}

/*.ui-draggable-handle.ui-draggable-dragging {*/
/*    display: block;*/
/*    overflow: hidden;*/
/*    content: ' \25CF';*/
/*    color: #fff;*/
/*    font-size: 200px;*/
/*    width: 50px;*/
/*    height: 20px;*/
/*    border-radius: 200px;*/
/*}*/

input[name=searchSong] {
    background: transparent;
    border: transparent;
    transition: background-color .5s, border .5s;
}

input[name=searchSong]:focus {
    background: #4A4A4A 0% 0% no-repeat padding-box;
    border: #4A4A4A;
    border-radius: 25px;
    color: #fff;
}

input[name=searchSong]:focus+#searchclear {
    opacity: 1;
}

.modal-xl {
    max-width: 98%;
}

@media (min-width: 640px) {

    html,
    body {
        overflow: hidden;
        touch-action: manipulation;
    }

    div.block-sidebar>div.row:not(.block-head) {
        overflow-y: scroll;
        height: 80vh;
        margin-right: 0;
    }

    /*div.files-container {*/
    /*    background: #5f3f3f;*/
    /*    overflow-y: scroll;*/
    /*    height: 82vh;*/
    /*}*/

    div.files {
        overflow-y: scroll;
        overflow-x: visible;
        -webkit-overflow-scrolling: auto;
        height: 80vh;
        padding-bottom: 60px;
    }

    div.block-body div.scrollable-content {
        padding-right: 14px;
    }

    div.block-sidebar div.scrollable-content {
        overflow-x: hidden;
    }

    div.scrollable-content.scroll-video {
        max-height: calc(60vh - 48px);
        overflow-x: hidden;
        overflow-y: scroll;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }

    div.player-container {
        height: auto;
        max-height: 200px;
        padding: 3vh;
    }

    div.player-container.player-container-video {
        height: auto;
        padding: 3vh;
        overflow: hidden;
    }

    div.player-container.player-container-video .constrain {
        max-height: 200px;
        margin-top: -40px;
        height: 200px;
    }

    div.player-container.player-container-video .video-title-row {
        position: absolute;
        z-index: 2;
        background: #000000a1;
        margin-left: 10px;
        border-radius: 50%;
    }
}

div[data-songid] {
    user-select: none;
}

div[data-songid]>div:nth-child(1)>span {
    cursor: pointer;
}

div[data-songid]>div:nth-child(1)>span:hover {
    text-decoration: underline;
}

div[data-songid] .tag,
div[data-songid] i[data-deleteTag] {
    display: none;
    opacity: 0;
}

div[data-songid] .dot {
    margin-right: -12px;
}

div[data-songid] .dot:last-child {
    margin-right: 0;
}

div[data-songid]:hover {
    background: #111;
}

div[data-songid] i[data-deleteTag] {
    margin-right: 10px;
    color: #fff;
    cursor: pointer;
}

div[data-songid] i[data-deleteTag]:hover {
    color: #f1a899;
    cursor: pointer;
}

div[data-songid] .tag,
div[data-songid] i[data-deleteTag] {
    display: inline-block;
    opacity: 1;
}

div[data-songid] .dot {
    margin-right: 0;
}

div[data-songid]>div {
    font-size: 12px;
    letter-spacing: -0.3px;
}

div[data-songid]>div:nth-child(4) {
    font-size: 11px;
}

div[data-songid]>div:nth-child(5) {
    display: block;
}

div[data-songid].playing {
    background: #333;
}

div.list-stations>a.list-group-item {
    font-size: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

div.list-stations>a.list-group-item:hover {
    opacity: 0.9;
}

#track-name {
    text-align: center;
}

.scrollable-content::-webkit-scrollbar {
    width: 5px; // manage scrollbar width here
}

.scrollable-content::-webkit-scrollbar * {
    background: transparent; // manage scrollbar background color here
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important; // manage scrollbar thumb background color here
}

.ui-droppable-active {
    background: #383838 !important;
    cursor: context-menu;
}

.ui-droppable-active.ui-droppable-hover {
    background: #fd6d94 !important;
}

.ui-draggable-dragging {
    z-index: 1000 !important;
    /*width: 39px !important;*/
    /*min-width: 30px !important;*/
    /*height: 30px;*/
    /*padding-bottom: 36px !important;*/
    /*border-radius: 100%;*/
    /*overflow: hidden;*/
    /*background: #007fff;*/
    /*content: ' ';*/
    /*transition: .3s all;*/
}

#song-thumbnail {
    /* border-radius: 25%; */
    /* border: 2px solid; */
    max-height: 196px;
}

/* Modal form inputs - 12px font size */
.modal-input-compact input,
.modal-input-compact textarea {
    font-size: 12px;
    padding: 6px 8px;
}