:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --primary: #007bff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --secondary: #6c757d;
}

* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; }

.container { text-align: center; background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }

.clock-display { font-size: 3.5rem; font-weight: bold; margin-bottom: 20px; color: var(--primary); letter-spacing: 2px; }

.display-code { font-size: 2rem; background: #e9ecef; border: 1px solid #ced4da; padding: 10px; margin-bottom: 20px; border-radius: 5px; min-height: 60px; display: flex; align-items: center; justify-content: center; letter-spacing: 5px; }

.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.num-btn { background: #f8f9fa; border: 1px solid #ddd; padding: 20px 0; font-size: 1.5rem; border-radius: 8px; cursor: pointer; transition: 0.1s; display: flex; justify-content: center; align-items: center;}
.num-btn:active { background: #e2e6ea; transform: scale(0.95); }

.text-danger { color: var(--danger); font-weight: bold; }
.text-warning { color: var(--warning); font-weight: bold; }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }

.btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; color: #fff; transition: 0.2s; text-decoration: none; display: inline-block;}
.btn-primary { background: var(--primary); }
.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-secondary { background: var(--secondary); }
.btn-block { width: 100%; display: block; }
.btn-lg { padding: 15px 30px; font-size: 1.2rem; }
.mt-3 { margin-top: 15px; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); width: 100%; max-width: 500px; text-align: center; }

.table-responsive { overflow-x: auto; margin: 20px 0; }
.table-pontos { width: 100%; border-collapse: collapse; }
.table-pontos th, .table-pontos td { border: 1px solid #ddd; padding: 10px; text-align: center; }
.table-pontos th { background: #f8f9fa; }
.cell-registro { cursor: pointer; font-weight: bold; min-width: 60px;}
.cell-registro:hover { background: #e9ecef; }
.cell-registro.preenchido { background: #d4edda; color: #155724; cursor: not-allowed; }

.div-botoes { display: flex; justify-content: center; gap: 10px; }
.lead { font-size: 1.25rem; font-weight: 300; }
.text-muted { color: #6c757d; }
