body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
}

#dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    min-height: 100vh;
    background-color: #f0f0f0; /* cinza claro */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

/* Logotipo */
.sidebar .logo {
    width: 80px;
    margin-bottom: 10px;
}

/* Nome do cliente */
.sidebar .client-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 30px;
    text-align: center;
    max-width: 180px;
    word-wrap: break-word;
}

/* Menu */
.sidebar ul.nav {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul.nav li {
    width: 100%;
}

.sidebar ul.nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
    position: relative;
}

.sidebar ul.nav li a svg {
    width: 20px;
    height: 20px;
    fill: #333;
    transition: fill 0.3s;
}

/* Hover */
.sidebar ul.nav li a:hover {
    background-color: rgba(0,0,0,0.05);
    color: #000;
}

.sidebar ul.nav li a:hover svg {
    fill: #000;
}

/* Menu ativo */
.sidebar ul.nav li a.active {
    background-color: #dcdcdc; /* cinza um pouco mais escuro */
    color: #000;
    font-weight: 600;
}

.sidebar ul.nav li a.active svg {
    fill: #000;
}

/* Content Area */
.content-area {
    flex-grow: 1;
    padding: 30px;
    background-color: #fafafa; /* cor mais clara para diferenciar do menu lateral */
}

/* Dashboard Sections */
.dashboard-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}


/* Responsivo */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar ul.nav li a span,
    .sidebar .client-name {
        display: none;
    }

    .sidebar ul.nav li a {
        justify-content: center;
        padding: 12px 0;
    }
}

/**profile **/
/* Cards do Perfil */
.profile-card {
    background: #fff;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* Form Labels */
#perfil-form .form-label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* Campos de Entrada e Select */
#perfil-form .form-control,
#perfil-form .form-select {
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    padding: 10px 14px;
    transition: all 0.3s;
}

#perfil-form .form-control:focus,
#perfil-form .form-select:focus {
    border-color: #E6A500;
    box-shadow: 0 0 8px rgba(230,165,0,0.3);
}

/* Botão Atualizar */
.btn-primary {
    background-color: #E6A500;
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 35px;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #d89b00;
    color: #fff;
}

/* Títulos */
.dashboard-section h2 {
    color: #E6A500;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.profile-card h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .profile-card {
        padding: 20px 15px;
    }

    .btn-primary {
        width: 100%;
    }
}
/* Botão à direita */
.text-end .btn-primary {
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1rem;
}

/* Campos palavra-passe mais largos */
#perfil-form .row.g-3.align-items-end .col-md-4 {
    min-width: 220px; /* Garante largura mínima para campos */
}

/* Responsivo */
@media (max-width: 768px) {
    .text-end .btn-primary {
        width: 100%; /* Botão ocupa toda a largura no mobile */
    }

    #perfil-form .row.g-3.align-items-end .col-md-4 {
        min-width: 100%; /* Campos ocupam toda largura no mobile */
    }
}

/**booking **/
body {
    font-family: 'Roboto', sans-serif;
}

/* Filtros */
.reservation-filters .filter-item {
    min-width: 140px;
}

.reservation-filters .form-select,
.reservation-filters .form-control {
    border-radius: 6px;
    font-size: 0.85rem;
}

#filter-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}
.tab {
    padding: 10px 18px;
    margin-right: 8px;
    font-weight: 500;
    cursor: pointer;
    color: #000;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.tab.active {
    color: #E6A500;
    border-bottom: 2px solid #E6A500;
    font-weight: 600;
}

.table-responsive {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

.reservations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 0.88rem;
    min-width: 600px;
}

.reservations-table thead th {
    font-weight: 600;
    color: #000;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ccc;
    background-color: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 2;
}

.reservations-table tbody tr {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.reservations-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.reservations-table tbody td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}


/* Badges de estado */
.status-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge.pago {
    background-color: #28A745;
    color: #fff;
}

.status-badge.parcial {
    background-color: #F0F0F0;
    color: #333;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* Cards mobile - estilo moderno */
.booking-card, .package-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center; /* centraliza o conteúdo */
    gap: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4; /* melhora a legibilidade */
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center; /* centraliza o texto */
    max-width: 400px; /* evita cards muito largos em telas maiores */
    margin-left: auto;
    margin-right: auto;
}
.booking-card:hover, .package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Rows dentro da card */
.booking-card .row, .package-card .row {
    display: flex;
    flex-direction: column; /* label em cima do valor */
    gap: 4px;
    justify-content: center;
    align-items: center;
}
.booking-card .row strong, .package-card .row strong {
    font-weight: 600;
    color: #333;
    display: block;
}

/* Status badge */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}
.status-badge.pago { background-color: #C8E6C9; color: #256029; }
.status-badge.parcial { background-color: #FFF3E0; color: #BF360C; }

.pdf-btn {
    background-color: #D32F2F;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
    transition: background-color 0.2s, transform 0.2s;
}
.pdf-btn:hover {
    background-color: #B71C1C;
    transform: scale(1.08);
}
.action-icon svg {
    cursor: pointer;
    transition: transform 0.2s, fill 0.2s;
}
.action-icon svg:hover {
    transform: scale(1.3);
    fill: #B71C1C;
}

.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 767px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
}

.error-feedback{
    font-size: 0.9rem;
    color: #b22e14;
}
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
    max-width: 320px;
    background-color: #444;
    color: #f5f5f5;
}

.toast-success::before,
.toast-error::before {
    font-weight: bold;
    font-size: 1.2rem;
}

.toast-success::before {
    content: "✓";
    color: #28a745;
}
.toast-error::before {
    content: "✖";
    color: #dc3545;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
#loadingOverlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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