/* =========================================================
   ESTILOS GERAIS - MOBILE FIRST / PWA READY
   ========================================================= */
:root {
    --bmf-primary:#ffffff;
    
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top left, #ffffff 0%, #f1f5f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif;
    color: #1f2937;
}
.bg-primary-nav {
    background-color: #ffffff;
}

.navbar-brand {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1.05rem;
    text-transform: uppercase;
}


.nav-link {
    font-weight: 500;
    position: relative;
}
/* Logo na navbar */
.logo-banda {
    height: 38px;    /* ajusta conforme o teu logo */
    width: 38px; 
    /*width: auto;*/
    border-radius: 50%; /* transforma em círculo */
    object-fit: cover;  /* garante que preenche o círculo */
}
@media (max-width: 575.98px) {
    .logo-banda {
        width: 34px;
        height: 34px;
    }}


/* Melhora toque no telemóvel */
button, a, input, select {
    touch-action: manipulation;
}

/* Espaçamento do conteúdo global */
.page-container {
    padding: 16px;
}

@media (min-width: 768px) {
    .page-container {
        padding: 24px;
    }
}

.musician-card-reforco {
    background-color: #fff7db;
}


/* =========================================================
   CARDS MODERNOS PARA MÚSICOS
   ========================================================= */
.musician-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: #ffffff;
}

.musician-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.musician-card-inactive {
    background: #f3f4f6;
}

.musician-card-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Avatar */
.musician-avatar {
    width: 45px;
    height: 45px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.musician-card-inactive .musician-avatar {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

/* Nome / Instrumento */
.musician-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.musician-instrument {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Tipo */
.musician-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
}

/* Cachet */
.musician-fees-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.1rem;
}

.musician-fees-values {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Por receber */
.musician-due-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.musician-due-value {
    font-size: 1rem;
    font-weight: 600;
}

.musician-due-value.negativo {
    color: #dc2626;
}

.musician-due-value.positivo {
    color: #16a34a;
}

/* Botões */
.musician-card-actions .btn {
    border-radius: 999px;
}



/* =========================================================
   RESPONSIVIDADE (APP-LIKE)
   ========================================================= */
@media (max-width: 480px) {
    .musician-card {
        border-radius: 0.85rem;
    }

    .musician-avatar {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .musician-name {
        font-size: 1rem;
    }
}



/* =========================================================
   CABEÇALHOS / TITULOS PAGE
   ========================================================= */
.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}



/* =========================================================
   NAV PILLS MELHORADAS
   ========================================================= */
.nav-pills .nav-link {
    border-radius: 999px;
    padding: 6px 14px;
}

.nav-pills .nav-link.active {
    background-color: #2563eb;
    text-decoration: underline; 
}



/* =========================================================
   PWA FRIENDLY (safe areas iOS)
   ========================================================= */
@supports(padding: max(0px)) {
    body {
        padding-bottom: max(env(safe-area-inset-bottom), 16px);
    }
}

/* =========================================================
   CONCERTO - PRESENÇAS (LISTA)
   ========================================================= */

/* Card do cabeçalho do concerto */
.card-concerto-header {
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.card-concerto-header .card-body {
    padding: 1.1rem 1.2rem;
}

/* Tabela principal de presenças */
.table-presencas thead th {
    background: #eef2ff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
    border-bottom-color: #e5e7eb;
}

.table-presencas tbody td {
    vertical-align: middle;
    font-size: 0.85rem;
}

.table-presencas tbody tr:hover {
    background-color: #f9fafb;
}

/* Primeira coluna (checkbox Pres.) */
.table-presencas td:first-child,
.table-presencas th:first-child {
    text-align: center;
}

/* Inputs mais compactos dentro da tabela */
.table-presencas .form-control-sm,
.table-presencas .form-select-sm {
    font-size: 0.8rem;
    padding: 0.15rem 0.35rem;
}

/* Tabela de inativos */
.table-inativos thead th {
    background: #f3f4f6;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
}

.table-inativos tbody td {
    font-size: 0.85rem;
    vertical-align: middle;
}

/* Pequeno destaque nas badges */
.badge.bg-secondary {
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
}
/* =========================================================
   PRESENÇAS - CARDS POR MÚSICO
   ========================================================= */
.presencas-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.musician-presenca-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.9rem;
    background-color: #f3f4f6; /* cinza */
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.musician-presenca-card:hover {
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.musician-presenca-card.is-selected {
    background-color: #dcfce7; /* verde suave quando presente */
}

.musician-presenca-card.is-paid {
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.5);
}

.presenca-avatar-wrapper {
    flex-shrink: 0;
}

.presenca-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

.presenca-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presenca-info {
    min-width: 0;
}

.presenca-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.presenca-instrument {
    font-size: 0.8rem;
    color: #6b7280;
}

.presenca-type-fee {
    font-size: 0.78rem;
    color: #4b5563;
}

.presenca-type {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.presenca-fee {
    margin-left: 0.35rem;
}

/* Stamp PAGO */
.pago-stamp {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 0.45rem;
    border: 2px solid #16a34a;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: rotate(-8deg);
    background-color: rgba(22, 163, 74, 0.05);
}

/* Botão "Pagar" mais arredondado */
.presenca-actions .btn {
    border-radius: 999px;
}

/* Tabela de inativos (já que ainda é tabela) */
.table-inativos thead th {
    background: #f3f4f6;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
}

.table-inativos tbody td {
    font-size: 0.85rem;
    vertical-align: middle;
}

/* Cabeçalho do concerto já com look de app */
.card-concerto-header {
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.card-concerto-header .card-body {
    padding: 1.1rem 1.2rem;
}
