/* --- VARIÁVEIS E CONFIGURAÇÕES GERAIS --- */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- NOVO CABEÇALHO PADRONIZADO DA EMPRESA --- */
.header-empresa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.header-empresa i {
    font-size: 3.5rem;
    color: var(--primary);
}

.header-empresa div {
    display: flex;
    flex-direction: column;
}

.header-empresa h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 2.2rem !important;
    text-align: left !important;
    color: var(--text);
    border: none !important;
    background: none !important;
}

.header-empresa p {
    margin: 4px 0 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- MENU PRINCIPAL (CARDS) --- */
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 25px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card i { 
    font-size: 3rem; 
    margin-bottom: 15px; 
    color: var(--primary);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.15);
}

.card:hover i { transform: scale(1.1); }

/* --- RELATÓRIO, FILTROS E BOTÕES --- */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #f1f5f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    align-items: center;
}

select, input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background: white;
}

select:focus, input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 14px;
    background-color: #e2e8f0;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-filtrar {
    background-color: var(--primary) !important;
    color: white !important;
}

.btn-filtrar:hover {
    background-color: var(--primary-hover) !important;
}

.btn-pdf {
    background-color: #059669 !important; /* Verde Sucesso */
    color: white !important;
}

.btn-pdf:hover {
    background-color: #047857 !important;
}


/* --- TABELA DE PONTO --- */
.tabela-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 16px;
    text-align: left;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tr:last-child td { border-bottom: none; }
tr:hover { background-color: #fcfcfd; }

/* Estilo das Batidas (Badges) */
.batidas-badge {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 3px;
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    border: 1px solid #cbd5e1;
    color: var(--text);
}

/* --- STATUS E ELEMENTOS EXTRAS --- */
.text-success { color: var(--success); font-weight: bold; }
.text-danger { color: var(--danger); font-weight: bold; }
.text-warning { color: var(--warning); font-weight: bold; }

#resumo {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.voltar {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    margin-left: auto;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.voltar:hover { color: var(--primary); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .header-empresa { flex-direction: column; text-align: center; }
    .header-empresa h1 { text-align: center !important; }
    .filtros { flex-direction: column; align-items: stretch; }
}

/* --- ESTILO PARA EXCLUSÃO DE BATIDAS NO RELATÓRIO --- */

/* Container que envolve o horário e o botão X */
.batida-item {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9; /* Cor de fundo suave */
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin: 3px;
    padding-right: 4px; /* Espaço para o ícone de fechar */
}

/* Ajuste do badge original para não ter bordas próprias dentro do container */
.batida-item .batidas-badge {
    border: none !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 4px 6px 4px 10px !important;
}

/* Estilo do botão X de excluir */
.btn-excluir-ponto {
    background: none !important;
    border: none !important;
    color: var(--danger) !important; /* Usa o vermelho que você já definiu */
    cursor: pointer;
    padding: 0 !important;
    margin: 0 4px !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    box-shadow: none !important; /* Remove sombra de botões padrão */
}

.btn-excluir-ponto:hover {
    transform: scale(1.2);
    background: none !important;
}