/* GENERAL */

html,
body {
    height: 100%;
}

#alerts {
    /* see also main-content */
    position: absolute;
    right: 20px;
    bottom: 10px;
    left: 20px;
    z-index: 1060; /* Το Bootstrap modal έχει πολύ υψηλό z-index (1055+ για backdrop, 1050 για modal) */
}


/* SIDEBAR MENU */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 200px;
    padding-top: 20px;
    background-color: #00488b;
    transition: width 0, 3s;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    color: #fff;
}

.sidebar .description {
    font-size: 14px;
}

.sidebar .icon {
    font-size: 20px;
}

.sidebar .nav-link:hover {
    background-color: #d8a602;
}

.sidebar .sub-menu {
    background-color: #023565;
    padding-left: 3%;
}

.main-content {
    height: 100%;
    margin-left: 200px;
    padding: 20px;
    position: relative;
    /* put possition:relative for alertbox. may cause probles to other pages */
}

/* Για το animation οταν ενημερωνεται μια γραμμη */
.icon-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* highlight για κάθε td της γραμμής */
td.highlight {
  background-color: #d4edda; /* ανοιχτό πράσινο */
  transition: background-color 1s ease;
}

/* REGISTRATIONS */
.newAndRestoreBtns {
    position: relative;
    z-index: 99;
}

.options-btns {
    margin-right: 10px;
    position: absolute;
    font-size: 16px;
    right: 40px;
    z-index: 99;
    bottom: 15px;
}

.accordion-header {
    position: relative;
}

.list-group-item {
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Highlight the label when checked */
.list-group-item:has(input[type="checkbox"]:checked) {
    background-color: #cfe2ff;
    /* Bootstrap 'primary-subtle' */
    color: #084298;
    /* Bootstrap 'primary-text' */
}





/* MOBILE SCREEN */
@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }

    .sidebar .description {
        display: none;
    }

    .sidebar .nav-link {
        justify-content: center;
        padding: 10px 15px;
    }

    .main-content {
        margin-left: 60px;
    }

    .sidebar .icon {
        font-size: 24px;
    }


}