@font-face {
    font-family: 'bodyFont';
    src: url('InterDisplay-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'bodyFont', sans-serif;
}

/* Form Elements */
.select-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.select-group .form-group {
    flex: 1;
    margin-right: 10px;
}

.select-group .btn {
    flex-shrink: 0;
}

.big-dropdown {
    width: 400px;
    height: auto;
}

.form-selectpurple {
    color: #5533A4;
    background-color: rgba(237, 240, 245, 0.3);
}

.input-group-text {
    background: transparent;
    border: none;
}

.input-group-text i {
    color: #ccc;
}

.search-button {
    background-color: rgba(139, 126, 167, 0.1);
    backdrop-filter: blur(3px);
}

/* Icons and Text */
.text-icon {
    display: flex;
    align-items: center;
}

.material-icons {
    font-size: 1.0rem;
    margin-right: 5px;
}

.text-purple800 {
    color: #5533A4;
}

/* Buttons */
.btn-purple {
    background-color: #5533A4;
    color: #ffffff;
}

.btn-purple:hover {
    background-color: #5533A4;
}

.btn-grey {
    background-color: #D3D6DE;
    color: black;
}

.btn-grey:hover {
    background-color: #D3D6DE;
    color: white;
}

.btn-grey:active {
    background-color: white;
    color: black;
    border-color: #D3D6DE;
    box-shadow: 0 0 0 2px #D3D6DE;
    outline: none;
}

.btn-outline-purple {
    color: #5533A4;
    border-color: #D3D6DE;
}

.btn-outline-purple:hover {
    color: #ffffff;
    background-color: #5533A4;
    border-color: #5533A4;
}

/* Login Page */
.imagelogin {
    background-image: url('../../assets/images/backgrounds/bg-login.jpg');
    background-size: cover;
    background-position: top top;
    height: 100vh;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Status Indicators */
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-high {
    background-color: #DC3545;
}

.dot-medium {
    background-color: #EE8000;
}

.dot-low {
    background-color: #28A745;
}

/* Backgrounds */
.bg-high {
    background-color: #FEE6E5;
    color: #DC3545;
}

.bg-high h2,
.bg-high h6 {
    color: #DC3545;
    font-weight: bold;
}

.bg-medium {
    background-color: #FFF6C6;
    color: #EE8000;
}

.bg-medium h2,
.bg-medium h6 {
    color: #EE8000;
    font-weight: bold;
}

.bg-low {
    background-color: #DFF9E4;
    color: #28A745;
}

.bg-low h2,
.bg-low h6 {
    color: #28A745;
    font-weight: bold;
}

/* Data-Explorer */
.filter-toggle {
    transition: all 0.3s ease;
}

.filter-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.filter-expanded {
    max-height: none;
    opacity: 1;
}

.toggle-btn {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

@media (min-width: 400px) {
    .submenu-dataexplorer {
        background-color: #FAFAFC;
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        padding: 15px;
        margin-bottom: 25px;
    }
    .content-dataexplorer {
        padding-left: 0;
    }
}

@media (min-width: 600px) {
    .submenu-dataexplorer {
        background-color: #FAFAFC;
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        padding: 15px;
        margin-bottom: 50px;
    }
    .content-dataexplorer {
        padding-left: 0;
    }
}

@media (min-width: 1280px) {
    .submenu-dataexplorer {
        background-color: #FAFAFC;
        position: relative;
        left: 0;
        top: 0;
        width: 25%;
        height: auto;
        padding: 15px;
        margin-bottom: 50px;
        float: left;
    }
    .content-dataexplorer {
        margin-left: 10%;
        width: 90%;
    }
    .submenu-dataexplorer.filter-collapsed {
        width: 0;
        padding: 0;
        margin: 0;
    }
    .submenu-dataexplorer.filter-collapsed+.row .content-dataexplorer {
        margin-left: 0;
        width: 100%;
        transition: all 0.3s ease;
    }
}

@media (min-width: 1600px) {
    .submenu-dataexplorer {
        background-color: #FAFAFC;
        position: relative;
        left: 0;
        top: 0;
        width: 20%;
        height: auto;
        padding: 15px;
        margin-bottom: 50px;
        float: left;
    }
    .content-dataexplorer {
        margin-left:10%;
        width: 90%;
    }
    .submenu-dataexplorer.filter-collapsed {
        width: 0;
        padding: 0;
        margin: 0;
    }
    .submenu-dataexplorer.filter-collapsed+.row .content-dataexplorer {
        margin-left: 0;
        width: 100%;
        transition: all 0.3s ease;
    }
}

/* Tables */
.withfilter-table tbody tr td,
.withfilter-table tbody tr th,
.withfilter-table thead tr,
.withfilter-table tfoot tr {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.devicesgroup-table tbody tr td,
.devicesgroup-table tbody tr th,
.devicesgroup-table thead tr,
.devicesgroup-table tfoot tr {
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

.devicesgroup-table tbody tr:first-child td,
.devicesgroup-table tbody tr:first-child th {
    border-top: none;
}

.devicesgroup-table tbody tr:last-child td,
.devicesgroup-table tbody tr:last-child th {
    border-bottom: none;
}


/* Pagination */
.custom-pagination {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.custom-pagination li {
    margin: 0 5px;
}

.page-link {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    color: black;
    text-align: center;
    line-height: 30px;
    text-decoration: none;
}

.page-link:hover {
    background-color: #5533A4;
    color: white;
}

/* Maps and Charts */
#map {
    z-index: 1;
    height: 40vh;
    width: 100%;
}

#modalMap {
    height: 500px;
    width: 100%;
}

#dashboardChart {
    z-index: 1;
    min-height: 30vh;
    width: 100%;
}

.multichart {
    z-index: 1;
    max-height: 200px;
    width: 100%;
}