/* Customization to match the specific look of the screenshot */
 
.extra-small {
    font-size: 0.75rem;
}

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;*/
}
footer {  
    z-index: 10;
    background-color: #076dff;
}

.rounded-md{
    border-radius:7px;
}
/* tabelle admin */

.border-rounded {
    border-color: var(--bs-primary) !important;
    /*border-top: 2px;*/
    /*border-bottom: 2px solid;*/
    /*border-left: 1px solid;*/
    border-radius: 0 0 0 7px;
}

.dataTables_filter {
    display: none; /* Nasconde la search box default */
}

.dataTables_info {
    display: none; /* Nasconde la search box default */
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0d6efd; /* colore blu bootstrap */
}

.form-label {
    top: 20px;
    position: relative;
    background: white;
    padding: 5px 20px;
    margin-left: 30px;
    z-index: 100;
    color: #777;
    font-size: larger;
}


ul.list-group{
    max-width:300px;
}
li.list-group-item{
    max-width:300px;
}
   /* li.list-group-item.active {
        z-index: 2;
        color: #fff;
        background-color: #a9c4ed;
        border-color: #6f95cd;
    }*/
    li.list-group-item.active {
        z-index: 1;
        color: #495057;
        text-decoration: none;
        background-color: #e8f9fa;
        border-color: #ccc;
    }


