body {
    background-color: #333;
    color: white;
}

.container, .dashboard-container {
    margin: 30px auto;
    padding: 20px;
    background-color: #444;
    border-radius: 10px;
}

.form-control, .form-select {
    background-color: #555;
    color: white;
    
}

.form-control:focus, .form-select:focus {
    background-color: #666;
    color: white;
}

.btn-primary {
    background-color: #007bff;
    
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    
}

.btn-info:hover {
    background-color: #138496;
}

.table {
    background-color: #555;
    color: white;
    text-align: center;
    vertical-align: middle;
}

.table th, .table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-group-item {
    background-color: #222;
    color: white;
    border: 1px solid #444;
}

.thumbnail {
    max-width: 50px;
    max-height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: contain;
    position: relative;
    display: inline-block;
}

.thumbnail:hover {
    transform: scale(10);
    z-index: 9999;
    position: relative;
    overflow: visible;
}

.modal-content {
    background-color: #222;
    color: white;
}

.modal-photo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.btn-close-red {
    filter: invert(28%) sepia(91%) saturate(7493%) hue-rotate(350deg) brightness(90%) contrast(120%);
}

.btn-close-red:hover {
    filter: invert(17%) sepia(96%) saturate(5731%) hue-rotate(350deg) brightness(80%) contrast(150%);
}

