/* Configurações Globais e Reset */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #e9ecef; /* Cinza claro para o fundo do navegador */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centraliza o 'celular' no desktop */
    color: #333;
}

/* Container que simula o Mobile no Desktop */
.app-container {
    width: 100%;
    max-width: 480px; /* Largura padrão de smartphone */
    min-height: 100vh;
    background-color: #f8f9fa; /* Fundo interno do app */
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Header com tom Azul Profundo */
.header {
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2137 100%);
    color: #ffffff;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Cards de Informação */
.card {
    background: #ffffff;
    margin: 12px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #1a3a5f;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* Formulários */
.input-group {
    margin-bottom: 15px;
    padding: 0 5px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #1a3a5f;
    box-shadow: 0 0 0 2px rgba(26, 58, 95, 0.1);
}

/* Botões */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: #1a3a5f; /* Azul Primário */
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.btn-secondary { background: #6c757d; }
.btn-success { background: #28a745; }
.btn-info { background: #17a2b8; }
.btn-danger { background: #dc3545; }

/* Dashboard Badges */
.badge-count {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a3a5f;
    display: block;
    margin: 5px 0;
}

/* Lista de Clientes/Entregas */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.list-item:last-child { border-bottom: none; }

/* Utilitários */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.p-15 { padding: 15px; }

/* Estilo para Links de Ação Rápida (WhatsApp/Rota) */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}