/* =========================================
   HISTORICO.CSS - TELA DE HISTÓRICO (APP)
   ========================================= */

/* Sistema de Abas (Tabs) */
.tabs-container {
    display: flex;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--color-purple);
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

/* Conteúdo das Abas */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Cartões de Histórico */
.history-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Cores da borda lateral dependendo do status do BD */
.history-card.status-marcado { border-left-color: var(--color-purple); }
.history-card.status-pendente { border-left-color: #f39c12; }
.history-card.status-concluido { border-left-color: #2ecc71; }
.history-card.status-cancelado { border-left-color: var(--color-pink); opacity: 0.7; }

/* Cabeçalho do Cartão (Data e Status) */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.history-date {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.history-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); }
.badge-green { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.badge-orange { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.badge-pink { background: rgba(244, 91, 105, 0.1); color: var(--color-pink); }

/* Corpo do Cartão (Serviço e Valor) */
.history-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-service {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.history-pro {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-price {
    font-weight: 700;
    color: var(--color-purple);
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}