body {
    color: #202020;
    background-color: white;
}

.bg {
    background-color: white;
    height: 100vh;
    color: #202020;
}

a,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
    color: inherit;
}

.navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-nav .nav-link:hover {
    color: #ccc !important;
}

.form-padding {
    padding-bottom: 20px;
}

.sortable-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.sortable-item {
    display: inline-block;
}

.delete-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

.image-name {
    margin-top: 10px;
    text-align: center;
    word-break: break-word;
}

.login-header {
    background-color: #0B1327;
}

.logo-login {
    max-height: 70px;
    width: auto;
    height: auto;
}

.logo {
    max-height: 150px;
    min-height: 150px;
    color: #fff;
    background-color: #0B1327;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.logo img {
    max-height: 120px;
    width: auto;
    height: auto;
}

.alertrow {
    min-height: 80px;
    margin: 0px;
}

.image-container {
    position: relative;
    text-align: center;
    width: calc(25% - 25px);
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #202020;
    overflow: hidden;
    color: white;
    height: 250px;
    box-sizing: border-box;
    display: inline-block
}

.thumbnail {
    width: 60%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 15px;
    margin-top: 10px;
}

.media-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.image-name {
    text-align: center;
    word-break: break-word;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.image-status {
    text-align: center;
    word-break: break-word;
    padding: 5px;
    background-color: #0B1327;
    color: white;
    font-size: 14px;
    position: absolute;
    top: 0;
    width: 100%;
}

.smgrey {
    color: #888;
    font-size: 0.9em;
}

.sortable-item {
    position: relative;
    margin: 2px !important; /* Minska marginalen mellan elementen */
    padding: 0;
}

.remove-image {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: red;
    color: white;
    font-size: 12px;
    width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.remove-image:hover {
    background-color: darkred;
}

.remove-image:focus {
    outline: none;
}

.remove-image span {
    font-weight: bold;
}

.now_showing {
    display: block;
    height: 90px;
    max-width: 51px;
    margin: 0 !important;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.now_showing,
video.now_showing {
    height: 90px;
    max-width: 51px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 5px;
    object-fit: cover; /* Viktigt för att klippa video rätt */
    display: block;
}
.compact-datetime {
    height: 28px;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}
.btn-primary {
    background-color: #0B1327 !important;
    border-color: #0B1327 !important;
}
.btn-success {
    background-color: #0B1327 !important;
    border-color: #0B1327 !important;
}
.btn-outline-primary {    
    color: #202020;
    border-color: #0B1327 !important;
}
.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-outline-primary:hover {
    background-color: #0B1327 !important;
    color: white !important;
    border-color: #0B1327 !important;
}
.form-check-input:checked {
    background-color: #0B1327;
    border-color: #0B1327;
}
input[type="checkbox"] {
    accent-color: #0B1327;
}
.editable-screen-name,
.editable-layout-name,
.editable-layout-interval {
    cursor: pointer;
    border-bottom: 1px dotted #0d6efd; /* Bootstrap secondary */
    transition: color 0.2s;
}

.editable-screen-name:hover,
.editable-layout-name:hover,
.editable-layout-interval:hover {
    color: #808080; /* Bootstrap primary */
    text-decoration: none;
}
.filepicker-item { margin:6px; }
#file-list { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }
#file-picker-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 1001;

    /* ⭐ Lägg till detta ⭐ */
    max-height: 80vh;
    overflow-y: auto;
}