:root{
    --pastelgreen: #77dd77;
    --pastelyellow:#fdfd96;
    --pastelblue:#84b6f4;
    --grey: #85888C;
    --DueDateHover: LightSalmon;
    --TextOnHover: black;
    --bodybackgroundsviluppo: lightyellow;
    --bodybackgroundlive:lightgreen;

    --thumbnail-width: 100px;
    --thumbnail-height: 150px;
    --border-radius: 10px;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    margin: 0;
    padding: 20px;
}

h2 {
    background-color: lightblue;
    font-size: large;
    border-radius: 10px;
    padding: 5px;

}



/**********************************************************************************
* 2024-05-06 16:28
* For message 
*
**********************************************************************************/
.hidden {
    display: none;
}

.visible {
    display: block;
    background-color: lightgreen;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 20px;
    border-radius: 5px;
}


/**********************************************************************************
* 2024-04-20 09:52
* 
*
**********************************************************************************/
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styling the form with a grid layout */
form {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1px;
    padding: 1px;
    background: #f5f5f5;
    border-radius: 8px;
    max-width: 100%;
    margin: auto;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-group label,
fieldset label {
    margin-right: 10px;  /* Space between label and input */
}

/* Styling for the search input area */
#ricerca {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    width: calc(100% - 24px); /* Account for padding and border */
    margin: auto;
    margin-top: 10px;
}

/* Flex container for buttons and options */
#ButtonsContainer {
    display: inline;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows items to wrap in smaller screens */
}

/* Styling for each button and options */
form button {
    padding: 10px 15px;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    text-align: center;
}

form button a {
    color: white; /* Ensures text inside button is white */
    text-decoration: none; /* Removes underline from links */
}

form button svg {
    vertical-align: middle; /* Aligns SVG icon with text */
}

/* Responsive adjustments */
@media (max-width: 68px) {
    #ButtonsContainer {
        flex-direction: column;
    }

    form button {
        width: 100%;
        margin-top: 10px;
    }
}


/**********************************************************************************
* 2024-04-20 09:52
* 
*
**********************************************************************************/

.dates-information{
}

#additional-content{
}


.visibility-of-content {
    display:inherit;
}

.InvisibleToPublic{
    display:inherit;
}

pre {
    /*
    display:inherit;
    display:none;
    */
    display:inherit;
  white-space: pre-wrap; /* Allows text to wrap */
  word-wrap: break-word; /* Ensures long words can break and wrap to the next line */
  overflow-wrap: break-word; /* A standard way to ensure breaking and wrapping of long words */
}

.noduedate {

}

h2 a::before {
  content: "🔗"; /* Or use a Unicode icon, SVG, or background-image */
  margin-right: 0.5em;
}

.dueDate:hover {
    /* Optional: Style for hover state */
    cursor: pointer; 
    opacity: 1.8; /* Slightly reduce opacity on hover */
    background: var(--DueDateHover);
    color: var(--TextOnHover);
}

.datetoday{
    color: red;
}
.datenear{
    color: blue;
}
.datefar{
    color: green;
}
.datepast{
    color: yellow;
    text-decoration: line-through;
}
.duedateToday{
     background-color: yellow;
}
.duedateNear{
     background-color: greenyellow;
}

.duedatePast{
     background-color: red;
}

.duedateFar{
     background-color: lightgreen;
}

.record-actions .action-btn {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.action-btn a {
    text-decoration: none;
    color: fuchsia;
}

.action-btn a:hover {
    text-decoration: none;
    color: indianred;
}

/*
.edit { background-color: transparent; }
.archive { background-color: transparent; }
.link { background-color: transparent; }
.delete { background-color: transparent; }
*/

#btndelete {
    /* background-image: url('/images/icons/delete.png'); /* Path to your image */
    cursor: pointer; /* Change cursor to pointer on hover */
    overflow: hidden; /* Prevent any overflow */
     
  background-repeat: no-repeat;
  background-position: center; /* Adjust as needed */
  /* Ensure the button size is large enough to display the image */
}

