/* fichaje.css - Estilos para a páxina de fichaxe */
       body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }
		
        .logo-container {
            display: flex;
            align-items: normal;
            /* margin-bottom: 5px;*/
        }

        .logo {
            height: 50px;
            width: auto;
            margin-right: 10px;
            margin-left: 10px;
        }

        .company-info {
            display: flex;
            flex-direction: column;
        }



        .company-address {
            text-transform: uppercase;
            color: black;
            font-family: "arial", "serif";
            text-shadow: 0.1em 0.1em 0.2em #000;
            filter: dropshadow(color=gray, offx=0.1em, offy=0.1em);
            font-size: 0.8rem;
            margin: 5px;
        }



        .container {
            width: 90%;
            max-width: 600px;
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .container h1 {
            margin: 0px;
            font-size: 1.4rem;
            text-align: left;
            text-transform: uppercase;
            color: #7DA5E0;
            font-family: "arial", "serif";
            text-shadow: 3px 1px 2px #002b49;

        }
		
.fichaje-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fichaje-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  /*  margin-bottom: 25px;
    padding-bottom: 15px; */
    border-bottom: 2px solid #f0f0f0;
}

.fichaje-header h1 {
    color: #555;
    font-size: 12px;
    margin: 0;
    text-shadow: none;
    text-transform: none;
    font-family: Arial, sans-serif;
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.usuario-nome {
   /* font-weight: 600; */
   font-size: 12px;
    color: #555;
}

/* Indicador de conexión */
.conexion-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f44336;
    transition: background 0.3s;
}

.dot.connected {
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Tarjeta de estado */
.estado-card {
    background: #7DA5E0;
    color: white;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.estado-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.estado-valor {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tiempo {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.inicio-info {
    font-size: 14px;
    opacity: 0.9;
}

/* Botones de acción */
.botones-container {
    display: flex;
    gap: 15px;
  /* margin-bottom: 25px; */
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-iniciar {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.btn-pausa {
    background: linear-gradient(135deg, #FF9800, #f57c00);
}

.btn-reanudar {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.btn-terminar {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Botones secundarios */
.acciones-secundarias {
    display: flex;
    gap: 10px; 
    margin-top: 5px;
}

.btn-secundario {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secundario:hover {
    background: #e0e0e0;
    color: #333;
}

/* Estadísticas */
.estadisticas-card {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    margin-top: 10px;
}

.estadisticas-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.estadisticas-grid {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
	width: 100%;
}

.estadistica-item {
    display: flex;
    flex-direction: column;
    background: #7DA5E0;
    padding: 5px;
    border-radius: 10px;
	text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.estadistica-item .label {
    font-size: 12px;
    color: white;
    margin-bottom: 5px;
}

.estadistica-item .value {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

/* Barra de progreso */
.progreso-container {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
  /* margin: 15px 0 5px;*/
}

.progreso-barra {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.progreso-texto {
    text-align: right;
    font-size: 12px;
    color: #666;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666;
}

.modal-botones {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancelar {
    padding: 10px 20px;
    background: #9e9e9e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancelar:hover {
    background: #757575;
}

.btn-confirmar {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.btn-confirmar:hover {
    background: #d32f2f;
}

/* Opciones de pausa */
.pausa-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-pausa-opcion {
    padding: 15px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pausa-opcion:hover {
    background: #e0e0e0;
    border-color: #FF9800;
}

/* Responsive */
@media (max-width: 768px) {
    .fichaje-container {
        margin: 10px;
        padding: 15px;
    }
    
    .tiempo {
        font-size: 36px;
    }
    
    .botones-container {
        flex-direction: column;
    }
    
  /*  .estadisticas-grid {
        grid-template-columns: 4fr;
    } */
}

/* Estados de ánimo (emojis grandes) */
.estado-emoji {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Notificaciones toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #4CAF50;
}

.toast-error {
    background: #f44336;
}

.toast-info {
    background: #FF9800;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}