/* ==========================================================================
   BERTOLDI BOATS — Stili estratti da blocchi <style> embedded nei file PHP

   Questo file centralizza gli stili che erano sparsi inline nei template.
   Origine dei blocchi:
     - include/top_header.php  → .lang-dropdown, .lang-btn, .lang-menu
     - area-clienti.php        → .opzioni hover
     - profilo.php             → .hidden
     - rimborso.php            → .opzioni hover (duplicato)
     - miei-coupon.php         → .coupon-*, .sidebar-*, .menu-list
     - acquista-coupon.php     → variabili coupon (migrate in tokens.css)
   ========================================================================== */


/* =========================================================================
   LANGUAGE DROPDOWN (da top_header.php)
   ========================================================================= */

.lang-dropdown {
    display: inline-block;
    position: relative;
    margin-left: 10px;
    vertical-align: middle;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    min-width: 40px;
    padding: 4px 0;
}

.lang-menu.show {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 2px 10px;
    text-align: left;
    text-decoration: none;
}

.lang-menu img {
    vertical-align: middle;
}


/* =========================================================================
   BENVENUTO USER (da include/benvenuto_user.php — sostituisce inline style)
   ========================================================================= */

.benvenuto-user {
    margin-bottom: 10px;
}


/* =========================================================================
   OPZIONI MENU HOVER (da area-clienti.php, rimborso.php)
   ========================================================================= */

.opzioni > li > h4 > a:hover {
    color: red;
}


/* =========================================================================
   UTILITY (da profilo.php)
   ========================================================================= */

.hidden {
    display: none;
}


/* =========================================================================
   COUPON - TABELLA E LISTA (da miei-coupon.php)
   ========================================================================= */

.allTicket .row {
    margin: 0;
}

.coupon-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px 0px;
    margin-bottom: 30px;
}

.coupon-table-container {
    margin-bottom: 30px;
}

.coupon-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
}

.coupon-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

.coupon-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.coupon-row:hover {
    background: #f8f9fa;
}

.coupon-info strong {
    color: #333;
    font-size: 16px;
}

.coupon-info small {
    color: #666;
    font-size: 13px;
}

.coupon-code {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #495057;
}

.coupon-code-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #28a745;
}