#btndelete:hover {
    /* Optional: Style for hover state */
    opacity: 0.8; /* Slightly reduce opacity on hover */
}


#btneditSPENTO {
    text-decoration: none;
    background-size: cover; /* Cover the entire button area */
    background-repeat: no-repeat;
    background-position: center; /* Adjust as needed */
    /* Ensure the button size is large enough to display the image */
    width: 50px; /* Adjust based on your image size */
    height: 20px; /* Adjust based on your image size */
    border: none; /* Remove the default border */
    cursor: pointer; /* Change cursor to pointer on hover */
    color: transparent; /* Make the button text transparent */
    overflow: hidden; /* Prevent any overflow */
    padding: 0;
}

#btneditSPENTO:hover {
    /* Optional: Style for hover state */
    opacity: 0.6; /* Slightly reduce opacity on hover */
}


#btnarchiveSPENTO {
    background-image: url('/images/icons/archive.png'); /* Path to your image */
    background-size: cover; /* Cover the entire button area */
  background-repeat: no-repeat;
  background-position: center; /* Adjust as needed */
  /* Ensure the button size is large enough to display the image */
  width: 30px; /* Adjust based on your image size */
  height: 20px; /* Adjust based on your image size */
    border: none; /* Remove the default border */
    cursor: pointer; /* Change cursor to pointer on hover */
    color: transparent; /* Make the button text transparent */
    overflow: hidden; /* Prevent any overflow */
    padding: 0;
}

#btnarchiveSPENTO:hover {
    /* Optional: Style for hover state */
    opacity: 0.8; /* Slightly reduce opacity on hover */
}

#btndone_NONUSATO {
    background-image: url('/images/icons/done.png'); /* Path to your image */
    background-size: cover; /* Cover the entire button area */
  background-repeat: no-repeat;
  background-position: center; /* Adjust as needed */
  /* Ensure the button size is large enough to display the image */
  width: 30px; /* Adjust based on your image size */
  height: 20px; /* Adjust based on your image size */
    border: none; /* Remove the default border */
    cursor: pointer; /* Change cursor to pointer on hover */
    color: transparent; /* Make the button text transparent */
    overflow: hidden; /* Prevent any overflow */
}

#btndone_NONUSATO:hover {
    /* Optional: Style for hover state */
    opacity: 0.8; /* Slightly reduce opacity on hover */
}


.record-dates {
    margin: 10px 0;
    color: #666;
}

.record-description {
    margin: 10px 0;
}

.record-tags .tag {
    display: inline-block;
    background-color: #e0e0e0;
    padding: 5px;
    margin-right: 5px;
    border-radius: 3px;
}



/* The Modal (background) */
#myModal2 {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 0px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal2 {
    display: none;
    background-color: red;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content2 {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 5px;
    border: 1px solid #888;
    width: 95%;
    height: 95%;
}

.closeModal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.closeModal:hover,
.closeModal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 100%;
}





/**********************************************************************************
* 2024-04-16 09:12
* Styles for DropDown autocomplete 
*
**********************************************************************************/
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-content {
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    display: none; /* Hidden by default */
}

