﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
/*input,
select,
textarea {
    max-width: 280px;
}*/

.maincontent {
    float: left;
    width: 75%;
    /*background-color:#e6e0e0;*/
}

.maincontentconfig {
    float: left;
    width: 75%;
    /*background-color:#e6e0e0;*/
}

.leftcontent {
    float: left;
    width: 20%;
    border-left: 1px solid black;
    padding: 10px;
}

.rightcontent {
    float: left;
    /*width: 22%;*/
    margin-left: 5px;
}
.login-logo {
    font-size: 35px;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
    font-weight: 300;
}

    .login-logo a {
        color: #444;
    }


.login-box {
    width: 280px;
    margin: 3% auto;
}


.login-box-body {
    background: #fff;
    padding: 20px;
    border-top: 0;
    color: #666;
}

.loading {
    position: fixed;
    z-index: 99999;
    height: 2em;
    width: 2em;
    overflow: visible;
    margin: auto;
    top: 50%;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
}

    .loading:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background-color: rgba(0,0,0,0.3);*/
        background-color: rgba(0,60,124,0.3);
    }

.loading2 {
    position: fixed;
    z-index: 99999;
    /*height: 5em;
    width: 5em;*/
    overflow: visible;
    margin: auto;
    top: 50%;
    left: 0;
    bottom: 0;
    right: 0;
}

    .loading2:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background-color: rgba(0,0,0,0.3);*/
        background-color: rgba(0,60,124,0.3);
    }
.max-alt-collapse {
    max-height: 20rem;
    -webkit-mask-image: linear-gradient(#ffffff, #ffffff, rgba(255, 255, 255, 0));
}
.autocomplete {
    position: relative;
    display: inline-block;
}

/*input {
            border: 1px solid transparent;
            background-color: #f1f1f1;
            padding: 10px;
            font-size: 16px;
        }

            input[type=text] {
                background-color: #f1f1f1;
                width: 100%;
            }

            input[type=submit] {
                background-color: DodgerBlue;
                color: #fff;
                cursor: pointer;
            }*/

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
    }

        /*when hovering an item:*/
        .autocomplete-items div:hover {
            background-color: #e9e9e9;
        }

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* CALENDAR*/
/* ── Calendario mensile ───────────────────────────── */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--bs-border-color);
    border-left: 1px solid var(--bs-border-color);
}

.cal-header-cell {
    padding: .5rem;
    text-align: center;
    font-weight: 600;
    font-size: .8rem;
    background: var(--bs-primary);
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.2);
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.cal-cell {
    min-height: 72px;
    padding: .4rem .5rem;
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
    position: relative;
    transition: background .15s;
}

    .cal-cell.other-month {
        background: var(--bs-secondary-bg);
        color: var(--bs-secondary-color);
    }

    .cal-cell.today {
        background: #e7f3ff;
    }

    .cal-cell.available {
        cursor: pointer;
    }

        .cal-cell.available:hover {
            background: #d1ebd1;
        }

    .cal-cell.selected {
        background: var(--bs-primary) !important;
        color: #fff;
    }

        .cal-cell.selected .dot {
            background: #fff;
        }

.cal-day-num {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bs-success);
    position: absolute;
    bottom: 6px;
    right: 8px;
}

/* ── Pulsanti slot orario ─────────────────────────── */
.slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .6rem 1rem;
    border: 2px solid var(--bs-border-color);
    border-radius: .5rem;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    width: 100%;
    text-align: center;
}

    .slot-btn:hover:not(:disabled) {
        border-color: var(--bs-primary);
        background: var(--bs-primary-bg-subtle);
    }

    .slot-btn.active {
        border-color: var(--bs-primary);
        background: var(--bs-primary);
        color: #fff;
    }

        .slot-btn.active .slot-avail {
            color: rgba(255,255,255,.85);
        }

    .slot-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        background: var(--bs-secondary-bg);
    }

.slot-time {
    font-size: 1rem;
    font-weight: 700;
}

.slot-avail {
    font-size: .75rem;
    color: var(--bs-secondary-color);
}

/* ── Righe varianti ───────────────────────────────── */
.variant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 5px;*/
    /* border: 1px solid #e0e0e0;
            border-radius: 8px;*/
    margin-bottom: 6px;
    /*background: #f8f9fa;*/
}

.variant-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-label {
    flex: 1;
    min-width: 0;
}

.variant-price {
    min-width: 100px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 20px;
}

.variant-quantity {
    width: 180px;
}

    .variant-quantity .input-group {
        max-width: 150px;
    }

/* ── Loading overlay ──────────────────────────────── */
#loadingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    #loadingOverlay.show {
        display: flex;
    }

/* ── Pannelli togglabili ──────────────────────────── */
#slotsPanel, #variantsPanel {
    display: none;
}

    #slotsPanel.show, #variantsPanel.show {
        display: block;
    }

@media (max-width: 576px) {
    .cal-cell {
        min-height: 52px;
        padding: .25rem .3rem;
    }

    .cal-day-num {
        font-size: .8rem;
    }

    .variant-row {
        flex-wrap: wrap;
    }
}


/* Timer Scadenza Carrello */
#cartExpiryBanner {
    animation: slideIn 0.5s ease;
}

    #cartExpiryBanner.timer-normal {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea !important;
    }

    #cartExpiryBanner.timer-warning {
        background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
        color: white;
        border-color: #ff6a00 !important;
        animation: pulse 2s infinite;
    }

    #cartExpiryBanner.timer-danger {
        background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
        color: white;
        border-color: #c92a2a !important;
        animation: pulse 1s infinite;
    }

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }
}


/* ══════════════════════════════════════════════════════════
   BOOKING-OPERATOR.CSS - Stili per Pagina Operatore
   ══════════════════════════════════════════════════════════ */

.operator-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.section-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

    .section-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.customer-form .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

    .customer-form .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    }

.booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

    .summary-item:last-child {
        border-bottom: none;
    }

.btn-complete-booking {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

    .btn-complete-booking:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
        color: white;
    }

    .btn-complete-booking:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.alert-info {
    border-left: 4px solid #667eea;
    background: #e7f3ff;
    border-color: #b3d9ff;
}

/* Responsive */
@media (max-width: 991px) {
    .operator-header h3 {
        font-size: 1.3rem;
    }

    .section-card {
        padding: 20px;
    }
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}