.coupon-value {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

.coupon-date {
    color: #666;
}

.coupon-date.expired {
    color: #dc3545;
    font-weight: 600;
}

.coupon-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.coupon-status.active {
    background: #d4edda;
    color: #155724;
}

.coupon-status.used {
    background: #f8d7da;
    color: #721c24;
}

.coupon-status.expired {
    background: #f5c6cb;
    color: #721c24;
}

.coupon-status.pending {
    background: #fff3cd;
    color: #856404;
    white-space: nowrap;
    font-size: 10px;
    padding: 4px 8px;
    line-height: 1.2;
}

.no-coupon {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.coupon-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

table.coupon-table thead tr:first-child th {
    padding: 15px;
}


/* =========================================================================
   SIDEBAR MENU (da miei-coupon.php)
   ========================================================================= */

.sidebar-menu {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-menu h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin-bottom: 10px;
}

.menu-list li.active a {
    background: #007bff;
    color: #fff;
}

.menu-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-list a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.menu-list i {
    margin-right: 10px;
    width: 20px;
}


/* =========================================================================
   SIDEBAR INFO (da miei-coupon.php)
   ========================================================================= */

.sidebar-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.sidebar-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-info li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-info li:last-child {
    border-bottom: none;
}

.sidebar-info li:before {
    content: "\2713";
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .coupon-container {
        padding: 20px;
    }

    .coupon-table {
        font-size: 14px;
    }

    .coupon-table th,
    .coupon-table td {
        padding: 10px 8px;
    }
}


/* =========================================================================
   CONFERMA ITINERARIO - FORM ERROR (da conferma_itinerario.php)
   ========================================================================= */

.error {
    color: red;
}


/* =========================================================================
   CONFERMA ITINERARIO - MODAL (da conferma_itinerario.php)
   ========================================================================= */

.modal {
    display: none;
    position: absolute;
    z-index: 99999999;
    padding-top: 100px;
    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-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 42%;
    text-align: center;
}

.modal-content p {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0px;
    line-height: 35px;
}

.modal-content a {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0px;
    line-height: 35px;
}

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

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.close2 {
    position: relative;
    top: 23px;
    left: 18px;
    width: 1.5em;
    height: 1.5em;
    background: #262e35;
    color: #e7111b;
    border-radius: 50%;
    border: 1px solid #262c32;
}

.close2:hover {
    background: #e7111b;
    color: #262e35;
}

@media only screen and (max-width: 1030px) {
    .modal-content {
        width: 80%;
    }
}

@media only screen and (max-width: 480px) {
    .modal-content {
        width: 90%;
    }
}


/* =========================================================================
   COUPON SPLASH (da splash_coupon.php)
   ========================================================================= */

.coupon-splash-container {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.coupon-splash-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.coupon-splash-header h3 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 24px;
}

.coupon-splash-header p {
    color: #666;
    margin-bottom: 0;
}

.coupon-splash-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.coupon-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.coupon-detail-row:last-child {
    border-bottom: none;
}

.coupon-detail-row strong {
    color: #333;
    font-weight: 600;
}

.coupon-detail-row span {
    color: #666;
}

.coupon-splash-loader {
    text-align: center;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.coupon-splash-loader p {
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .coupon-splash-container {
        margin: 20px;
        padding: 25px;
    }

    .coupon-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}


/* =========================================================================
   CONFERMA PRENOTAZIONE — Stili per 8.php (da new-ticket.css rimosso)
   ========================================================================= */

.available-list-header {
    font-family: var(--bb-font-family);
    font-size: var(--bb-font-size-lg);
    font-weight: var(--bb-font-weight-bold);
    color: var(--bb-color-text);
    text-align: center;
    padding: var(--bb-space-lg) 0;
}

.title {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    font-weight: var(--bb-font-weight-bold);
    margin-bottom: var(--bb-space-lg);
    color: var(--bb-color-text);
}

.title span {
    font-size: var(--bb-font-size-xs);
    white-space: nowrap;
}

.title .dashes {
    flex: 1;
    height: 1px;
    margin-bottom: 6px;
    margin-left: var(--bb-space-xs);
    border-top: 1px dashed var(--bb-color-outline);
}

.travel-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--bb-space-md);
    text-align: center;
}

.travel-info .departure,
.travel-info .arrival {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.travel-info .departure .time,
.travel-info .arrival .time {
    font-size: var(--bb-font-size-lg);
    font-weight: var(--bb-font-weight-bold);
}

.travel-info .departure .location,
.travel-info .arrival .location {
    font-size: var(--bb-font-size-xs);
    font-weight: var(--bb-font-weight-regular);
}

.travel-info .duration {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.travel-info .duration .time {
    font-size: var(--bb-font-size-xs);
    color: var(--bb-color-outline);
    text-align: center;
}

.travel-info .duration .arrow-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.travel-info .duration .arrow-container::before {
    content: "<";
    font-size: 1rem;
}

.travel-info .duration .arrow-container::after {
    content: ">";
    font-size: 1rem;
}

.travel-info .duration .arrow-container .arrow {
    flex: 1;
    min-width: 30px;
    border-top: 1px dashed var(--bb-color-text);
}

.action-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--bb-space-md);
}

.action-title span {
    font-size: var(--bb-font-size-xs);
}

.action-title img {
    height: 20px;
    width: 20px;
}

.row-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--bb-space-md);
    font-size: var(--bb-font-size-xs);
}

.row-info .label {
    color: var(--bb-color-outline);
}

.row-info .info {
    color: var(--bb-color-text);
    font-weight: var(--bb-font-weight-bold);
}

.mb-32 {
    margin-bottom: var(--bb-space-2xl);
}

.note-pagemento {
    font-size: var(--bb-font-size-xs);
    color: var(--bb-color-outline);
}