.dropdown-content .item {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content .item:hover {
    background-color: #f1f1f1;
}

/* styles.css */
.dropdown-content .item.active {
    background-color: #4CAF50; /* Green background for active item */
    color: white;  /* White text for better contrast */
    font-weight: bold; /* Make the text bold */
}




/**********************************************************************************
* 2024-03-24 14:51
* Contenteditable button  
*
**********************************************************************************/

[contenteditable='true'] {
    cursor: text;
    padding: 5px;
    box-shadow: 0px 0px 2px #0003;
    transition: box-shadow 0.2s ease-in-out;
}

[contenteditable='true']:focus {
    box-shadow: 0px 0px 5px #007bff;
}

.save-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.save-btn:hover {
    background-color: #0056b3;
}





/* Popup per text */
.hover-text {
  position: relative;
  display: inline-block; /* Or block, depending on your layout */
}

.popup {
  display: none;
  position: absolute;
  left: 300px;
  top: -100px;
  bottom: 10%; /* Adjust based on where you want the popup to appear */
  background-color: #f9f9f9; /* Light grey background */
  min-width: 260px; /* Minimum width */
  max-height: 50px;
  border: 1px solid #ddd; /* Light grey border */
  padding: 12px; /* Padding around the content */
  z-index: 1; /* Ensure it sits above other content */
}

.hover-text:hover .popup {
  display: block;
}

/* Style for the clickable element */
.clickable {
  color: #007bff; /* Bootstrap's default link color */
  text-decoration: none; /* Remove underline from links */
  cursor: pointer;
}

.clickable:hover {
  text-decoration: underline; /* Add underline on hover for better UX */
}




/* drop area */
#drop-area {
  border: 2px dashed #ccc;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}
#drop-area.highlight {
  border-color: blue;
}
#image-preview {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

#image-preview img {
  margin-bottom: 10px;
}




/* Styles for image */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-container-single {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    position: relative;
}

.image-container {
    width: var(--thumbnail-width);
    height: var(--thumbnail-height);
    overflow: hidden;
    border-radius: var(--border-radius);
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the space, are centered, and cropped if necessary */
}

.label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background for the label */
    color: white;
    text-align: center;
    padding: 5px;
}





/* Responsive Styles */
@media screen and (max-width: 768px) {
    .record-container {
        width: 95%;
    }

    .record-header {
        flex-direction: column;
    }

    .record-actions .action-btn {
        margin-bottom: 5px;
    }

    H1 {
        font-size: large;
        border-radius: 10px;
        padding: 5px;
        }

}

@media screen and (max-width: 480px) {
    .record-header {
        flex-direction: column;
    }

    .record-actions .action-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}


#search-results .result-item {
    /* Styles for each result item */
}

#pagination .page-link {
    /* Styles for pagination links */
}

.current-page{
    font-size: x-large;
}



/* Overall Form Styling */
#insert_form {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: none;
    margin: 0;
    padding-left: 5px;
    margin-bottom: -5px;
    display: flex;
}

fieldset div{
    border: none;
    margin-top: -5px;
    margin-left: 5px;
    padding: 5px ;
    display: flow;
}
legend {
    font-size: 1em;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

/* Input and Textarea Styling */
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #0056b3;
    outline: none;
}

textarea {
    resize: vertical; /* Allows vertical resizing, none for no resizing */
}

/* Submit Button Styling */
input[type="submit"] {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

input[type="submit"]:hover {
    background-color: #004494;
}

/* Placeholder Text Styling */
::placeholder {
    color: #999;
}

/* Status Message Styling */
#insert_form_status_msg {
    padding: 10px;
    margin-bottom: 15px;
    display: none; /* Hide by default, show when needed */
}

/* Styles for the status message */
.status-message {
    background-color: #28a745; /* Green background */
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px; /* Rounded corners */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none; /* Hidden by default */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Subtle shadow for depth */
}


/* Autocomplete Items Styling */
.autocomplete_items {
    padding: 10px;
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 600px) {
    #insert_form {
        width: 100%;
        padding: 15px;
    }
}





#main {
    width: 300px;
    padding: 10px;
    margin: 100px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
}

#login {
    padding: 20px;
}

input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

input[type=submit]:hover {
    opacity: 0.8;
}

span {
    color: red;
}






/* The Modal (background) */
#myModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* 80% of screen width */
    height: 80%; /* 80% of screen height */
}

/* The Close Button */
.closeModal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.closeModal:hover,
.closeModal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



/* ============================== */
.SuccessMessage {
    font-size: xx-large;
    color: green;
}

