html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f5f7fa;
    
    /*display: flex;
    flex-direction: column;
    min-height: 100vh;*/ /* tutta la finestra visibile */
}

/*header {
}

main {
    flex: 1;*/ /* si espande per riempire lo spazio tra header e footer */
    /*overflow-y: auto;*/ /* permette lo scroll interno se serve */
    /*padding: 1rem;
}

footer {

}*/

.fs-7 {
  font-size: .75rem !important;
}

.fs-8 {
    font-size: .50rem !important;
}

.fs-9 {
    font-size: .25rem !important;
}

.row-cols-7 > * {
    flex: 0 0 auto;
    width: 14.28571428%;
}

.tab-pane {
    padding: 8px;
    /*border-left-color: lightgray;
    border-left-width: 1px;
    border-left-style: solid;
    border-right-color: lightgray;
    border-right-width: 1px;
    border-right-style: solid;*/
/*    border-bottom-color: lightgray;
    border-bottom-width: 1px;
    border-bottom-style: solid;*/
}


.pagination li {
    display: inline-block;
    padding: 5px;
}


.chat-container {
/*    max-width: 600px;
    margin: 1em auto;*/
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.chat-header {
    padding: 15px;
    background-color: #007B5E;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    background-color: #e5ddd5;
    overflow-y: auto;
}

.message {
    max-width: 75%;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    display: block;
}

.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.received {
    background-color: #ffffff;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.readable {
    border: 3px solid #007B5E;
    box-shadow: #ccc 3px 3px;
}

.message-time {
    font-size: 0.75em;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

    .chat-input input[type="text"] {
        flex: 1;
        padding: 12px;
        border: none;
        font-size: 16px;
        border-bottom-left-radius: 10px;
    }

    .chat-input button {
        background-color: #007B5E;
        color: white;
        padding: 12px 20px;
        border: none;
        font-size: 16px;
        cursor: pointer;
        border-bottom-right-radius: 10px;
    }

        .chat-input button:hover {
            background-color: #005d47;
        }

.status-icon {
    margin-left: 6px;
    font-size: 0.9em;
    vertical-align: middle;
}

    .status-icon .fa-check-double.read {
        color: #4fc3f7; /* blu */
    }




/* Personalizza l'aspetto del box dropzone */
.dropzone {
    border: 2px dotted #007bff;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    font-family: sans-serif;
    color: #555;
}

/* Personalizza il messaggio al centro */
.dropzone .dz-message {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

/* Quando un file viene aggiunto */
.dropzone .dz-preview {
    margin-top: 10px;
}

/* Ridimensiona le anteprime */
.dropzone .dz-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}


.toast {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    min-width: 280px;
    display: block !important;
}

    .toast.showing {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0);
    }


    .toast.hiding {
        opacity: 0;
        transform: translateY(20px);
    }


#pagination-info {
    font-size: 0.8rem;
}