@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --btn-blue: #1d90ff;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --green-success: #16a34a;
    --badge-pause: #fef3c7;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 20px;
    display: flex; justify-content: center;
}

.main-container { 
    width: 100%; 
    max-width: 500px; 
}


header h1 {
    color: var(--green-success);
    font-weight: 900;
    text-align: center;
    font-size: 2rem;
}

.meta-box { 
    background: #334155; 
    color: white;
    padding: 6px 15px; 
    border-radius: 20px; 
    display: block; 
    margin: 10px auto 20px; 
    width: fit-content;
    font-size: 0.9rem;
}

.dashboard { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-bottom: 20px; 
}
.dash-item { 
    background: var(--card-dark); 
    padding: 18px; 
    border-radius: 16px; 
    text-align: center; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.dash-item span { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    display: block; 
    margin-bottom: 5px; 
}
.dash-item strong { 
    color: var(--btn-blue); 
    font-size: 1.4rem; 
}

#statusAtual { 
    text-align: center; 
    font-weight: bold; 
    margin-bottom: 10px; 
    color: var(--green-success); 
}
.blue-theme { 
    background: var(--btn-blue) !important; 
}
.blue-theme:hover{
    background: #135899 !important;
}

.btn-main { 
    color: white; 
    border: none; 
    width: 100%; 
    padding: 18px; 
    border-radius: 12px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    cursor: pointer; 
}

.secondary-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-top: 15px; 
}
.btn-sec { 
    background: transparent; 
    border: 1px solid #334155; 
    color: var(--text-white); 
    padding: 12px; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 0.8rem; 
}
.btn-sec:hover { 
    background: #135899; 
}

.btn-history-full { 
    display: block; 
    text-align: center; 
    background: transparent; 
    border: 1px solid #334155; 
    color: var(--btn-blue); 
    padding: 12px; 
    border-radius: 10px; 
    margin-top: 10px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.85rem; 
}
.btn-history-full:hover{
    background: #334155;
}

.day-block { 
    background: var(--card-dark); 
    border-radius: 20px; 
    padding: 20px; 
    margin-top: 25px; 
}
.day-header { 
    color: var(--green-success); 
    font-weight: bold; 
    margin-bottom: 15px; 
    font-size: 1.2rem; 
}

.time-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
}

/* Estilo da linha de pausa entre os pontos */
.pause-divider {
    background: var(--badge-pause);
    color: #92400e;
    padding: 5px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
}

.btn-edit { 
    background: #334155; 
    border: none; color: var(--text-muted); 
    padding: 6px 12px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 0.7rem; 
}

.modal { 
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.85); 
    z-index:1000; 
    align-items:center; 
    justify-content:center; 
}
.modal-content { 
    background: var(--card-dark); 
    padding: 25px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 400px; 
}
.modal-content input, .modal-content select { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    border-radius: 8px; 
    border: 1px solid #334155; 
    background: #0f172a; 
    color: white; 
}

.footer-controls { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    margin-top: 30px; 
}
.btn-ghost { 
    background: transparent;
     border: none; 
     color: var(--text-muted); 
     font-size: 0.85rem; 
     cursor: pointer; 
     text-decoration: underline; 
    }
.config-section {
    background: #1e293b;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.config-section input {
    width: 45px;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    border-radius: 5px;
    padding: 3px;
    text-align: center;
}

#btnSalvarConfig {
    margin-left: 10px;
    padding: 5px 10px;
}
.config-section{
    text-align: right;
    padding-left: 10px;
    margin-left: 226px;
}
footer.dev {
    text-align: center;
}
/*  estilo para o cabeçalho da tabela de histórico */
  .header-hist {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .btn-voltar {
            background: #334155;
            color: white;
            text-decoration: none;
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 0.8rem;
        }
        
        /* Estilo Tabela (Parecido com PDF) */
        .tabela-container {
            background: var(--card-dark);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
        }
        
        thead {
            background: #334155;
            color: var(--btn-blue);
        }
        
        th, td {
            padding: 12px 8px;
            text-align: center;
            border-bottom: 1px solid #2d3748;
        }

        .col-data { 
            text-align: left; 
            padding-left: 15px; 
            font-weight: bold; 
        }
        .col-batidas { 
            font-size: 0.75rem; 
            color: var(--text-muted); 
        }
        .saldo-pos { 
            color: #16a34a; 
            font-weight: bold; 
        }
        .saldo-neg { 
            color: #ef4444; 
            font-weight: bold; 
        }

        .resumo-topo {
            display: flex;
            justify-content: space-between;
            background: #1e293b;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 15px;
            border-bottom: 3px solid var(--btn-blue);
        }