/* Make the form container sticky */
/* Keep the original sticky positioning for the form container */
.holder.lightorange {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}

/* Add relative positioning to the form element instead */
.holder.lightorange form {
    position: relative;
}


/* Ensure the search button stays properly positioned within the sticky container */
.holder.lightorange button.edit {
    position: absolute;
    right: 5px;
    top: 10px; /* Fixed pixel value instead of percentage */
    margin: 0;
}

/* Adjust input padding to accommodate both buttons */
.holder.lightorange #result {
    padding-right: 100px; /* More space for both toggle and search buttons */
    padding-left: 12px; /* Space for reset button */
}



/* Resetting default margin and padding for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: "lucida grande",lucida,tahoma,helvetica,arial,sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    font-size: small;
}

/* Container styling */
.main {
    max-width: 800px;
    background-color: white;
    border-radius: 5px;
    padding: 0px 5px 0.5px 5px;
    margin: 0px auto 10px auto;
}

/* Container styling */
.container {
    max-width: 800px;
    background-color: white;
    border-radius: 5px;
    padding: 1px 5px 0.5px 5px;
    margin: 0px auto 10px auto;
}

/* Main content styling */
.main-content {
    margin: 0px;
    padding: 0px;
}

/* Change the color of <strong> text */
        strong {
            /* color: color-mix(in srgb, currentColor, black 20%); */
            font-weight: bold; /* Keeps it bold (default) */
            /* You can add more styles */
        }

/* Holder styling */
.holder {
    border-radius: 5px;
    padding: 10px;
    margin: 5px auto 0px auto;
}

/* Light grey box styling */
.lightgrey {
    /* background-color: #f7f7f7; */
    margin: 10px auto 0px auto;
    height: fit-content;
    /* clear: both; */
    /* display: block; */
    /* height: 0; */
    /* clear: both; */
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
}

/* Light grey box styling */
.lightgrey:hover {
    background-color: #f0f2f8;
    margin: 10px auto 0px auto;
    height: fit-content;
    /* clear: both; */
    /* display: block; */
    /* height: 0; */
    /* clear: both; */
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
}

/* Light grey box hover effect */
.lightgrey:hover {
    /* Add hover effects here if needed */
}

/* Light blue box styling */
.lightblue {
    margin: 0px -10px 5px -10px;
}

/* Dark blue box styling */
.darkblue {
    margin: 5px -5px 5px -5px;
}

img {
    /* max-width: 100%; */
    /* max-height: 100%; */
}

.title {
    font-size: 18px;
    /* float: left; */
    /* font-weight: 700; */
    color: #237df5;
    /* position: relative; */
    margin: -2px 0px 8px 0px;
}

.url {
    /* float: left; */
    position: relative;
    margin: 0px 0px 5px 0px;
    font-size:14px;
}



.description {
    /* float: left; */
    font-weight: 400;
    font-size: 14px;
    position: relative;
    margin: 0px 0px 2px 0px;
}

.admin_details {
    float: left;
    font-size: small;
    position: relative;
    margin: 10px 0px 5px 0px;
    color:grey;
    clear: both;
}

.left_for_img {
    float: left;
    position: relative;
    margin: 2px 5px 0px 0px;
}

.left_for_img img{
    float: left;
    border-radius: 5px;
    width: 13px;
    height: 13px;
    object-fit: cover;
    display: block;
}

.left_for_img_inside_img {
    float: left;
    background-color: #f7f7f757;
    position: absolute;
    margin: 5px 5px 0px 5px;
    border-radius: 3px;
}

.left_for_img_inside_img img {
    float: left;
    border-radius: 5px;
    width: 23px;
    height: 23px;
    object-fit: cover;
    display: block;
}

.image {
    float: left;
    position: relative;
    margin: 0px 10px 0px 0px;
    border-radius: 5px;
    padding: 0px 0px 0px 0px;
}

/* Tablets and desktops: fixed size */
@media screen and (max-width: 626px) {
    .image {
        width: 85px;
        aspect-ratio: 1 / 1;
    }
}

.image img {
    float: left;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    padding: 0;
    margin: 0;
    background-color: #dfe0e2;

    /* Set default (mobile-first) values */
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    
    /* Add transition for smooth effect */
    transition: transform 0.3s ease;
}

.holder .image img {
    /* Add transition for smooth effect */
    transition: transform 0.3s ease;
}

/* Zoom effect on .holder hover (not just .image) */
.holder:hover .image img {
    transform: scale(1.05); /* Adjust scale as needed */
}

