/* ESTILOS DO PAINEL ADMINISTRATIVO */
:root {
    --primary-color: #059669;
    --dark-tropical: #064e3b;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-sans);
}

.bg-login {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
}

.bg-dark-tropical {
    background-color: var(--dark-tropical) !important;
}

.metric-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}

/* Fundos em degradê com opacidade bem suave e sutil combinando com a cor de cada ícone */
.metric-card-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.015) 100%) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
}

.metric-card-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(251, 191, 36, 0.02) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.13) !important;
}

.metric-card-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0%, rgba(5, 150, 105, 0.02) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.13) !important;
}

.metric-card-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(6, 182, 212, 0.015) 100%) !important;
    border: 1px solid rgba(14, 165, 233, 0.12) !important;
}

/* Cabeçalhos dos cards com degradê suave */
.card-header-gradient-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.16) !important;
}

.card-header-gradient-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.18) !important;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Ícones circulares e alinhamento centralizado perfeito */
.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.icon-circle i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
}

/* Alinhamento vertical de ícones com textos em abas, botões e títulos */
.nav-pills .nav-link,
.card h5 {
    display: inline-flex;
    align-items: center;
}

.nav-pills .nav-link i,
.card h5 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.status-badge-pendente {
    background-color: #fef3c7;
    color: #b45309;
}

.status-badge-confirmada {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge-cancelada {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Previne que dropdowns de tabelas fiquem presos ou cortados em camadas inferiores */
.table-responsive {
    overflow: visible !important;
}

@media (max-width: 991px) {
    .table-responsive {
        overflow-x: auto !important;
    }
}

.table td, .table th {
    vertical-align: middle;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    z-index: 1065 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ALTERNADOR DE MODO (RESERVA INDIVIDUAL VS BLOQUEIO POR PERÍODO) */
.mode-toggle-group {
    background-color: #f1f5f9;
}

.mode-toggle-group .btn {
    color: #475569;
    transition: all 0.25s ease;
    border: none !important;
}

#modeSingle:checked + .btn-mode-single {
    background-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
}

#modePeriod:checked + .btn-mode-period {
    background-color: #f59e0b !important;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

#modeUnblock:checked + .btn-mode-unblock {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.select-available-dates {
    font-weight: 500;
}

.select-available-dates option {
    padding: 8px;
    font-size: 0.95rem;
}

/* SELETOR GRÁFICO DE CALENDÁRIO NO ADMIN */
.admin-calendar-picker {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.admin-cal-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ffffff;
    padding: 12px 18px;
}

.admin-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #64748b;
    padding: 8px 4px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    text-transform: uppercase;
}

.admin-cal-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
}

.admin-cal-day {
    min-height: 60px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
    min-width: 0;
}

.admin-cal-day.day-empty {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.admin-cal-day.day-past {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.5;
}

.admin-cal-day.day-busy {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    cursor: not-allowed;
    opacity: 0.75;
}

.admin-cal-day.day-available {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    cursor: pointer;
}

.admin-cal-day.day-available:hover {
    border-color: #059669;
    background-color: #d1fae5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.admin-cal-day.day-selected {
    background-color: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45) !important;
    transform: scale(1.03);
    z-index: 2;
}

.admin-cal-day.day-selected .admin-cal-price {
    color: #d1fae5 !important;
}

.admin-cal-day-num {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.admin-cal-price {
    font-size: 0.68rem;
    font-weight: 600;
    color: #047857;
    margin-top: 2px;
}
@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .metric-card {
        margin-bottom: 0.5rem;
    }
    .metric-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .table td, .table th {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    #settingsTabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    #settingsTabs .nav-item {
        flex-shrink: 0;
    }
    #settingsTabs .nav-link {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    .card-header h3, .card-header h5 {
        font-size: 1.15rem;
    }
}

