/* Estilo específico para App Entregador - Tema Azul */
:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --accent: #2196f3;
    --success: #00c853;
    --danger: #ff1744;
    --warning: #ffc107;
    --dark: #1a237e;
    --light: #e3f2fd;
}

body.entregador {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
}

/* Header Entregador */
.header-entregador {
    background: var(--primary-dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-entregador h1 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-entregador .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Container principal */
.main-content {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Card de entrega disponível */
.entrega-card {
    background: white;
    border-radius: 16px;
    margin: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

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

.entrega-card.nova {
    border: 3px solid var(--accent);
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px var(--accent); }
    to { box-shadow: 0 0 25px var(--accent); }
}

.entrega-card .valor {
    font-size: 32px;
    font-weight: 700;
    color: var(--success);
    text-align: center;
    margin-bottom: 16px;
}

.entrega-card .rota {
    background: var(--light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.entrega-card .ponto {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.entrega-card .ponto:last-child {
    margin-bottom: 0;
}

.entrega-card .ponto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.entrega-card .ponto-icon.origem {
    background: var(--primary);
    color: white;
}

.entrega-card .ponto-icon.destino {
    background: var(--danger);
    color: white;
}

.entrega-card .ponto-info {
    flex: 1;
}

.entrega-card .ponto-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.entrega-card .ponto-endereco {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.linha-conexao {
    width: 2px;
    height: 20px;
    background: #ddd;
    margin-left: 15px;
    margin-bottom: 12px;
}

/* Botões de ação */
.acoes-entrega {
    display: flex;
    gap: 12px;
}

.btn-aceitar {
    flex: 1;
    background: var(--success);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-aceitar:hover {
    background: #00a844;
    transform: scale(1.02);
}

.btn-recusar {
    background: #f5f5f5;
    color: #666;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

/* Status toggle */
.status-toggle {
    background: white;
    margin: 16px;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-toggle label {
    font-weight: 600;
    color: #333;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    gap: 4px;
}

.bottom-nav a.active {
    color: var(--primary);
}

.bottom-nav a .icon {
    font-size: 24px;
}

/* Notificação popup */
.notificacao-popup {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: var(--accent);
    color: white;
    padding: 16px;
    border-radius: 12px;
    display: none;
    animation: slideDown 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notificacao-popup.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notificacao-popup .icon {
    font-size: 32px;
}

.notificacao-popup .texto {
    flex: 1;
}

.notificacao-popup .titulo {
    font-weight: 600;
    font-size: 16px;
}

.notificacao-popup .subtitulo {
    font-size: 14px;
    opacity: 0.9;
}

/* Sem entregas */
.sem-entregas {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.sem-entregas .icon {
    font-size: 80px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.sem-entregas h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.sem-entregas p {
    opacity: 0.7;
}

/* Entrega em andamento */
.entrega-andamento {
    background: white;
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
}

.entrega-andamento .header-status {
    background: var(--primary);
    color: white;
    padding: 16px;
    text-align: center;
}

.entrega-andamento .header-status h3 {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.8;
}

.entrega-andamento .header-status .status {
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
}

.entrega-andamento .conteudo {
    padding: 20px;
}

.btn-acao-entrega {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

.btn-coletar {
    background: var(--warning);
    color: #333;
}

.btn-entregar {
    background: var(--success);
    color: white;
}

/* Histórico */
.historico-item {
    background: white;
    margin: 16px;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historico-item .info h4 {
    font-size: 14px;
    color: #333;
}

.historico-item .info p {
    font-size: 12px;
    color: #666;
}

.historico-item .valor {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

/* Ganhos */
.ganhos-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    margin: 16px;
    border-radius: 16px;
    padding: 24px;
    color: white;
    text-align: center;
}

.ganhos-card .label {
    font-size: 14px;
    opacity: 0.8;
}

.ganhos-card .valor {
    font-size: 48px;
    font-weight: 700;
    margin: 8px 0;
}

.ganhos-card .periodo {
    font-size: 12px;
    opacity: 0.7;
}
