main > .container, main > .container-fluid
{
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}

/* CUSTOM STYLE */
html, body {
    height: 100%;  /* Fai in modo che l'html e il body prendano tutta l'altezza */
}

body {
    display: flex;
    flex-direction: column;  /* Organizza gli elementi in una colonna */
}

main {
    flex-grow: 1;  /* Fai in modo che il main prenda tutto lo spazio disponibile */
}

.footer {
    margin-top: auto;  /* Spinge il footer verso il basso */
}

/* Navbar adattata al design */
.navbar-custom {
    background: #080D14;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-custom .nav-link {
    color: #ffffff;
    transition: color 0.3s;
}

.navbar-custom .nav-link:hover {
    color: #333;
}

.navbar-custom .btn-link {
    color: #ffffff;
    transition: color 0.3s;
}

.navbar-custom .btn-link:hover {
    color: #333;
}

.navbar-custom .navbar-toggler {
    border: none;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Stile del footer */
.footer-custom {
    /*background: linear-gradient(135deg, #74ebd5, #acb6e5);*/
    /*color: #ffffff;*/
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-custom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-custom a:hover {
    color: #333333;
}

/* Stile del form */
.site-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #FFFFFF;
    /*font-family: 'Arial', sans-serif;*/
}

.form-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.form-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: #74ebd5;
    box-shadow: 0 0 5px rgba(116, 235, 213, 0.5);
    outline: none;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 10px;
    background: #C55A31;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #a94d2a;
}

.btn-submit:active {
    background: #5ac0b5;
    transform: scale(0.98);
}

.btn-back {
    display: block;
    width: 100%;
    padding: 10px;
    background: #080D14;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.btn-back:hover {
    background: #62d8c8;
    color: #fff;
    text-decoration: none;
}

.btn-back:active {
    background: #5ac0b5;
    transform: scale(0.98);
}

/* IL MIO ACCOUNT STYLE */
#side-menu {
    background-color: #f8f9fa;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    margin-top: -13px;
}

#side-menu .menu {
    padding: 20px;
}

#side-menu h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

#side-menu .nav {
    list-style: none;
    padding: 0;
}

#side-menu .nav-item {
    margin-bottom: 10px;
}

#side-menu .nav-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

#side-menu .nav-link:hover {
    background-color: #007bff;
    color: #fff;
}

#main-content {
    margin-left: 20%;
    padding: 20px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    #side-menu {
        height: auto;
        position: relative;
        box-shadow: none;
    }

    #main-content {
        margin-left: 0;
    }
}

#side-menu .nav-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

#side-menu .nav-link:hover {
    background: #080D14;
    color: #fff;
}

#side-menu .nav-link.active {
    background: #080D14;
    color: #fff;
    font-weight: bold;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* TICKET ATTACHMENTS */
.attachments-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent wrapping to a new line */
    padding: 0px;
    /*border: 1px solid #e0e0e0;*/
    border-radius: 8px;
}

.attachment-cards {
    display: flex;
    gap: 16px;
}

.attachment-card {
    display: inline-block;
    min-width: 150px; /* Ensure a minimum width for the cards */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    white-space: normal; /* Allow text to wrap within the card */
}

.attachment-info {
    font-weight: bold;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-meta {
    font-size: 12px;
    color: #666;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Scegli File Btn */
.custom-file-upload {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background-color: #C55A31;
    border: 1px solid #C55A31;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #a94d2a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-file-upload:active {
    background-color: #a94d2a;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#file-upload-filename {
    margin-left: 15px; /* Adds space between the button and text */
    font-size: 14px;
    color: #333;
}

/* COMMENTS */
.comment-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #888;
}

.comment-body {
    font-size: 16px;
    color: #444;
}

/* CARD */
.condo-card {
    background-color: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Error */
.help-block {
    color: #dd3636;
}

/* FONT */
@font-face {
    font-family: 'MioFont';
    src: url('../fonts/Sanchez-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'MioFont', sans-serif;
}