.chat-input-area {
    backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .chat-input-area:focus-within {
        box-shadow: 0 8px 32px rgba(0, 100, 255, 0.3);
    }

    .chat-input-area textarea {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        resize: none;
        color: #222;
        font-size: 1rem;
        padding-top: 0.5rem;
    }

    .chat-input-area button,
    .chat-input-area label {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
        border-radius: 12px;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
    }

    .chat-input-area label {
        background: rgba(255, 255, 255, 0.6);
    }

        .chat-input-area label:hover {
            background: rgba(255, 255, 255, 0.85);
        }

    .chat-input-area button {
        background: linear-gradient(135deg, #3b82f6, #6366f1);
        color: white;
    }

        .chat-input-area button:hover {
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        }


   /* .chat-input-area input[type="text"] {
        flex-grow: 1;
    }*/

/* ===============================
   Background utilities
   =============================== */
/*.bg-success {
    background: var(--bs-success) !important;
}

.bg-info {
    background: var(--bs-info) !important;
}

.bg-warning {
    background: var(--bs-warning) !important;
}

.bg-danger {
    background: var(--bs-danger) !important;
}

.bg-light {
    background: var(--bs-light) !important;
}

.bg-dark {
    background: var(--bs-dark) !important;
}*/

/* ===============================
   Text utilities
   =============================== */
.text-success {
    color: var(--bs-success) !important;
}   

.text-info {
    color: var(--bs-info) !important;  
}

.text-warning {
    color: var(--bs-warning) !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}

.text-light {
    color: var(--bs-light) !important;
}

.text-dark {
    color: var(--bs-dark) !important;
}

/* ===============================
   Button base (Material style)
   =============================== */
.btn {
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

    .btn:hover,
    .btn:focus {
        box-shadow: 0 4px 8px rgba(0,0,0,0.18);
        transform: translateY(-1px);
    }

/* ===============================
   Button variants
   =============================== */
.btn-primary {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-secondary {
    background: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: #fff !important;
}

.btn-success {
    background: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    color: #fff !important;
}

.btn-info {
    background: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: #fff !important;
}

.btn-warning {
    background: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important; /* migliore contrasto */
}

.btn-danger {
    background: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    color: #fff !important;
}

.btn-light {
    background: var(--bs-light) !important;
    border-color: var(--bs-light) !important;
    color: var(--bs-dark) !important;
}

.btn-dark {
    background: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
    color: #fff !important;
}

/* ===============================
   Outline Button Variants
   =============================== */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background: rgba(0, 49, 121, 0.1) !important; /* var(--bs-primary) con opacità */
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.btn-outline-secondary {
    background: transparent !important;
    border: 2px solid var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus {
        background: rgba(59, 130, 246, 0.1) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.btn-outline-success {
    background: transparent !important;
    border: 2px solid var(--bs-success) !important;
    color: var(--bs-success) !important;
}

    .btn-outline-success:hover,
    .btn-outline-success:focus {
        background: rgba(37, 99, 235, 0.1) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.btn-outline-info {
    background: transparent !important;
    border: 2px solid var(--bs-info) !important;
    color: var(--bs-info) !important;
}

    .btn-outline-info:hover,
    .btn-outline-info:focus {
        background: rgba(96, 165, 250, 0.1) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.btn-outline-warning {
    background: transparent !important;
    border: 2px solid var(--bs-warning) !important;
    color: var(--bs-warning) !important;
}

    .btn-outline-warning:hover,
    .btn-outline-warning:focus {
        background: rgba(251, 191, 36, 0.15) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.btn-outline-danger {
    background: transparent !important;
    border: 2px solid var(--bs-danger) !important;
    color: var(--bs-danger) !important;
}

    .btn-outline-danger:hover,
    .btn-outline-danger:focus {
        background: rgba(220, 38, 38, 0.1) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.btn-outline-light {
    background: transparent !important;
    border: 2px solid var(--bs-light) !important;
    color: var(--bs-light) !important;
}

    .btn-outline-light:hover,
    .btn-outline-light:focus {
        background: rgba(243, 244, 246, 0.3) !important;
        color: var(--bs-dark) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.btn-outline-dark {
    background: transparent !important;
    border: 2px solid var(--bs-dark) !important;
    color: var(--bs-dark) !important;
}

    .btn-outline-dark:hover,
    .btn-outline-dark:focus {
        background: rgba(17, 24, 39, 0.1) !important;
        color: var(--bs-dark) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }




.bg-primary {
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/*.btn-primary {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white;
}

.bg-secondary {
    background: var(--bs-secondary) !important;
}*/

.text-secondary {
    color: var(--bs-secondary) !important;
}

.btn-secondary {
    background: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: white;
}

@media (max-width: 576px) {
    .btn span  {
            display: none;
        }
    .lbl span  {
            display: none;
        }
}


/* Base stile Material per i button */
.btn {
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50rem !important;
}

    /* Hover/Focus */
    .btn:hover,
    .btn:focus {
        box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 4px 20px rgba(0,0,0,0.19);
        transform: translateY(-1px);
    }

    /* Effetto ripple */
    .btn::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        transform: scale(0);
        background: rgba(255,255,255,0.6);
        width: 100px;
        height: 100px;
        opacity: 0;
        pointer-events: none;
    }

    .btn:active::after {
        transform: scale(2.5);
        opacity: 1;
        transition: transform 0.5s, opacity 1s;
        top: 50%;
        left: 50%;
        margin-left: -50px;
        margin-top: -50px;
    }

    .card{
        border-radius:25px!important;
    }
    .card-chat {
        border-radius: 0px !important;
    }
    .card-header{
        border-radius: 20px 20px 0 0!important;
    }
    .card-header-chat {
        border-radius: 0px !important;
    }
.card-img-top {
    object-fit: cover;
    height: 180px;
    border-radius: 0 0 25px 25px;
    border-top-width: 0px !important;
    border: 4px solid var(--bs-primary);
}

.menu-icon-img{
    height:32px;
    width:32px;


}

/* Cards */
.repair-card {
    border-radius:20px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

    .repair-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

    .badge{
        padding:10px;
    }

textarea.form-control {
    border-radius: 25px !important;
    font-size: 23px;
    padding: 10px 26px 10px 24px;
}
input.form-control {
    border-radius: 50rem !important;
    font-size: 23px;
    padding: 10px 26px 10px 24px;
}
select.form-control {
    border-radius: 50rem !important;
    font-size: 23px;
    padding: 10px 26px 10px 24px;
}
select.form-select {
    border-radius: 50rem !important;
    font-size: 23px;
    padding: 10px 26px 10px 24px;
}
    .form-control:focus{
        box-shadow:none;
        border:2px solid var(--bs-primary); 
    }

/* Make action buttons smaller on mobile */
@media (max-width: 576px) {
    .custom-table td .btn {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
        /* Nasconde solo il testo, non l'icona */
        .custom-table td .btn span,
        .custom-table td .btn .btn-text {
            display: none;
        }
}

.nav-item{ 
    margin-top:15px;
}
.nav-item i.bi{
    font-size:large; 
}


/* Gestione delle tabelle */
/* ===============================
   Tabella Material Style Minimal
   Palette basata su :root custom
   =============================== */

.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bs-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
}

/* Tabella */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: 0.95rem;
    color: var(--bs-dark);
}

    /* Header */
    .custom-table thead th {
        background: var(--bs-primary);
        color: #fff;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        padding: 12px 16px;
        border: none;
    }

    /* Celle corpo */
    .custom-table tbody td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--bs-light);
        vertical-align: middle;
    }

    /* Hover */
    .custom-table tbody tr:hover {
        background: var(--bs-info);
        color: #fff;
        transition: background 0.2s ease;
    }

    /* Ultima riga senza bordo */
    .custom-table tbody tr:last-child td {
        border-bottom: none;
    }

/* ===============================
   Responsive Mobile
   =============================== */
@media (max-width: 576px) {
    .custom-table thead {
        display: none;
    }

    .custom-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        overflow: hidden;
    }

    .custom-table tbody td {
       /* display: block;*/
        width: 100%;
        text-align: left;
        padding: 10px 14px;
        border-bottom: 1px solid var(--bs-light);
    }

        .custom-table tbody td::before {
            content: attr(data-label);
            display: block;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.7rem;
            color: var(--bs-secondary);
            margin-bottom: 4px;
        }

        .custom-table tbody td:last-child {
            border-bottom: none;
        }
}