.editable-box {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.editable-box:focus {
    outline: none;
    border: 2px solid cyan;
}

.editable-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.editable-box .remove-photo-btn {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px;
}

.editable-box img + .remove-photo-btn {
    display: inline-block;
}

.editable-box.focused {
    border: 2px solid cyan;
}

.modal-fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.table-striped tbody tr:nth-of-type(odd):not(.row-open):not(.row-done):not(.row-blank):not(.row-new_comment) {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-striped tbody tr:nth-of-type(even):not(.row-open):not(.row-done):not(.row-blank):not(.row-new_comment) {
    background-color: rgba(255, 255, 255, 0.1);
}

.row-open:nth-of-type(odd) {
    background-color: rgb(77, 12, 5);
}

.row-open:nth-of-type(even) {
    background-color: rgb(97, 15, 8);
}

.row-done:nth-of-type(odd) {
    background-color: rgb(0, 87, 0);
}

.row-done:nth-of-type(even) {
    background-color: rgb(0, 107, 0);
}

.row-new_comment:nth-of-type(odd) {
    background-color: rgb(153, 84, 0);
}

.row-new_comment:nth-of-type(even) {
    background-color: rgb(133, 74, 0);
}

.row-blank:nth-of-type(odd) {
    background-color: #212529;
}

.row-blank:nth-of-type(even) {
    background-color: #2c3034;
}

#tasksTableBody, #taskscommentsTableBody {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    background-color: transparent;
}

.table-tasks th:first-child,
.table-tasks td:first-child {
    width: 50px;
    /* ID */
}

.table-tasks th:nth-child(2),
.table-tasks td:nth-child(2) {
    width: 75px;
    /* Projekt */
}

.table-tasks th:nth-child(3),
.table-tasks td:nth-child(3) {
    width: 75px;
    /* Stanica */
}

.table-tasks th:nth-child(4),
.table-tasks td:nth-child(4) {
    width: 150px;
    /* Názov prípravku */
}

.table-tasks th:nth-child(5),
.table-tasks td:nth-child(5) {
    width: 150px;
    /* Číslo zostavy */
}

.table-tasks th:nth-child(6),
.table-tasks td:nth-child(6) {
    /*width: 100px;*/
    /* Poznámka */
    text-align: left;
}

.table-tasks th:nth-child(7),
.table-tasks td:nth-child(7) {
    /*width: 100px;*/
    color: inherit;
    /* Foto */
}

.table-tasks th:nth-child(8),
.table-tasks td:nth-child(8) {
    width: 120px;
    /* Dátum */
}

.table-tasks th:nth-child(9),
.table-tasks td:nth-child(9) {
    width: 180px;
    /* Vytvoril */
}

.table-tasks th:nth-child(10),
.table-tasks td:nth-child(10) {
    width: 30px;
    /* Komentar */
}

.table-tasks th:nth-child(11),
.table-tasks td:nth-child(11) {
    width: 180px;
    /* Zodpovedny */
}

.table-tasks th:nth-child(12),
.table-tasks td:nth-child(12) {
    width: 65px;
    /* Stav */
}

.table-tasks th:nth-child(13),
.table-tasks td:nth-child(13) {
    width: 100px;
    /* Detail */
}

.table-comments th:first-child,
.table-comments td:first-child {
    width: 5%;
    /* Precitane */
}

.table-comments th:nth-child(2),
.table-comments td:nth-child(2) {
    width: 5%;
    /* ID */
}

.table-comments th:nth-child(3),
.table-comments td:nth-child(3) {
    /*width: 65%;*/
    /* Popis */
    text-align: left;
}

.table-comments th:nth-child(4),
.table-comments td:nth-child(4) {
    width: 5%;
    /* Fotka */
}

.table-comments th:nth-child(5),
.table-comments td:nth-child(5) {
    width: 15%;
    /*Vytvoril */
}

.table-comments th:nth-child(6),
.table-comments td:nth-child(6) {
    width: 10%;
    /* Vytvorene */
}

.table-tasks-comments th:first-child,
.table-tasks-comments td:first-child {
    width: 50px;
    /* ID */
}

.table-tasks-comments th:nth-child(2),
.table-tasks-comments td:nth-child(2) {
    width: 200px;
    /* Názov prípravku */
}

.table-tasks-comments th:nth-child(3),
.table-tasks-comments td:nth-child(3) {
    width: 150px;
    /* Číslo zostavy */
}

.table-tasks-comments th:nth-child(4),
.table-tasks-comments td:nth-child(4) {
    /*width: 100px;*/
    /* Poznámka */
    text-align: left;
}

.table-tasks-comments th:nth-child(5),
.table-tasks-comments td:nth-child(5) {
    width: 100px;
    /* Foto */
}

.table-tasks-comments th:nth-child(6),
.table-tasks-comments td:nth-child(6) {
    width: 120px;
    /* Dátum */
}

.table-tasks-comments th:nth-child(7),
.table-tasks-comments td:nth-child(7) {
    width: 180px;
    /* Vytvoril */
}

.table-tasks-comments th:nth-child(8),
.table-tasks-comments td:nth-child(8) {
    width: 50px;
    /* Komentáre */
}

.table-tasks-comments th:nth-child(9),
.table-tasks-comments td:nth-child(9) {
    width: 180px;
    /* Zodpovedný */
}

.table-tasks-comments th:nth-child(10),
.table-tasks-comments td:nth-child(10) {
    width: 80px;
    /* Stav */
}

.table-tasks-comments th:nth-child(11),
.table-tasks-comments td:nth-child(11) {
    width: 100px;
    /* Detail */
}


.table-comments-inTasksComments th:first-child,
.table-comments-inTasksComments td:first-child {
    width: 5%;
    /* Precitane */
}

.table-comments-inTasksComments th:nth-child(2),
.table-comments-inTasksComments td:nth-child(2) {
    width: 5%;
    /* ID */
}

.table-comments-inTasksComments th:nth-child(3),
.table-comments-inTasksComments td:nth-child(3) {
    width: 65%;
    /* Popis */
    text-align: left;
}

.table-comments-inTasksComments th:nth-child(4),
.table-comments-inTasksComments td:nth-child(4) {
    width: 5%;
    /* Fotka */
    text-align: center;
}

.table-comments-inTasksComments th:nth-child(5),
.table-comments-inTasksComments td:nth-child(5) {
    width: 15%;
    /* Vytvoril */
}

.table-comments-inTasksComments th:nth-child(6),
.table-comments-inTasksComments td:nth-child(6) {
    width: 10%;
    /* Vytvorene */
}

.modal-dialog_table-tasks-comments {
    max-width: 90vw;
    max-height: 80vh;
}

.modal-content_table-tasks-comments {
    height: 90vh;
    overflow: hidden;
}

.modal-body_table-tasks-comments {
    height: calc(100% - 56px - 56px);
    overflow-y: auto;
}

.dev-mode-banner {
    background-color: red;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    position: sticky;
    width: 10%;
    z-index: 1031;
    left: 45%;
}

.navbar-logo {
    margin-right: 1rem !important;
}

.navbar-brand-container {
    max-width: 65%; /* Adjust this value as needed */
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.navbar-text {
    display: block ruby;
    white-space: normal;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 1rem;
    color: white !important;
}

.navbar-buttons {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.navbar-buttons .btn {
    height: 40px; /* Adjust this value to match the height of your navbar */
    line-height: 40px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bell-icon-container {
    position: relative;
    display: inline-block;
}

.bell-icon-container .badge {
    position: absolute;
    top: -8px;
    right: 2px;
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
    border-radius: 3px;
}

.fas, .fa-bell, .fa-lg { 
    position: relative;
    cursor: pointer;
}

.navbar {
    height: 4rem;
    position: sticky;
    min-width: 80rem
}

.table-tasks thead {
    position: sticky;
    top: 4rem;
    --bs-table-bg: #1f1f1f;
}

.dropdown-item {
    color: white;
    background-color: #555;
}

.dropdown-menu {
    background-color: #555;
}

.form-control::placeholder {
    color: silver;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #444;
    border-radius: 10px;
}