/* Body styling */
body {
    background-image: url("/gfx/bua_780x442.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    font-family: 'Roboto', sans-serif;
}
/* La kun tbody i utstyrsliste scrolles */
#utstyrsliste tbody, .utstyrstyper-table tbody, table tbody {
    display: block;
    min-height: 80vh; /* Sett ønsket høyde som passer på skjermen */
    max-height: 80vh; /* Sett ønsket høyde som passer på skjermen */
    overflow-y: scroll;
    width:100vw
}

/* H1 styling */
h1 {
    font-size: 40px;
    color: #fff;
    text-align: center;
}

/* Anchor tags inside H1 */
h1 a {
    color: #fff;
    text-decoration: none;
}

h1 a:hover {
    color: #00f;
    text-decoration: underline;
}
h2#selectedCategoryName {
    font-size: 40px;
    color: #000;
    text-align: left;
}
h2#selectedCategoryName #editCategoryBtn, h2 span  {
    font-size: 20px;
    color: #000;
    text-align: right;
}
.highlighted {
    font-weight: bold;
    color: #2a72e5; /* valgfri farge for å fremheve teksten */
}
 

/* List styling */
li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/* Reduce indentation for each level with higher specificity and !important */
#categoryTree .level-0 {
    padding-left: 5px !important;
    margin-left: 0px !important;
}

#categoryTree .level-1 {
    padding-left: 4px !important;
    margin-left: 0px !important;
}

#categoryTree .level-2 {
    padding-left: 3px !important;
    margin-left: 0px !important;
}

#categoryTree .level-3 {
    padding-left: 2px !important;
    margin-left: 0px !important;
}

#categoryTree .level-4 {
    padding-left: 1px !important;
    margin-left: 0px !important;
}

/* Adjust as needed to control indentation */

/* Container for image list */
#imageList {
    position: absolute;
    top: 200px;    /* Positioned 200px from the top */
    bottom: 100px; /* Positioned 100px from the bottom */
    right: 20px;   /* Positioned 20px from the right edge */
    width: 25%;    /* Takes up 25% of the width */
    overflow-y: scroll; /* Scrollable */
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow for effect */
}

/* Grid layout for image items */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;  /* Space between images */
}

/* Individual image item container */
.image-item {
    text-align: center;
    width: calc(50% - 20px); /* Ensures two images per row */
}

/* Style for unassigned images */
.image-item img {
    width: 100px; /* Initial size */
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s ease; /* Smooth transition on zoom */
}

/* Zoom effect on hover */
.image-item img:hover {
    transform: scale(2.5); /* Zooms the image by 2.5x */
    z-index: 10; /* Ensures image hovers above other elements */
}

/* Button styling for image assignment */
.image-item button {
    margin-top: 5px;
    display: block;
    width: 100%;
    padding: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.image-item button:hover {
    background-color: #45a049;
}

/* For category image display */
.category_image {
    max-width: 75px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Subcategory image display */
.subcategory-images {
    display: flex;
    flex-wrap: wrap;
}

.subcategory-image-item {
    margin: 10px;
    text-align: center;
}

.subcategory-image-item img {
    max-width: 50px; /* Sett en fast maksimal høyde */
    height: auto;       /* Juster bredden basert på bildeforhold */
    border: 1px solid #ddd;
    border-radius: 4px;
}

.selected-category {
    font-weight: bold;
    background-color: #e0e0e0;
}
#drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 20px;
}
#drop-area.hover {
    border-color: #333;
}

/* admin/utstyrstyper/styles/utstyrstyper.css */

.utstyrstyper-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
}

.utstyrstyper-table th, .utstyrstyper-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.utstyrstyper-table th {
    background-color: #f5f5f5;
}

.utstyrstyper-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