.holder .image {
    overflow: hidden; /* Crucial: Crop the zoomed-in image */
    border-radius: 5px; /* Match your img’s rounded corners */
    display: inline-block; /* Or block/flex, depending on layout */
}

.holder .image img {
    object-fit: cover;
    transition: transform 0.5s ease; /* Slower for smoother zoom */
    border: 2px solid #ececec;
}

.holder:hover .image img {
    transform: scale(1.2); /* Zoom in 20% (but clipped by parent) */
}


/* Tablets and desktops: fixed size */
@media screen and (min-width: 626px) {
    .image img {
        aspect-ratio: 2 / 1;
        width: 170px;
        height: 85px;
        aspect-ratio: auto; /* Cancel mobile aspect-ratio for fixed height */
    }
}


/* Right-aligned elements */
.right {
    float: right;
    margin: 2px 3px 0px 10px;
}

/* Right-aligned elements in menu */
.right_in_menu_top {
    float: right;
    margin: 18px 0px 0px 5px;
}

/* Right-aligned elements in menu */
.right_in_menu {
    float: right;
    margin: 12px 0px 0px 5px;
}

/* Right-aligned elements in menu */
.right_in_menu_2 {
    float: right;
    margin: 12px 0px 0px 5px;
}

.right_in_menu_2 button{
    float: right;
    margin: -17px 5px 0px 0px;
    background-color:white;
    color:black;
}

/* Right-aligned elements for menu */
.right_for_menu {
    float: right;
    position: relative;
    margin: 15px 0px 0px 10px;
}

/* Right-aligned elements in menu */
.favicon_form, .favicon_form:hover {
    float: right;
    padding: 1px 5px 3px 5px;
    margin: -5px 0px 0px 5px;
    background-color:orange;
    color:black;
}

.scanner, .scanner:hover {
    float: right;
    padding: 1px 5px 3px 5px;
    margin: -5px 0px 0px 5px;
    background-color: #259e4e61;
    color:black;
}

/* Form styling */

/* Make the toggle button fixed so it stays above the form */
/* Position the toggle button relative to the form container */
.toggle-advanced {
    background-color: #ffffff;
    text-decoration: none;
    color: #0066cc;
    font-size: 0.9em;
    cursor: pointer;
    
    /* Position absolutely within the relative form container */
    position: absolute;
    right: 45px; /* Position to the left of the search button */
    top: 14px; /* Align vertically with the input field */
    margin: 0;
    padding: 2px 5px;
    z-index: 10001;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
}

.toggle-advanced:hover {
    background-color: #ffffff;
    text-decoration: none;
    color: #000;
    font-size: 0.9em;
    cursor: pointer;
    
    /* Position absolutely within the relative form container */
    position: absolute;
    right: 45px; /* Position to the left of the search button */
    top: 14px; /* Align vertically with the input field */
    margin: 0;
    padding: 2px 5px;
    z-index: 10001;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
}

    
    /* Hide all advanced options by default */
    .advanced-option {
        display: none !important;
    }
    
    /* Show advanced options when parent form has advanced-visible class */
    form.advanced-visible .advanced-option {
        display: block !important;
    }
    
    /* Special case for select and input elements to display inline */
    form.advanced-visible select.advanced-option,
    form.advanced-visible input.advanced-option {
        display: inline-block !important;
        margin: 0px 0px 10px 0px;
    }
    
    /* Style for line breaks - keep their natural behavior */
    br.advanced-option {
        display: inline;
        content: " ";
        white-space: pre;
    }

/* Reset button positioning */
.reset, .reset:visited {
    background-color: transparent;
    color: #565656;
    padding: 1px 5px 2px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: absolute;
    /* float: right; */
    font-size: 16px;
    right: 66px; /* Adjust position */
    top: 12px; /* Match the toggle and search buttons */
    z-index: 10000;
}

.reset:hover, .reset:hover:visited {
    background-color: transparent;
    color: #c00000;
    padding: 1px 5px 2px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: absolute;
    font-size: 16px;
    top: 12px;
    z-index: 10000;
}

form {
    margin-bottom: -10px;
}

/* Label styling */
label {
    display: block;
    margin-bottom: 0px;
    border-radius: 4px;
    padding: 3px 3px 4px 3px;
}

/* Textarea styling */
textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 14px;
    min-height: 140px;
}

/* Input styling for text, select, and password */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 12px 12px 27px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 18px;
    color: grey;
    border: 2px solid #d0d0d0;
    background-color: #f0f2f8;
}

/* Input styling for text, select, and password */

