@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Outfit', system-ui, -apple-system, sans-serif; 
    background: #f6f6f8; 
    color: #1c1c1e; 
    min-height: 100vh; 
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Animação Suave Moderna */
@keyframes smoothOpen {
    from { 
        opacity: 0; 
        transform: translateY(18px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.animate-open {
    animation: smoothOpen 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bb-display { 
    font-weight: 700; 
    letter-spacing: -0.02em; 
    color: #131316;
}

.bb-mono { 
    font-family: 'IBM Plex Mono', monospace; 
}

.bb-stripe { 
    background: linear-gradient(90deg, #d4d4d8 0%, #a1a1aa 50%, #d4d4d8 100%);
    height: 3px; 
    width: 100%;
}

/* Cards com mais suavidade */
.bb-card { 
    background: #ffffff; 
    border: 1px solid #e9e9ed; 
    border-radius: 16px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.bb-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* Inputs, selects, chips – mais refinados */
.bb-chip, 
input[type="text"], 
input[type="tel"], 
input[type="password"],
input[type="date"],
select {
    border: 1px solid #e2e2e7;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    padding: 12px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    outline: none;
    color: #1c1c1e;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.bb-chip:focus,
input:focus,
select:focus {
    border-color: #8e8e93;
    box-shadow: 0 0 0 3px rgba(142, 142, 147, 0.15);
    transform: translateY(-1px);
}

.bb-chip:hover:not(:disabled),
input:hover:not(:disabled),
select:hover:not(:disabled) {
    border-color: #b0b0b8;
}

/* Estilo específico para inputs do tipo date */
input[type="date"] {
    min-height: 48px;
    padding: 10px 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 18px;
    cursor: pointer;
}

/* Selects */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238e8e93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.bb-chip-disabled { 
    opacity: 0.5; 
    background: #f2f2f5; 
    pointer-events: none; 
    filter: grayscale(0.2);
}

/* Botões primários */
.bb-btn-primary { 
    background: #1c1c1e; 
    color: #ffffff; 
    border-radius: 12px; 
    font-weight: 600; 
    border: none; 
    padding: 12px 24px; 
    cursor: pointer; 
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.bb-btn-primary:hover:not(:disabled) { 
    background: #2c2c2e; 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.bb-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.bb-btn-primary:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    transform: none;
}

/* Botões ghost */
.bb-btn-ghost { 
    background: transparent; 
    color: #3a3a3c; 
    border: 1px solid #e2e2e7; 
    border-radius: 12px; 
    cursor: pointer; 
    padding: 8px 16px; 
    font-weight: 500; 
    transition: all 0.2s ease; 
    font-family: 'Outfit', sans-serif;
}

.bb-btn-ghost:hover { 
    background: #f0f0f3; 
    border-color: #c7c7ce;
    color: #1c1c1e; 
}

/* Badges */
.bb-badge { 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 500; 
    padding: 4px 14px; 
    display: inline-block; 
    letter-spacing: 0.02em;
    background: #f0f0f3;
    color: #3a3a3c;
}

.bb-badge-confirmado { background: #e8e8ed; color: #1c1c1e; }
.bb-badge-concluido { background: #d4d4dc; color: #1c1c1e; }
.bb-badge-cancelado { background: #f2f2f5; color: #8e8e93; text-decoration: line-through; }

/* Melhorias nos quadros de configuração (bloqueios e horário) */
.config-block {
    background: #fafafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e9e9ed;
    transition: box-shadow 0.2s ease;
}

.config-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.config-block label {
    font-weight: 600;
    font-size: 14px;
    color: #2c2c2e;
    display: block;
    margin-bottom: 12px;
}

/* Lista de métodos de pagamento */
.payment-tag {
    background: #e9e9ed;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1e;
}

.payment-tag button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: #6c6c72;
    font-size: 16px;
    padding: 0 2px;
    transition: color 0.15s;
}

.payment-tag button:hover {
    color: #dc2626;
}

/* Ajustes para os dias da semana (checkboxes) */
.workday-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: #ffffff;
    padding: 6px 14px;
    border: 1px solid #e2e2e7;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workday-label:hover {
    background: #f4f4f7;
    border-color: #c7c7ce;
}

.workday-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1c1c1e;
    cursor: pointer;
}

/* Botões de navegação da agenda */
.nav-date-btn {
    background: transparent;
    border: 1px solid #e2e2e7;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #3a3a3c;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.nav-date-btn:hover {
    background: #f0f0f3;
    border-color: #b0b0b8;
}

/* Tab buttons mais elegantes */
.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    text-align: left;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #3a3a3c;
    width: 100%;
}

.tab-btn.active {
    background: #1c1c1e;
    color: #ffffff;
}

.tab-btn:hover:not(.active) {
    background: #f0f0f3;
}

/* Responsividade e ajustes finos */
@media (max-width: 640px) {
    .bb-chip, input, select {
        font-size: 15px;
        padding: 14px 16px;
    }
    .bb-btn-primary {
        padding: 14px 20px;
        font-size: 16px;
    }
}