.ErrorMessage{
    font-size: xx-large;
    color: red;

}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 620px;
  font-size: initial;
  background-color: black;
  color: #fff;
  text-align: left;
  padding: 5px 5px 5px 15px;
  border-radius: 6px;
  margin-top: 20px;
  margin-left: -160px;

  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}








/* Base styles for the menu */
#navigation {
  background-color: black;
}

#navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#navigation li {
  display: inline-block; /* Horizontal layout for desktop */
}

#navigation a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Vertical layout for mobile */
  #navigation li {
    display: block;
  }

  /* Show the hamburger button on mobile */
  .hamburger {
    display: block;
    background-color: black;
    padding: 10px;
    color: white;
    text-align: right;
  }

  /* Initially hide the menu on mobile */
  .publicoff .menu {
    display: none;
  }

  /* Display the menu when 'active' class is added via JavaScript */
  .publicon .menu {
    display: block;
  }
}

/* Desktop-specific styles, hiding the hamburger */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}






 select {
    display: inline;
    padding: 10px;
    float: right;
    /* margin-top: -125px;*/
    margin-top: 0px;
    z-index: +1000;
    font-size: 16px;
    border: 2px solid #3498db;
    border-radius: 5px;
    outline: none;
    background-color: #f5f5f5;
  }

  /* Style for the select options */
  option {
    font-size: 14px;
  }





  /*
  Per le thumbnails e le grandi immagini
  */
.image-containerOFF {
    position: relative;
    display: inline-block;
}

.image-containerPDF {
    position: relative;
    display: inline-block;
    padding: 10px;
}

.large-image {
    position: absolute;
    top: 0;
    left: 100%; /* Adjust based on your layout */
    border: 1px solid #ccc;
    display: none;
    z-index: 1000;
}

.thumbnail {
    cursor: pointer; /* Indicates the thumbnail is interactive */
}


.delete-icon {
    position: absolute;
    top: 0px; /* Adjust as needed */
    left: 0px; /* Adjust as needed */
    cursor: pointer;
    z-index: 1010; /* Above the large image */
    display: none; /* Hidden by default */
    /* Optional: Add styles for hover effect, background, etc. */
}

.delete-icon svg {
    fill: #ff0000; /* Red color; adjust as needed */
    width: 24px; /* Adjust based on your design */
    height: 24px; /* Adjust based on your design */
    transition: fill 0.3s; /* Smooth transition for hover effect */
}

.delete-icon:hover svg {
    fill: #cc0000; /* Darker red on hover; adjust as needed */
}

.delete-iconPDF {
    position: absolute;
    top: 35px; /* Adjust as needed */
    right: -5px; /* Adjust as needed */
    cursor: pointer;
    z-index: 1010; /* Above the large image */
    /* Optional: Add styles for hover effect, background, etc. */
}
.delete-iconPDF svg {
    fill: #ff0000; /* Red color; adjust as needed */
    width: 24px; /* Adjust based on your design */
    height: 24px; /* Adjust based on your design */
    transition: fill 0.3s; /* Smooth transition for hover effect */
}

.delete-iconPDF:hover svg {
    fill: #cc0000; /* Darker red on hover; adjust as needed */
}


.image-container:hover  .delete-icon {
    display: block; /* Show the delete icon on hover */
  }

.image-container-single:hover  .delete-icon {
    display: block; /* Show the delete icon on hover */
  }

  .image-containerPDF:hover .delete-icon {
    display: block; /* Show the delete icon on hover */
  }



#ButtonsContainer{
    background-color: transparent;
    overflow: auto;

}


.search-button {
    /* Basic styling */
    float: left;
    padding: 10px 20px;
    border: none;
    margin: 2px;
    background-color: #007BFF; /* Attractive blue shade */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    height: 45px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;

    /* Cool hover effect */
    &:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Pressed effect */
    &:active {
        transform: translateY(1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }  
}





/* Modal 2 */