input[type="date"], input.pub, 
select {
    width: 24%;
    padding: 4px;
    border-radius: 4px;
    margin: 0px 0px 10px 0px;
    box-sizing: border-box;
    font-size: 12px;
}

/* Checkbox styling */
input[type="checkbox"] {
    padding: 10px;
    margin: -17px 5px 0px 0px;
    border-radius: 5px;
    font-size: 14px;
}

/* Submit button styling */
input[type="submit"], a.submit, a.submit:hover{
    background-color: #35ad3ad6;
    color: white;
    font-weight:400;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: small;
}

a.green {
    color:green;
    background-color: transparent;
    position: relative;
    padding: 0px;
}

a.green:hover {
    color:#d20f00;
    background-color: transparent;
    position: relative;
    padding: 0px;
}


.green {color:green;margin: 5px 0px 10px 0px;position: relative;}

/* Heading 2 styling */
h2 {
    margin-bottom: 5px;
    /* font-size: small; */
}

/* Paragraph styling */
p {
    margin: 0px 0px 14px 0px;
}

/* Button styling */
button {
    background-color: #ca0e00;
    color: white;
    padding: 1px 5px 2px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    /* font-size: 14px; */
    margin: -17px 0px 0px 0px;
}

/* Button styling */
button.empty {
    background-color: #000000;
    color: white;
    padding: 1px 5px 2px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    /* font-size: 14px; */
    margin: -17px 0px 0px 0px;
}

/* Button styling */
button.edit {
    background-color: #ffffff00;
    color: #6e6e6e;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    font-size: 18px;
    margin: -49px 3px 0px 0px;
    position: relative;
}

/* Button styling */
button.edit:hover {
    background-color: #ffffff00;
    color: #000000;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    font-size: 18px;
    margin: -49.5px 3px 0px 0px;
    position: relative;
}


/* Link styling for info */
.errorshow {
    color: black;
    background-color: #ffdd0069;
    text-decoration: none;
    margin: 0px 0px 0px 5px;
    padding: 5px 10px;
    border-radius:4px;
}

/* Link styling for backup */
a.backup {
    background-color: #007cff;
    color: white;
    padding: 1px 5px 1px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    font-size: 14px;
    margin: 0px 0px 0px 5px;
}

a.backup:hover {
    background-color: #007cff;
    color: white;
    padding: 1px 5px 1px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    font-size: 14px;
    margin: 0px 0px 0px 5px;
}

/* Link styling for edit */
a.add-entry, a.add-entry:hover {
    background-color: #55ba5a;
    color: white;
    padding: 1px 5px 3px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    /* font-size: 14px; */
    margin: -5px 0px 0px 5px;
}

/* Link styling for edit */
a.edit, a.edit:hover {
    background-color: #007cffa6;
    color: white;
    padding: 1px 5px 3px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    /* font-size: 14px; */
    margin: -5px 0px 0px 5px;
}

/* Link styling for delete */
a.delete, a.delete:hover {
    background-color: #d20f00;
    color: white;
    padding: 1px 5px 3px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    /* font-size: 14px; */
    margin: -5px 0px 0px 5px;
}

/* Link styling for delete */
a.delete-cache, a.delete-cache:hover {
    background-color: #d20f00;
    color: white;
    padding: 4px 4px 4px 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* font-size: 14px; */
    margin: -5px 0px 0px 5px;
}

/* Link styling for edit */
a.detail {
    background-color: #d3d3d3cf;
    color: black;
    padding: 1px 5px 3px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    /* font-size: 14px; */
    margin: -5px 0px 0px 5px;
}

a.detail:hover {
    background-color: #ffffff;
    color: black;
    padding: 1px 5px 3px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin: -5px 0px 0px 5px;
}

/* Link styling for details */
a.details {
    color: #0060c6;
    background-color: transparent;
    text-decoration: none;
    margin: 0px 0px 0px 0px;
    padding: 0px;
}

/* Link styling for info */
a.info {
    color: black;
    background-color: #9ee2ff69;
    text-decoration: none;
    margin: 0px 0px 0px 0px;
}

/* Link hover effect for details */
a.details:hover {
    color: #b81003;
    background-color: transparent;
    text-decoration: none;
    margin: 0px 0px 0px 0px;
    padding: 0px;
}

/* Link hover effect for details */
a.details:visited {
    color: #a600d2;
    background-color: transparent;
    text-decoration: none;
    margin: 0px 0px 0px 0px;
    padding: 0px;
}

a.details:visited:hover {
    color: #b81003;
    background-color: transparent;
    text-decoration: none;
    margin: 0px 0px 0px 0px;
    padding: 0px;
}

