/* Problemdiv */
#problemdiv {
    display: none;
    /* display: flex; */
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #ff0000; 
    padding:5px;
}

#problemtext {
    color: #333;
}

#dismissProblemDivButton {
    background-color: #909090;
    border-radius: 50%;
    margin-right: 5%;
    cursor: pointer;
}

/* Main styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #383838;
}

/* Title */
#title {
    text-align: center;
    font-size: 37px;
}
#mobiletitle {
    display: none;
    color: white;
    font-size: 25px;
    margin-left: 20px;
}
/* Topnav */
.topnav {
    position: sticky;
    top: 0px;
    background-color: #333;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding-right: 7%;
    z-index: 2;
}

.topnav-content {
    display: flex;
    align-items: center;
}

.navbar {
    list-style-type: none;
    overflow: hidden; /* Hide the content when collapsed (mobile) */
}

.navbar li {
    display: inline;
    margin-right: 10px;
}

.navelement {
    color: white;
    text-decoration: none;
    font-weight: bolder;
    font-size: 20px;
}

.navelement:hover {
    color:#4CAF50;
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Sorting printerdata buttons */
.sortable:hover {
    cursor: pointer;
}
.sortable {
    cursor: pointer;
    background-color: #3d3d3d;
    border: 1px solid #ccc;
    padding: 2px 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Search field */
#searchInput {
    /* Sizing */
    width: 99%;
    padding: 10px 20px;
    margin: 8px auto;
    box-sizing: border-box;
    /* Background+ */
    background-color: #2c2c2c;
    border: 2px solid #383838;
    border-radius: 5px;
    /* Text */
    font-size: large;
    color: white;
    /* Other */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, font-size 0.3s ease;
}

#searchInput::placeholder {
    color: #cccccc;
}

#searchInput:focus {
    outline: none;
    padding: 22px;
    font-size: larger;
}

/* Under search */
.underSearchDiv {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
}

#updatedAutoText {
    margin-right: 10px;
    margin-left: auto;
    padding: 10px;
    /* BG */
    background-color: #383838;
    background-image: linear-gradient(135deg, #4a4a4a, #3d3d3d);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Text */
    color: white;
    font-size: 1rem;
    font-family: 'FontAwesome', Arial;
    /* Border */
    border: none;
    border-radius: 5px;
    /* Other */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Switch display mode button, switches from gridview to table view and back */
#switchDisplayBTN {
    /* Sizing */
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    width: 190px;
    /* BG */
    background-color: #383838;
    background-image: linear-gradient(135deg, #4a4a4a, #3d3d3d);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Text */
    color: white;
    font-size: 1rem;
    font-family: 'FontAwsome', Arial;
    /* Border */
    border: none;
    border-radius: 5px;
    /* Other */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#switchDisplayBTN:hover {
    background-color: #505050;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Filter */
#filterSelect {
    /* Sizing */
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    width: 190px;
    /* BG */
    background-color: #383838;
    background-image: linear-gradient(135deg, #4a4a4a, #3d3d3d);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Text */
    color: white;
    font-size: 1rem;
    font-family: 'FontAwesome', 'Arial';
    /* Border */
    border: none;
    border-radius: 5px;
    /* Other */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#filterSelect:hover {
    background-color: #363636;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Loading text */
#loading {
    color: #000000;
    display: none;
    text-align: center;
    font-size: 18px;
    padding: 10px 0;
}

/* Footerdiv */
#footerDiv {
    background-color: #232323;
    padding: 1px;
}

.footerText {
    text-align: center; 
    font-size: 15px; 
    color:white;
}

#bottomBanner {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; /* Ensure it is above other elements */
}

#updatedAutoTextBottomBar {
    display: block;
    text-align: center;
    margin: 0;
    color: white; 
}

/* Responsive styles for mobile */
@media screen and (max-width: 900px) {
    /* Remove ordinary title */
    #title {
        display: none;
    }

    /* Display mobile title */
    #mobiletitle {
        display: inline;
    }

    .topnav {
        justify-content: space-between;
        padding: 10px;
    }

    .navbar {
        display: none;
        flex-direction: column;
    }

    .navbar.active {
        display: flex;
        padding-left: 10px;
        margin:10px;
    }

    .hamburger-menu {
        display: block;
    }

    .underSearchDiv {
        display: flex;
        flex-direction: column; 
        align-items: center;
    }
    
    #switchDisplayBTN {
        width: 95%;
        font-size: large;
        height: 40px;
    }

    #filterSelect {
        width: 95%;
        font-size: large;
        height: 40px;
        text-align: center;
        margin-top: 4px;
    }
    
    #updatedAutoText {
        display: none;
    }

    #bottomBanner {
        display: block;
    }

    #updatedAutoTextBottomBar {
        display: block; 
        text-align: center;
        margin: 0;
        color: white; 
        position: static; 
    }
}

/* Make scrollbar thin on the side */
/* Chrome and safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #333;
}

::-webkit-scrollbar-thumb {
    background: #666; 
    border-radius: 10px; 
}
/* For Firefox */
* {
    scrollbar-width: thin; 
    scrollbar-color: #666 #333; 
}