/* Pagination links and sorting options styling */
a {
    background-color: #e5e5e5c2;
    color: black;
    padding: 5px 10px;
    margin: 0px 5px 0px 0px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

/* Hover effect for links */
a:hover {
    color: #cc291d;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* Logo styling */
.logo_m img{
    padding: 0;
    margin: 0px 0px 0px -3px;
    height: 78px;
}

/* Logo styling */
.logo {
    list-style-type: none;
    padding: 0;
    margin: -5px 0px 20px 2px;
}

/* Menu styling */
ul.menu {
    list-style-type: none;
    padding: 0;
    margin: -5px -5px 0 -5px;
    display: flex;
    /* position: absolute; */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #bfbfbf #ffffff;
    scrollbar-width: thin;
}

/* Menu item styling */
li.menu-item {
    margin-right: 5px;
}

/* Hover effect for menu item */
li.menu-item:hover {
    margin-right: 5px;
}

/* Menu start styling */
.menu-start {
    text-decoration: none;
    color: #000;
    background-color: #ffe5e999;
    font-weight: bold;
    display: block;
    padding: 5px;
    border-radius: 5px;
    height: 27px;
    cursor: none;
    white-space: nowrap;
}

/* Menu link styling */
.menu-link {
    text-decoration: none;
    color: #000;
    background-color: #e5e5e599;
    /* font-weight: bold; */
    display: block;
    padding: 5px;
    border-radius: 5px;
    height: 27px;
    cursor: grab;
    white-space: nowrap;
}

/* Menu link styling */
a.menu-link {
    text-decoration: none;
    color: #000;
    /* font-weight: bold; */
    display: block;
    padding: 5px;
    border-radius: 5px;
    height: 27px;
}

/* Hover effect for menu link */
a.menu-link:hover {
    text-decoration: none;
    color: #1b75fd;
    font-weight: 400;
    display: block;
    padding: 5px;
    border-radius: 5px;
}

/* Subcategories styling */
ul.subcategories {
    font-size:small;
    list-style-type: none;
    z-index: 1000;
    padding: 0;
    margin: 0;
    display: none;
    background-color: #e5e5e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 250px;
    scrollbar-color: #bfbfbf #ffffff;
    scrollbar-width: thin;
}

ul.menu, ul.subcategories ::-webkit-scrollbar-thumb { 
    border: 4px solid transparent;
    border-radius: 8px;
    background-clip: padding-box; 
}

/* Display subcategories on hover */
li.menu-item:hover ul.subcategories {
    display: block;
    position: absolute;
}

.active {
    background-color: #a7c7f8; /* Change this to your desired background color */
    border-radius: 5px;
    font_weight:700;
}

/* Subcategory styling */
li.subcategory {
    margin: 0;
    margin: 5px;
    z-index: auto;
}

/* Subcategory link styling */
a.subcategory-link {
    display: block;
    background-color: #ffffff;
    padding: 5px;
    margin: 5px 0px 0px 0px;
    color: #333;
    width: 180px;
    text-decoration: none;
    /* z-index: 1000; */
}

/* Hover effect for subcategory link */
a.subcategory-link:hover {
    display: block;
    background-color: #ffffff;
    padding: 5px;
    margin: 5px 0px 0px 0px;
    color: #0127d6;
    width: 180px;
    text-decoration: none;
}

/* Subcategory link styling */
a.subcategory-second {
    float:right;
    background-color: #d1d8ff;
    padding: 2px 3px 1.6px 3px;
    border-radius:3px;
    margin: -23.2px 26px 0px 0px;
    color: #333;
    text-decoration: none;
    /* z-index: 1000; */
}

/* Subcategory link styling */
a.subcategory-add {
    float:right;
    background-color: #d1d8ff;
    padding: 1px 5px 2px 5px;
    border-radius:3px;
    margin: -23px 3px 0px 0px;
    color: #333;
    text-decoration: none;
    font-weight:700;
    /* z-index: 1000; */
}

/* FETCH IMAGES CONTAINERS */
#imagesDiv {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

.imgadm {
        border-radius: 8px;
        margin:0px 10px 0px 0px;
        max-width:230px;
        max-height:230px;
        width: auto;
        height: auto;
        
    }
    
.centered-grey-text {
    margin-top: 50px;
    color: grey;
    text-align: center;
}

.small-logo, .small-logo:hover, .small-logo:visited, .small-logo:visited hover {
    text-decoration: none;
    padding: 0;
    margin: 0px 0px 0px 0px;
    background-color: transparent;
}